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