refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
22
modules/nixos/archetypes/gaming/default.nix
Normal file
22
modules/nixos/archetypes/gaming/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let
|
||||
cfg = config.plusultra.archetypes.gaming;
|
||||
in
|
||||
{
|
||||
options.plusultra.archetypes.gaming = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable the gaming archetype.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
plusultra.suites = {
|
||||
common = enabled;
|
||||
desktop = enabled;
|
||||
games = enabled;
|
||||
social = enabled;
|
||||
media = enabled;
|
||||
};
|
||||
};
|
||||
}
|
26
modules/nixos/archetypes/server/default.nix
Normal file
26
modules/nixos/archetypes/server/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let
|
||||
cfg = config.plusultra.archetypes.server;
|
||||
in
|
||||
{
|
||||
options.plusultra.archetypes.server = with types; {
|
||||
enable =
|
||||
mkBoolOpt false "Whether or not to enable the server archetype.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
plusultra = {
|
||||
suites = {
|
||||
common-slim = enabled;
|
||||
};
|
||||
|
||||
cli-apps = {
|
||||
neovim = enabled;
|
||||
tmux = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
29
modules/nixos/archetypes/workstation/default.nix
Normal file
29
modules/nixos/archetypes/workstation/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let cfg = config.plusultra.archetypes.workstation;
|
||||
in
|
||||
{
|
||||
options.plusultra.archetypes.workstation = with types; {
|
||||
enable =
|
||||
mkBoolOpt false "Whether or not to enable the workstation archetype.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
plusultra = {
|
||||
suites = {
|
||||
common = enabled;
|
||||
desktop = enabled;
|
||||
development = enabled;
|
||||
art = enabled;
|
||||
video = enabled;
|
||||
social = enabled;
|
||||
media = enabled;
|
||||
};
|
||||
|
||||
tools = {
|
||||
appimage-run = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue