59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{
|
|
description = "NixOS configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
stylix = {
|
|
url = "github:danth/stylix/release-25.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { nixpkgs, home-manager, ... } @ inputs: let
|
|
system = "x86_64-linux";
|
|
host = "vm";
|
|
profile = "vm";
|
|
username = "josh";
|
|
in {
|
|
nixosConfigurations = {
|
|
nixos = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./configuration.nix
|
|
];
|
|
};
|
|
|
|
live = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {
|
|
inherit inputs;
|
|
inherit host;
|
|
inherit profile;
|
|
inherit username;
|
|
};
|
|
modules = [
|
|
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
|
|
./hosts/${host}
|
|
];
|
|
};
|
|
|
|
nixosvm = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {
|
|
inherit inputs;
|
|
inherit host;
|
|
inherit profile;
|
|
inherit username;
|
|
};
|
|
modules = [
|
|
./hosts/${host}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
} |