mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-29 14:11:26 +00:00
systemd.services.nixos-upgrade.serviceConfig.WorkingDirectory
This commit is contained in:
parent
be45d3ed52
commit
08aa0b9ffc
|
@ -89,15 +89,12 @@
|
||||||
# TODO get attribute name from selfprivacy options
|
# TODO get attribute name from selfprivacy options
|
||||||
flake = "/etc/nixos#default";
|
flake = "/etc/nixos#default";
|
||||||
};
|
};
|
||||||
|
systemd.services.nixos-upgrade.serviceConfig.WorkingDirectory = "/etc/nixos";
|
||||||
# TODO parameterize URL somehow; run nix flake update as non-root user
|
# TODO parameterize URL somehow; run nix flake update as non-root user
|
||||||
systemd.services.nixos-upgrade.serviceConfig.ExecStartPre =
|
systemd.services.nixos-upgrade.serviceConfig.ExecStartPre = ''
|
||||||
lib.trivial.throwIf
|
${config.nix.package.out}/bin/nix flake update \
|
||||||
(lib.strings.versionAtLeast config.nix.package.version "2.19")
|
--override-input selfprivacy-nixos-config git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes
|
||||||
"nix flake update usage is not updated to breaking 2.19"
|
'';
|
||||||
''
|
|
||||||
${config.nix.package.out}/bin/nix flake update /etc/nixos \
|
|
||||||
--override-input selfprivacy-nixos-config git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?ref=flakes
|
|
||||||
'';
|
|
||||||
nix = {
|
nix = {
|
||||||
channel.enable = false;
|
channel.enable = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue