nixcfg/modules/nixos/suites/common-slim/default.nix

64 lines
1.1 KiB
Nix
Raw Normal View History

2024-01-11 11:26:46 +01:00
{ options
, config
, lib
, pkgs
, ...
}:
with lib;
with lib.plusultra; let
cfg = config.plusultra.suites.common-slim;
in
{
options.plusultra.suites.common-slim = with types; {
enable = mkBoolOpt false "Whether or not to enable common-slim configuration.";
};
config = mkIf cfg.enable {
environment.systemPackages = [
pkgs.plusultra.list-iommu
];
plusultra = {
nix = enabled;
# TODO: Enable this once Attic is configured again.
# cache.public = enabled;
cli-apps = {
flake = enabled;
thaw = enabled;
};
tools = {
git = enabled;
fup-repl = enabled;
comma = enabled;
bottom = enabled;
direnv = enabled;
};
hardware = {
storage = enabled;
networking = enabled;
};
services = {
openssh = enabled;
tailscale = enabled;
};
security = {
doas = enabled;
};
system = {
boot = enabled;
fonts = enabled;
locale = enabled;
time = enabled;
xkb = enabled;
};
};
};
}