Skip to content

Commit

Permalink
Merge pull request #28 from mightyiam/stateVersion
Browse files Browse the repository at this point in the history
stateVersion
  • Loading branch information
mightyiam authored Jun 28, 2024
2 parents 1186cfa + 5491e89 commit 71e6180
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/home/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
modules = [
nixconfigs.homeManagerModules.mightyiam
{
home.stateVersion = "24.11";
location.latitude = 18.746;
location.longitude = 99.075;
}
Expand Down
10 changes: 8 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
./nixos-modules/hosts/mightyiam-desktop
inputs.home-manager.nixosModules.home-manager
{
home-manager.users.mightyiam.imports = [self.homeManagerModules.mightyiam];
home-manager.users.mightyiam.imports = [
self.homeManagerModules.mightyiam
({osConfig, ...}: {home.stateVersion = osConfig.system.stateVersion;})
];
}
];
};
Expand All @@ -35,7 +38,10 @@
./nixos-modules/hosts/ganoderma
inputs.home-manager.nixosModules.home-manager
{
home-manager.users.mightyiam.imports = [self.homeManagerModules.mightyiam];
home-manager.users.mightyiam.imports = [
self.homeManagerModules.mightyiam
({osConfig, ...}: {home.stateVersion = osConfig.system.stateVersion;})
];
}
];
};
Expand Down
1 change: 0 additions & 1 deletion home/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

config.programs.home-manager.enable = true;

config.home.stateVersion = "21.05";
config.home.sessionVariables.TZ = "\$(<~/.config/timezone)";
};
in {
Expand Down
1 change: 1 addition & 0 deletions nixos-modules/hosts/ganoderma/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
../../types/desktop.nix
./mobo.nix
./filesystems.nix
./state-version.nix
];

nixpkgs.hostPlatform = "x86_64-linux";
Expand Down
3 changes: 3 additions & 0 deletions nixos-modules/hosts/ganoderma/state-version.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
system.stateVersion = "24.11";
}
1 change: 1 addition & 0 deletions nixos-modules/hosts/mightyiam-desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
./gpu.nix
./filesystems.nix
./cpu.nix
./state-version.nix
];

nixpkgs.hostPlatform = "x86_64-linux";
Expand Down
3 changes: 3 additions & 0 deletions nixos-modules/hosts/mightyiam-desktop/state-version.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
system.stateVersion = "24.11";
}
3 changes: 0 additions & 3 deletions nixos-modules/modules/state-version.nix

This file was deleted.

1 change: 0 additions & 1 deletion nixos-modules/types/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"printing.nix"
"service-discovery.nix"
"shell.nix"
"state-version.nix"
"steam.nix"
"sudo.nix"
"tmp.nix"
Expand Down

0 comments on commit 71e6180

Please sign in to comment.