♻️ refactor system.stateVersion usage

This commit is contained in:
James Walker 2023-02-20 13:28:35 -05:00
parent bf6b57c236
commit 0c4ba0a464
Signed by: walkah
GPG Key ID: 3C127179D6086E93
9 changed files with 11 additions and 30 deletions

View File

@ -304,11 +304,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1676886000, "lastModified": 1676908974,
"narHash": "sha256-t7nxEvJb4ISR7u54YADZiZi9EaKHJKbXQjyyf00Q8TA=", "narHash": "sha256-o7sJTBeumorVIM/b1b/Q4q+WJn8Rou5kx8DEBbKOZJI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "26c9dbdc92abc370510be78889942f38a272d705", "rev": "157e1e4b127b5cb37822be247e8ec37a7f475270",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -109,6 +109,10 @@
digitalocean = nixos-generators.nixosGenerate { digitalocean = nixos-generators.nixosGenerate {
system = "x86_64-linux"; system = "x86_64-linux";
format = "do"; format = "do";
modules = [
./modules/base
./users
];
}; };
}; };
@ -238,4 +242,3 @@
}; };
}; };
} }

View File

@ -58,12 +58,4 @@
}; };
tailscale = { enable = true; }; tailscale = { enable = true; };
}; };
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.05"; # Did you read the comment?
} }

View File

@ -31,8 +31,4 @@
promptInit = ""; promptInit = "";
}; };
}; };
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
} }

View File

@ -42,8 +42,4 @@
}; };
}; };
}; };
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
} }

View File

@ -175,12 +175,4 @@
]; ];
}; };
}; };
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "20.09"; # Did you read the comment?
} }

View File

@ -78,6 +78,4 @@
}; };
tailscale = { enable = true; }; tailscale = { enable = true; };
}; };
system.stateVersion = "22.05";
} }

View File

@ -50,4 +50,6 @@ _: {
}; };
}; };
}; };
system.stateVersion = 4;
} }

View File

@ -16,4 +16,6 @@
trusted-users = [ "root" "walkah" ]; trusted-users = [ "root" "walkah" ];
}; };
}; };
system.stateVersion = "23.05";
} }