mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: figuring out structure...
This commit is contained in:
parent
9cc9afa434
commit
573563c3d2
3 changed files with 16 additions and 4 deletions
9
home/modules/development.nix
Normal file
9
home/modules/development.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib.modules) mkIf;
|
||||
in {
|
||||
config = mkIf config.role.development {
|
||||
home.packages = [
|
||||
pkgs.deadnix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
{ config, pkgs, ... }: {
|
||||
home.packages = [
|
||||
pkgs.deadnix
|
||||
];
|
||||
{ config, ... }: {
|
||||
role.development = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@ in {
|
|||
description = mdDoc "Is this system's role as a personal device?";
|
||||
default = false;
|
||||
};
|
||||
development = mkOption {
|
||||
type = bool;
|
||||
description = mdDoc "Is this system's role as a development device?";
|
||||
default = false;
|
||||
};
|
||||
laptop = mkOption {
|
||||
type = bool;
|
||||
description = mdDoc "Is this system's role as a laptop?";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue