refactor(treewide)

This commit is contained in:
ooks-io 2024-06-11 22:37:17 +12:00
parent 25d48ac2ac
commit c4fc882042
99 changed files with 634 additions and 477 deletions

View file

@ -0,0 +1,8 @@
{
imports = [
./gaming.nix
./host.nix
./programs.nix
./services.nix
];
}

14
nixos/options/gaming.nix Normal file
View file

@ -0,0 +1,14 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.gaming = {
steam.enable = mkEnableOption "";
gamescope.enable = mkEnableOption "";
gamemode.enable = mkEnableOption "";
openPorts.enable = mkEnableOption "";
};
}

View file

@ -24,7 +24,7 @@ in
};
profiles = mkOption {
type = listOf (enum ["gaming" "creativity" "media-server"]);
type = listOf (enum ["gaming" "creative" "productivity" "media-server"]);
default = [];
};

View file

@ -0,0 +1,13 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.programs = {
_1password.enable = mkEnableOption "";
dconf.enable = mkEnableOption "";
kdeconnect.enable = mkEnableOption "";
};
}

View file

@ -0,0 +1,16 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.services = {
nixarr.enable = mkEnableOption "";
gnomeServices.enable = mkEnableOption "";
gvfs.enable = mkEnableOption "";
dbus.enable = mkEnableOption "";
system76Scheduler.enable = mkEnableOption "";
flatpak.enable = mkEnableOption "";
};
}