re-organize/indent flake.nix to pass inputs to home manager
This commit is contained in:
parent
3499eae4d2
commit
0c79b56d45
28
flake.nix
28
flake.nix
@ -27,9 +27,11 @@
|
|||||||
home-manager,
|
home-manager,
|
||||||
... }: {
|
... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
galvatron = nixpkgs.lib.nixosSystem {
|
galvatron =
|
||||||
|
let
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
# specialArgs = { inherit nixpkgs-unstable; };
|
# specialArgs = { inherit nixpkgs-unstable; };
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix {
|
./configuration.nix {
|
||||||
# nixpkgs.overlays = [ inputs.apple-silicon.overlays.apple-silicon-overlay ];
|
# nixpkgs.overlays = [ inputs.apple-silicon.overlays.apple-silicon-overlay ];
|
||||||
@ -51,10 +53,13 @@
|
|||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.mir = import ./home.nix;
|
home-manager.users.mir = import ./home.nix;
|
||||||
}
|
}
|
||||||
];
|
]; # end of modules
|
||||||
};
|
in
|
||||||
starscream = nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; };
|
||||||
|
starscream =
|
||||||
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix {
|
./configuration.nix {
|
||||||
networking.hostName = "starscream";
|
networking.hostName = "starscream";
|
||||||
@ -69,10 +74,13 @@
|
|||||||
home-manager.users.mir = import ./home.nix;
|
home-manager.users.mir = import ./home.nix;
|
||||||
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||||||
}
|
}
|
||||||
];
|
]; # end of modules
|
||||||
};
|
in
|
||||||
knockout = nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; };
|
||||||
|
knockout =
|
||||||
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix {
|
./configuration.nix {
|
||||||
networking.hostName = "knockout";
|
networking.hostName = "knockout";
|
||||||
@ -85,10 +93,12 @@
|
|||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.mir = import ./home.nix;
|
home-manager.users.mir = import ./home.nix;
|
||||||
|
home-manager.extraSpecialArgs = specialArgs;
|
||||||
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||||||
}
|
}
|
||||||
];
|
]; # end of modules
|
||||||
};
|
in
|
||||||
|
nixpkgs.lib.nixosSystem {inherit system modules specialArgs; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user