diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-25 22:52:20 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-25 23:00:44 -0700 |
| commit | 2f17e369400b9c895b3554008ab3efbc76255428 (patch) | |
| tree | 172c910e17f14bb8d0d7306fe527c2c79140df64 /roles/home/dev/default.nix | |
| parent | 10c984caf7067656990e5966b4626314f225755f (diff) | |
roles: home: migrate old home module to roles
Diffstat (limited to 'roles/home/dev/default.nix')
| -rw-r--r-- | roles/home/dev/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/home/dev/default.nix b/roles/home/dev/default.nix new file mode 100644 index 0000000..b092246 --- /dev/null +++ b/roles/home/dev/default.nix @@ -0,0 +1,26 @@ +{ config, pkgs, lib, inputs, ... }: +with lib; + +let cfg = config.home.roles.dev; in { + imports = [ + ./git.nix + ./vim.nix + ./vscode.nix + ]; + + options.home.roles.dev = { + enable = mkEnableOption "dev home role"; + + key = mkOption { + type = types.str; + description = "git signing key"; + }; + }; + + config = mkIf cfg.enable { + programs = { + git.enable = true; + vscode.enable = config.home.roles.desktop.enable; + }; + }; +} |