nix-conf/system/default.nix
2025-03-16 19:02:48 -05:00

37 lines
643 B
Nix

{
inputs,
lib,
...
}: {
imports = [
./audio.nix
./bash.nix
./boot.nix
./configuration.nix
./display.nix
./locale.nix
./mnt.nix
./security.nix
./virt.nix
./yubikey.nix
../overlays
inputs.sops-nix.nixosModules.sops
];
options.u = {
has = let
mkOpt = name:
lib.mkOption {
type = lib.types.bool;
description = "enable ${name}";
default = true;
};
in {
graphical = mkOpt "graphical";
wine = mkOpt "wine";
virt = mkOpt "virt";
container = mkOpt "container";
yubikey = mkOpt "yubikey";
};
};
}