restructure

This commit is contained in:
Henri Dohmen 2025-07-14 14:45:55 +02:00
parent 4922f8f7cb
commit ffe40ca5e7
25 changed files with 84 additions and 66 deletions

View file

@ -1,62 +0,0 @@
{
inputs,
lib,
config,
options,
...
}:
let
cfg = config.desktop;
inherit (lib) mkEnableOption mkIf;
in
{
imports = [
./audio.nix
./fonts.nix
./gpg.nix
./network.nix
./security.nix
./services.nix
./software
./window-manager.nix
inputs.nixos-config-hidden.nixosModules.pc
];
options = {
desktop.enable = mkEnableOption "Desktop Configuration";
home = lib.mkOption {
type = lib.types.attrsOf lib.types.str;
default = { };
description = "home-manager configuration.";
};
};
config = mkIf cfg.enable {
desktop = {
audio.enable = true;
fonts.enable = true;
gpg.enable = true;
network.enable = true;
security.enable = true;
services.enable = true;
software.enable = true;
wm.enable = true;
};
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
"vscode"
"obsidian"
"steam"
"steam-unwrapped"
"gateway" # jetbrains
"spotify"
"rust-rover"
];
programs.nix-ld.enable = true;
};
}