40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{
|
|
description = "Flake to manage local systems";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
|
nixosConfigurations = {
|
|
vm = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./configuration.nix
|
|
./vm_hardware-configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
];
|
|
};
|
|
laptop-x11 = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = let inputs.x11mode = true; in { inherit inputs; };
|
|
modules = [
|
|
./configuration.nix
|
|
./hardware_configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
];
|
|
};
|
|
laptop-wayland = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = let inputs.x11mode = false; in { inherit inputs; };
|
|
modules = [
|
|
./configuration.nix
|
|
./hardware_configuration.nix
|
|
home-manager.nixosModules.home-manager
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|