2023-06-18 22:52:24 +02:00
|
|
|
{
|
|
|
|
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
|
2023-06-24 20:56:54 +02:00
|
|
|
user = "user"; # Select user from `./users` directory
|
2023-06-18 22:52:24 +02:00
|
|
|
in {
|
|
|
|
# Debugging VM configuration
|
|
|
|
nixosConfigurations.qemu-vm = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2023-06-24 20:56:54 +02:00
|
|
|
specialArgs = attrs;
|
2023-06-18 22:52:24 +02:00
|
|
|
modules = [
|
|
|
|
./users/${user}.nix
|
|
|
|
./systems/qemu-vm.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|