Sorry for the kinda big commit that does everything at once This change does the following: - yeets skrott and skrot-specific settings from the NixOS module, - adds a bunch more settings and generalizations to the NixOS module, - adds two VM NixOS configurations for interactive testing - wraps the nix package so that `less` is always present in `$PATH` - yeah, that's about it kthxbye
30 lines
644 B
Nix
30 lines
644 B
Nix
{ self, nixpkgs, ... }:
|
|
nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
system = "x86_64-linux";
|
|
overlays = [
|
|
self.overlays.default
|
|
];
|
|
};
|
|
modules = [
|
|
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
|
|
"${nixpkgs}/nixos/tests/common/user-account.nix"
|
|
|
|
self.nixosModules.default
|
|
|
|
({ config, ... }: {
|
|
system.stateVersion = config.system.nixos.release;
|
|
virtualisation.graphics = false;
|
|
|
|
services.postgresql.enable = true;
|
|
|
|
services.dibbler = {
|
|
enable = true;
|
|
createLocalDatabase = true;
|
|
kioskMode = true;
|
|
};
|
|
})
|
|
];
|
|
}
|