you know the drill at this point
This commit is contained in:
parent
2d0b2b5070
commit
b8e4a0a8bc
27 changed files with 227 additions and 555 deletions
|
@ -1,43 +0,0 @@
|
|||
{ config, lib, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkDefault mkOption mkMerge;
|
||||
inherit (lib.types) nullOr enum;
|
||||
|
||||
cfg = config.${namespace};
|
||||
in
|
||||
{
|
||||
options.${namespace} = {
|
||||
preset = mkOption {
|
||||
type = nullOr (enum [ "server" "desktop" ]);
|
||||
default = null;
|
||||
example = "desktop";
|
||||
description = "Which defaults profile to start with";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
(mkIf (cfg.preset == "desktop") {
|
||||
${namespace} = mkDefault {
|
||||
hardware.has = {
|
||||
audio = true;
|
||||
};
|
||||
|
||||
boot = {
|
||||
quiet = true;
|
||||
animated = true;
|
||||
};
|
||||
|
||||
desktop.use = "plasma";
|
||||
theming.enable = true;
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (cfg.preset == "server") {
|
||||
${namespace} = mkDefault {
|
||||
services = {
|
||||
networking.ssh.enable = true;
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
2
modules/nixos/shells/default.nix
Normal file
2
modules/nixos/shells/default.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{ ... }:
|
||||
{}
|
|
@ -10,5 +10,7 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# Enable completion for sys-packages:
|
||||
environment.pathsToLink = ["/share/zsh"];
|
||||
};
|
||||
}
|
|
@ -10,7 +10,9 @@ in
|
|||
];
|
||||
|
||||
options.${namespace}.theming = {
|
||||
enable = mkEnableOption "enable theming";
|
||||
enable = mkEnableOption "enable theming" // {
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue