simplify autoUpgrade
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
930e30a926
commit
f12a67b12d
|
@ -7,6 +7,7 @@ in
|
||||||
{
|
{
|
||||||
options.plusultra.base = with types; {
|
options.plusultra.base = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable the base config.";
|
enable = mkBoolOpt false "Whether or not to enable the base config.";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -114,5 +115,16 @@ in
|
||||||
initrd.systemd.enable = true;
|
initrd.systemd.enable = true;
|
||||||
kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest;
|
kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.autoUpgrade = {
|
||||||
|
flags = [
|
||||||
|
"--update-input"
|
||||||
|
"nixpkgs"
|
||||||
|
"--update-input"
|
||||||
|
"unstable"
|
||||||
|
];
|
||||||
|
flake = "git+https://git.hoyer.xyz/harald/nixcfg";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, config, host, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.plusultra;
|
with lib.plusultra;
|
||||||
{
|
{
|
||||||
|
@ -18,13 +18,6 @@ with lib.plusultra;
|
||||||
enable = true;
|
enable = true;
|
||||||
operation = "boot";
|
operation = "boot";
|
||||||
allowReboot = true;
|
allowReboot = true;
|
||||||
flags = [
|
|
||||||
"--update-input"
|
|
||||||
"nixpkgs"
|
|
||||||
"--update-input"
|
|
||||||
"unstable"
|
|
||||||
];
|
|
||||||
flake = "git+https://git.hoyer.xyz/harald/nixcfg#${host}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "sgx-nixos"; # Define your hostname.
|
networking.hostName = "sgx-nixos"; # Define your hostname.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, config, host, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.plusultra;
|
with lib.plusultra;
|
||||||
{
|
{
|
||||||
|
@ -20,13 +20,6 @@ with lib.plusultra;
|
||||||
enable = true;
|
enable = true;
|
||||||
operation = "boot";
|
operation = "boot";
|
||||||
allowReboot = true;
|
allowReboot = true;
|
||||||
flags = [
|
|
||||||
"--update-input"
|
|
||||||
"nixpkgs"
|
|
||||||
"--update-input"
|
|
||||||
"unstable"
|
|
||||||
];
|
|
||||||
flake = "git+https://git.hoyer.xyz/harald/nixcfg#${host}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "sgx"; # Define your hostname.
|
networking.hostName = "sgx"; # Define your hostname.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, host, ... }:
|
{ pkgs, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.plusultra;
|
with lib.plusultra;
|
||||||
{
|
{
|
||||||
|
@ -18,13 +18,6 @@ with lib.plusultra;
|
||||||
enable = true;
|
enable = true;
|
||||||
operation = "boot";
|
operation = "boot";
|
||||||
allowReboot = false;
|
allowReboot = false;
|
||||||
flags = [
|
|
||||||
"--update-input"
|
|
||||||
"nixpkgs"
|
|
||||||
"--update-input"
|
|
||||||
"unstable"
|
|
||||||
];
|
|
||||||
flake = "git+https://git.hoyer.xyz/harald/nixcfg#${host}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
Loading…
Reference in a new issue