mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-08 17:11:02 +00:00
get system.stateVersion from "deployment" argument
This commit is contained in:
parent
9dde55159b
commit
4c4aef5363
|
@ -74,7 +74,6 @@
|
|||
allowReboot = config.selfprivacy.autoUpgrade.allowReboot;
|
||||
channel = "https://channel.selfprivacy.org/nixos-selfpricacy";
|
||||
};
|
||||
system.stateVersion = config.selfprivacy.stateVersion;
|
||||
nix = {
|
||||
# TODO uncomment when NixOS version is at least 23.05
|
||||
# nix.channel.enable = false;
|
||||
|
@ -86,7 +85,7 @@
|
|||
# optimise.automatic = true;
|
||||
|
||||
gc = {
|
||||
automatic = true;
|
||||
automatic = true; # TODO it's debatable, because of IO&CPU load
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
|
@ -107,8 +106,9 @@
|
|||
nixpkgs.hostPlatform = system;
|
||||
services.journald.extraConfig = "SystemMaxUse=500M";
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv4.ip_forward" = 1; # TODO why is it here by default?
|
||||
"net.ipv4.ip_forward" = 1; # TODO why is it here by default, for VPN only?
|
||||
};
|
||||
# TODO must be configurable and determined at nixos-infect stage
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/swapfile";
|
||||
|
@ -116,6 +116,7 @@
|
|||
size = 2048;
|
||||
}
|
||||
];
|
||||
# TODO why is sudo needed?
|
||||
security = {
|
||||
sudo = {
|
||||
enable = true;
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
nixosConfigurations-fun =
|
||||
{ system
|
||||
, hardware-configuration
|
||||
, deployment
|
||||
, userdata
|
||||
, top-level-flake
|
||||
, sp-modules
|
||||
|
@ -23,6 +24,7 @@
|
|||
specialArgs = { inherit system; };
|
||||
modules = [
|
||||
hardware-configuration
|
||||
deployment
|
||||
./configuration.nix
|
||||
(import ./files.nix top-level-flake.outPath)
|
||||
(import ./userdata-variables.nix userdata)
|
||||
|
|
Loading…
Reference in a new issue