mirror of
https://github.com/materusPL/nixos-config
synced 2026-07-02 12:46:42 +00:00
configuration: clean, fix genHomes
This commit is contained in:
@@ -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)
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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" ];
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
];
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user