mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
inline auto-update
This commit is contained in:
parent
79f6f28dd3
commit
5cc282d784
2 changed files with 11 additions and 15 deletions
|
@ -1,11 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
allowReboot = true;
|
||||
};
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
}
|
|
@ -10,10 +10,17 @@ in
|
|||
|
||||
config = mkMerge [
|
||||
|
||||
(mkIf (cfg == "server") (mkMerge [
|
||||
{ services.openssh.enable = true; }
|
||||
(import ./auto-update.nix { })
|
||||
]))
|
||||
(mkIf (cfg == "server") {
|
||||
services.openssh.enable = true;
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
allowReboot = true;
|
||||
};
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (cfg == "desktop-sway") (import ./sway.nix { inherit pkgs; }))
|
||||
(mkIf (cfg == "desktop-gnome") (import ./gnome.nix { inherit pkgs; }))
|
||||
|
|
Loading…
Reference in a new issue