Rename variables
This commit is contained in:
parent
addad268e5
commit
2f6977bb82
10
flake.nix
10
flake.nix
|
@ -17,8 +17,8 @@
|
|||
|
||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||
|
||||
nixos-system = import ./lib/nixos {inherit inputs pkgs self system username;};
|
||||
wsl-system = import ./lib/wsl2 {inherit inputs pkgs self system username;};
|
||||
mkNixos = import ./lib/nixos {inherit inputs pkgs self system username;};
|
||||
mkWsl = import ./lib/wsl2 {inherit inputs pkgs self system username;};
|
||||
in
|
||||
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||
systems = ["x86_64-linux"];
|
||||
|
@ -37,19 +37,19 @@
|
|||
|
||||
flake = {
|
||||
nixosConfigurations = {
|
||||
apollo = nixos-system {
|
||||
apollo = mkNixos {
|
||||
desktop = true;
|
||||
hostname = "apollo";
|
||||
};
|
||||
|
||||
nixedo = nixos-system {
|
||||
nixedo = mkNixos {
|
||||
desktop = true;
|
||||
hostname = "nixedo";
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
wsl2 = wsl-system;
|
||||
wsl2 = mkWsl;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
hostname,
|
||||
}: let
|
||||
configuration = import ./configuration.nix {inherit desktop hostname inputs pkgs system;};
|
||||
hardware-configuration = import ./hardware-configuration.nix;
|
||||
hardwareConfiguration = import ./hardware-configuration.nix;
|
||||
in
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
|
@ -24,6 +24,6 @@ in
|
|||
}
|
||||
|
||||
configuration
|
||||
hardware-configuration
|
||||
hardwareConfiguration
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue