feat: figuring out structure...

This commit is contained in:
Kat Inskip 2022-12-04 17:26:41 +01:00
parent 9cc9afa434
commit 573563c3d2
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 16 additions and 4 deletions

View file

@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }: let
inherit (lib.modules) mkIf;
in {
config = mkIf config.role.development {
home.packages = [
pkgs.deadnix
];
};
}

View file

@ -1,5 +1,3 @@
{ config, pkgs, ... }: { { config, ... }: {
home.packages = [ role.development = true;
pkgs.deadnix
];
} }

View file

@ -14,6 +14,11 @@ in {
description = mdDoc "Is this system's role as a personal device?"; description = mdDoc "Is this system's role as a personal device?";
default = false; default = false;
}; };
development = mkOption {
type = bool;
description = mdDoc "Is this system's role as a development device?";
default = false;
};
laptop = mkOption { laptop = mkOption {
type = bool; type = bool;
description = mdDoc "Is this system's role as a laptop?"; description = mdDoc "Is this system's role as a laptop?";