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,6 @@
{
imports = [
./gaming.nix
./media-server.nix
];
}

18
nixos/profiles/gaming.nix Normal file
View file

@ -0,0 +1,18 @@
{ lib, config, ... }:
let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = config.ooknet.host.profiles;
in
{
config = mkIf (elem "gaming" profiles) {
ooknet.gaming = {
steam.enable = true;
gamescope.enable = true;
gamemode.enable = true;
};
ooknet.services.flatpak.enable = true;
};
}

View file

@ -0,0 +1,13 @@
{ lib, config, ... }:
let
inherit (lib) mkIf;
inherit (builtins) elem;
profiles = config.ooknet.host.profiles;
in
{
config = mkIf (elem "media-server" profiles) {
ooknet.services.nixarr.enable = true;
};
}