1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

smart stuff

This commit is contained in:
andrey_varnavskiy
2024-11-29 20:39:18 +05:00
parent ecddf1a6f5
commit 9a2a1d0599

View File

@@ -18,26 +18,30 @@
#}; #};
}; };
outputs = { self, nixpkgs, home-manager, ... }@inputs: outputs = { self, nixpkgs, home-manager, ... }@inputs: let
let
system = "x86_64-linux"; system = "x86_64-linux";
stateVersion = "24.05"; stateVersion = "24.05";
user = "amper"; user = "amper";
hostname = "slim3"; hosts = [
in { "slim3"
];
# slim3 - system hostname makeSystem = { hostname }: nixpkgs.lib.nixosSystem {
nixosConfigurations = { system = system;
${hostname} = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs system stateVersion hostname user; inherit inputs stateVersion hostname user;
}; };
modules = [ modules = [
./hosts/${hostname}/configuration.nix ./hosts/${hostname}/configuration.nix
]; ];
}; };
in {
nixosConfigurations = {
${builtins.elemAt hosts 0} = makeSystem {
hostname = builtins.elemAt hosts 0;
};
}; };
homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration { homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {