mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: further work moving towards parity
This commit is contained in:
parent
419fcaa79f
commit
dbbac0ae23
10 changed files with 147 additions and 25 deletions
30
system/modules/roles.nix
Normal file
30
system/modules/roles.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ config, lib, ... }: let
|
||||
inherit (lib.options) mkOption mdDoc;
|
||||
inherit (lib.modules) mkIf mkDefault;
|
||||
inherit (lib.types) bool;
|
||||
in {
|
||||
options = {
|
||||
role = {
|
||||
server = mkOption {
|
||||
type = bool;
|
||||
description = mdDoc "Is this system's role as a server?";
|
||||
default = false;
|
||||
};
|
||||
personal = mkOption {
|
||||
type = bool;
|
||||
description = mdDoc "Is this system's role as a personal device?";
|
||||
default = false;
|
||||
};
|
||||
laptop = mkOption {
|
||||
type = bool;
|
||||
description = mdDoc "Is this system's role as a laptop?";
|
||||
default = false;
|
||||
};
|
||||
gnome = mkOption {
|
||||
type = bool;
|
||||
description = mdDoc "Does this system's role include running GNOME?";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue