feat: manage stateVersion through hostHelper

This commit is contained in:
Ranomier 2025-05-04 20:52:04 +02:00
parent bf19849309
commit 14dfeec55f
5 changed files with 19 additions and 46 deletions

View file

@ -5,13 +5,6 @@
nixos-unstable,
...
}: {
# 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 = "24.05"; # Did you read the comment?
#nixpkgs.overlays = [ overlays.unstable-packages ];
nixpkgs = {

View file

@ -4,31 +4,13 @@
modulesPath,
...
}: {
# 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 = "25.05"; # Did you read the comment?
# Disable if you don't want unfree packages
nixpkgs.config.allowUnfree = true;
nix = {
# https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager,
# focused on correctness, usability, and growth
# and committed to doing right by its community.
package = pkgs.lix;
settings.experimental-features = ["nix-command" "flakes"];
};
imports = [
./hardware-configuration.nix
../../modules/locale.nix
../../system_profiles/defaults.nix
../../system_profiles/mini-container.nix
];
}

View file

@ -4,29 +4,16 @@
modulesPath,
...
}: {
#networking.hostName = "jitsi"; # Define your hostname.
# 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 = "24.11"; # Did you read the comment?
nixpkgs.config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
# https://lix.systems/ Lix is a modern, delicious implementation of the Nix package manager,
# focused on correctness, usability, and growth
# and committed to doing right by its community.
nix.package = pkgs.lix;
imports = [
./hardware-configuration.nix
../../modules/locale.nix
../../system_profiles/mini.nix
../../system_profiles/defaults.nix
../../system_profiles/mini-container.nix
];
}