sparky autoupgrade and change home persistence
This commit is contained in:
parent
4308e476fb
commit
c5d3d7c7df
|
@ -21,7 +21,6 @@ in {
|
|||
extraGroups = [
|
||||
"scanner"
|
||||
"lp"
|
||||
"wheel"
|
||||
];
|
||||
|
||||
packages = with pkgs; [
|
||||
|
@ -31,22 +30,9 @@ in {
|
|||
};
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
hideMounts = true;
|
||||
users.${username} = {
|
||||
directories = [
|
||||
"Sync"
|
||||
"Keep"
|
||||
".ssh"
|
||||
".config"
|
||||
".mozilla"
|
||||
".local"
|
||||
".zotero"
|
||||
".var"
|
||||
".steam"
|
||||
];
|
||||
files = [
|
||||
];
|
||||
};
|
||||
directories = [
|
||||
"/home/${username}"
|
||||
];
|
||||
};
|
||||
|
||||
sops.secrets = {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
then "/dev/mapper/crypted"
|
||||
else "/dev/root_vg/root";
|
||||
impermanence = true;
|
||||
merlinIp = configVars.networking.addresses.merlin.ip;
|
||||
piholeIp = configVars.networking.addresses.pihole.ip;
|
||||
gatewayIp = configVars.networking.addresses.gateway.ip;
|
||||
in {
|
||||
|
@ -44,9 +45,9 @@ in {
|
|||
# Import optional options
|
||||
../common/optional/openssh.nix
|
||||
../common/optional/persistence.nix
|
||||
# ../common/optional/fileserver/media.nix
|
||||
../common/optional/gaming.nix
|
||||
../common/optional/printing.nix
|
||||
../common/optional/fileserver/nfs-client/media.nix
|
||||
# ../common/optional/printing.nix
|
||||
../common/optional/distributed-builds/local-machine.nix
|
||||
outputs.nixosModules.nixosAutoUpgrade
|
||||
];
|
||||
|
||||
|
@ -80,11 +81,11 @@ in {
|
|||
system.services.nixosAutoUpgrade = {
|
||||
enable = true;
|
||||
persistent = true;
|
||||
remote = "remotebuild@${merlinIp}";
|
||||
reboot = false;
|
||||
pushUpdates = false;
|
||||
configDir = "/etc/nixos";
|
||||
onCalendar = "*-*-* 07:00:00";
|
||||
user = "media";
|
||||
onCalendar = "*-*-* 06:00:00";
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
|
|
Loading…
Reference in New Issue