From 2f17e369400b9c895b3554008ab3efbc76255428 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Thu, 25 Jul 2024 22:52:20 -0700 Subject: roles: home: migrate old home module to roles --- roles/home/dev/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 roles/home/dev/default.nix (limited to 'roles/home/dev/default.nix') 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; + }; + }; +} -- cgit v1.2.3