25 lines
746 B
Nix
25 lines
746 B
Nix
{
|
|
description = "Modular multi-purpose NixOS configuration.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
# https://nixos.wiki/wiki/Impermanence
|
|
impermanence.url = "github:nix-community/impermanence";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... }@attrs: let
|
|
user = "user"; # Select user from `./users` directory
|
|
in {
|
|
# Debugging VM configuration
|
|
nixosConfigurations.qemu-vm = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = attrs;
|
|
modules = [
|
|
./users/${user}.nix
|
|
./systems/qemu-vm.nix
|
|
];
|
|
};
|
|
};
|
|
}
|