Skip to content

Commit c973dd7

Browse files
committed
refactor: home.stateVersionをホスト依存に
1 parent 4f9c729 commit c973dd7

File tree

6 files changed

+18
-2
lines changed

6 files changed

+18
-2
lines changed

home/common.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{ pkgs, ... }:
22

33
{
4-
home.stateVersion = "25.05";
54
}

hosts/gaming-wsl/configuration.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77
system.stateVersion = "25.11";
88

99
networking.hostName = "gaming-wsl";
10+
11+
home-manager.users.moon = import ./home.nix;
1012
}

hosts/gaming-wsl/home.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{ pkgs, ... }:
2+
3+
{
4+
imports = [ ../../home/common.nix ];
5+
6+
home.stateVersion = "25.11";
7+
}

hosts/sp9-v7/configuration.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
];
77

88
networking.hostName = "sp9-v7";
9+
10+
home-manager.users.moon = import ./home.nix;
911
system.stateVersion = "25.11";
1012

1113
boot.loader = {

hosts/sp9-v7/home.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{ pkgs, ... }:
2+
3+
{
4+
imports = [ ../../home/common.nix ];
5+
6+
home.stateVersion = "25.11";
7+
}

modules/common.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
home-manager = {
4747
useGlobalPkgs = true;
4848
useUserPackages = true;
49-
users.moon = import ../home/common.nix;
5049
};
5150

5251
programs = {

0 commit comments

Comments
 (0)