Skip to content

Commit 4d1ec21

Browse files
committed
fix: Use stdenv.hostPlatform.system instead deprecated of system for platform definitions.
Forward-compatible
1 parent 1548998 commit 4d1ec21

1 file changed

Lines changed: 27 additions & 31 deletions

File tree

hosts/default.nix

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ in
1313
flake.darwinConfigurations = {
1414
# scutil --get LocalHostName
1515
"Jan-Philips-MacBook-Pro" = darwinSystem {
16-
system = "aarch64-darwin";
16+
stdenv.hostPlatform.system = "aarch64-darwin";
1717
inherit specialArgs;
1818

1919
modules = [
@@ -33,40 +33,36 @@ in
3333
};
3434
};
3535

36-
flake.nixosConfigurations =
37-
let
38-
system = "aarch64-linux";
39-
in
40-
{
41-
# minimal pi for bootstrapping and quick testing
42-
pi-minimal = nixosSystem {
43-
inherit system specialArgs;
36+
flake.nixosConfigurations = {
37+
# minimal pi for bootstrapping and quick testing
38+
pi-minimal = nixosSystem {
39+
inherit system specialArgs;
4440

45-
modules = [
46-
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
47-
./pi/pi-config.nix
48-
];
49-
};
41+
modules = [
42+
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
43+
./pi/pi-config.nix
44+
];
45+
};
5046

51-
# full pi configuration
52-
pi = nixosSystem {
53-
inherit system specialArgs;
47+
# full pi configuration
48+
pi = nixosSystem {
49+
inherit system specialArgs;
5450

55-
modules = [
56-
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
57-
./pi
58-
inputs.home-manager.nixosModules.home-manager
59-
{
60-
home-manager.useGlobalPkgs = true;
61-
home-manager.useUserPackages = true;
62-
home-manager.extraSpecialArgs = specialArgs // {
63-
headless = true;
64-
};
65-
}
66-
(import ../users/jloos)
67-
];
68-
};
51+
modules = [
52+
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
53+
./pi
54+
inputs.home-manager.nixosModules.home-manager
55+
{
56+
home-manager.useGlobalPkgs = true;
57+
home-manager.useUserPackages = true;
58+
home-manager.extraSpecialArgs = specialArgs // {
59+
headless = true;
60+
};
61+
}
62+
(import ../users/jloos)
63+
];
6964
};
65+
};
7066

7167
imports = [
7268
./pi/flake-module.nix

0 commit comments

Comments
 (0)