Only autoUpgrade server, not desktops

This commit is contained in:
Evie Litherland-Smith 2024-01-17 06:22:48 +00:00
parent 770765389b
commit 438ded4064
5 changed files with 5 additions and 19 deletions

View file

@ -247,7 +247,7 @@
system = "x86_64-linux";
in systemConfig {
inherit hostName user system;
systemModules = [ ./system/default.nix ./system/autoupgrade.nix ];
systemModules = [ ./system/default.nix ];
serviceModules = [
./services/adguardhome.nix
./services/caddy.nix
@ -280,10 +280,7 @@
hostName = "Scorch";
user = "elitherl";
system = "x86_64-linux";
in systemConfig {
inherit hostName user system;
systemModules = default.systemModules ++ [ ./system/autoupgrade.nix ];
};
in systemConfig { inherit hostName user system; };
Vanguard = let
hostName = "Vanguard";
@ -291,8 +288,7 @@
system = "x86_64-linux";
in systemConfig {
inherit hostName user system;
systemModules = default.systemModules
++ [ ./system/autoupgrade.nix ./system/steam.nix ];
systemModules = default.systemModules ++ [ ./system/steam.nix ];
homeModules = default.homeModules ++ [ ./home/games/default.nix ];
};

View file

@ -1,9 +1,8 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`).
{ ... }: {
users.mutableUsers = false;
system.autoUpgrade = {
enable = true;
flake = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
dates = "02:30";
allowReboot = true;
rebootWindow = {

View file

@ -14,6 +14,4 @@
'';
systemPackages = with pkgs; [ openfortivpn samba nomachine-client ];
};
system.autoUpgrade.allowReboot = false;
}

View file

@ -1,5 +1,4 @@
{ config, ... }: {
system.autoUpgrade.allowReboot = false;
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
boot.extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1

View file

@ -1,6 +0,0 @@
{ ... }: {
system.autoUpgrade = {
enable = true;
flake = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
};
}