configuration: clean, fix genHomes

This commit is contained in:
Mateusz Słodkowicz 2024-03-30 15:34:52 +01:00
parent 8f8ca90bba
commit 1ccceb3415
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo
3 changed files with 9 additions and 58 deletions

View File

@ -11,11 +11,13 @@ in
};
#TODO: Make some config
config.home.packages = [
(lib.mkIf cfg.firefox.enable config.materus.profile.packages.firefox)
(lib.mkIf cfg.vivaldi.enable pkgs.vivaldi)
(lib.mkIf cfg.brave.enable pkgs.brave)
];
config = {
home.packages = [
(lib.mkIf cfg.firefox.enable config.materus.profile.packages.firefox)
(lib.mkIf cfg.vivaldi.enable pkgs.vivaldi)
(lib.mkIf cfg.brave.enable pkgs.brave)
];
};
}

View File

@ -6,57 +6,6 @@
./games
];
/*
users.users.nixos-rebuild = {
#isSystemUser = true;
isNormalUser = true;
group = "nixos-rebuild";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPEDY+H8Hc/RSLE064AAh8IojvqxPd8BE5gec2aOfYMh materus@podkos.pl"
];
home = "/tmp/nixos-rebuild";
};
users.groups.nixos-rebuild = { };
security.sudo.extraRules = [
{
users = [ "nixos-rebuild" ];
commands = let path = "/run/current-system/sw/bin/"; in
[
{
command =
"${path}nixos-rebuild";
options = [ "NOPASSWD" ];
}
{
command =
"${path}nix-store";
options = [ "NOPASSWD" ];
}
{
command =
"${path}nix-env";
options = [ "NOPASSWD" ];
}
{
command =
"${path}nix-build";
options = [ "NOPASSWD" ];
}
{
command =
"${path}nix-instantiate";
options = [ "NOPASSWD" ];
}
{
command =
"${path}nix-channel";
options = [ "NOPASSWD" ];
}
];
}
];
*/
}

View File

@ -1,6 +1,6 @@
{ inputs, materusFlake, ... }:
let
profiles = import ../profile;
profiles = import (materusFlake.selfPath + "/configurations/profile");
hosts = builtins.attrNames materusFlake.nixosConfigurations;
genHomes = username: