refactor(treewide)
This commit is contained in:
parent
25d48ac2ac
commit
c4fc882042
99 changed files with 634 additions and 477 deletions
6
nixos/profiles/default.nix
Normal file
6
nixos/profiles/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./gaming.nix
|
||||
./media-server.nix
|
||||
];
|
||||
}
|
||||
18
nixos/profiles/gaming.nix
Normal file
18
nixos/profiles/gaming.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
13
nixos/profiles/media-server.nix
Normal file
13
nixos/profiles/media-server.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue