69 lines
1.9 KiB
Nix
69 lines
1.9 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-23.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs: {
|
|
nixosConfigurations = let
|
|
workstation = {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./workstation
|
|
inputs.home-manager.nixosModules.home-manager
|
|
./home
|
|
./wm/sway
|
|
];
|
|
};
|
|
in {
|
|
loki = inputs.nixpkgs.lib.nixosSystem {
|
|
modules = workstation.modules ++ [
|
|
{
|
|
networking.hostName = "loki";
|
|
}
|
|
inputs.nixos-hardware.nixosModules.dell-xps-13-9310
|
|
./hosts/loki/hardware-configuration.nix
|
|
];
|
|
};
|
|
smaug = inputs.nixpkgs.lib.nixosSystem {
|
|
modules = workstation.modules ++ [
|
|
{
|
|
networking.hostName = "smaug";
|
|
}
|
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x260
|
|
./hosts/smaug/hardware-configuration.nix
|
|
];
|
|
};
|
|
dragon = inputs.nixpkgs.lib.nixosSystem {
|
|
modules = workstation.modules ++ [
|
|
{
|
|
networking.hostName = "dragon";
|
|
}
|
|
./hosts/dragon/hardware-configuration.nix
|
|
];
|
|
};
|
|
eve = inputs.nixpkgs.lib.nixosSystem {
|
|
modules = workstation.modules ++ [
|
|
{
|
|
networking.hostName = "eve";
|
|
}
|
|
inputs.nixos-hardware.nixosModules.google-pixelbook
|
|
./hosts/eve/hardware-configuration.nix
|
|
];
|
|
};
|
|
vm2 = inputs.nixpkgs.lib.nixosSystem {
|
|
modules = workstation.modules ++ [
|
|
{
|
|
services.getty.autologinUser = "don";
|
|
networking.hostName = "vm2";
|
|
}
|
|
./hosts/vm1/hardware-configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|