File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 40
40
# Standalone home-manager configuration entrypoint
41
41
# Available through 'home-manager --flake .#your-username@your-hostname'
42
42
homeConfigurations = {
43
- "nixos@all " = home-manager . lib . homeManagerConfiguration {
43
+ "nixos@linux-x86_64 " = home-manager . lib . homeManagerConfiguration {
44
44
pkgs =
45
45
nixpkgs . legacyPackages . x86_64-linux ; # Home-manager requires 'pkgs' instance
46
46
extraSpecialArgs = { inherit inputs outputs ; } ;
47
47
modules = [ ./home-manager/linux ] ;
48
48
} ;
49
+ "nixos@linux-aarch64" = home-manager . lib . homeManagerConfiguration {
50
+ pkgs =
51
+ nixpkgs . legacyPackages . aarch64-linux ; # Home-manager requires 'pkgs' instance
52
+ extraSpecialArgs = { inherit inputs outputs ; } ;
53
+ modules = [ ./home-manager/linux ] ;
54
+ } ;
49
55
"henry@darwin-legacy" = home-manager . lib . homeManagerConfiguration {
50
56
pkgs =
51
57
nixpkgs . legacyPackages . x86_64-darwin ; # Home-manager requires 'pkgs' instance
Original file line number Diff line number Diff line change @@ -28,8 +28,16 @@ action_dry_run() {
28
28
exit 1
29
29
fi
30
30
else
31
- # WSL & VM
32
- home-manager build --dry-run --flake ' .#nixos@all'
31
+ if [[ $ARCH == " aarch64" ]]; then
32
+ # WSL & VM (arm64)
33
+ home-manager build --dry-run --flake ' .#nixos@linux-aarch64'
34
+ elif [[ $ARCH == " x86_64" ]]; then
35
+ # WSL & VM (x86_64)
36
+ home-manager build --dry-run --flake ' .#nixos@linux-x86_64'
37
+ else
38
+ echo " Unsupported architecture" >&2
39
+ exit 1
40
+ fi
33
41
fi
34
42
}
35
43
@@ -46,8 +54,16 @@ action_switch() {
46
54
exit 1
47
55
fi
48
56
else
49
- # WSL & VM
50
- home-manager switch --flake ' .#nixos@all'
57
+ if [[ $ARCH == " aarch64" ]]; then
58
+ # WSL & VM (arm64)
59
+ home-manager switch --flake ' .#nixos@linux-aarch64'
60
+ elif [[ $ARCH == " x86_64" ]]; then
61
+ # WSL & VM (x86_64)
62
+ home-manager switch --flake ' .#nixos@linux-x86_64'
63
+ else
64
+ echo " Unsupported architecture" >&2
65
+ exit 1
66
+ fi
51
67
fi
52
68
}
53
69
You can’t perform that action at this time.
0 commit comments