This commit is contained in:
iFargle 2023-08-15 16:38:51 +09:00
parent 931ed39d47
commit 1e61f9c987

View file

@ -8,11 +8,11 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
}; };
outputs = { nixos-hardware, ... }@inputs: { outputs = { hostname, nixos-hardware, ... }@inputs: {
# NixOS Configuration files: # NixOS Configuration files:
nixosConfigurations = { nixosConfigurations = {
# Declare a generic configuration using the $hostname variable: # Declare a generic configuration using the $hostname variable:
${hostname} = unstable-nixpkgs.lib.nixosSystem { "nixos-laptop" = unstable-nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit hostname; inherit hostname;
@ -23,7 +23,7 @@
# Flake Imports # Flake Imports
nixos-hardware.nixosModules.lenovo-thinkpad-p1 nixos-hardware.nixosModules.lenovo-thinkpad-p1
]; # modules ]; # modules
}; # lib.nixosSystem - ${hostname} }; # lib.nixosSystem - "nixos-laptop"
}; # nixosConfiguration }; # nixosConfiguration
}; };
} }