aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/home/default.nix8
-rw-r--r--roles/home/dev/default.nix25
-rw-r--r--snowfall/modules/home/suites/dev/default.nix4
-rw-r--r--snowfall/modules/home/tools/cloc/default.nix15
4 files changed, 19 insertions, 33 deletions
diff --git a/roles/home/default.nix b/roles/home/default.nix
deleted file mode 100644
index 295b1a4..0000000
--- a/roles/home/default.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ ... }:
-
-{
- imports = [
- ./desktop
- ./dev
- ];
-}
diff --git a/roles/home/dev/default.nix b/roles/home/dev/default.nix
deleted file mode 100644
index e451d76..0000000
--- a/roles/home/dev/default.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{ 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 {
- home.packages = with pkgs; [
- cloc
- ];
- };
-}
diff --git a/snowfall/modules/home/suites/dev/default.nix b/snowfall/modules/home/suites/dev/default.nix
index 2884897..fd58bce 100644
--- a/snowfall/modules/home/suites/dev/default.nix
+++ b/snowfall/modules/home/suites/dev/default.nix
@@ -13,6 +13,10 @@ in {
apps = {
vscode.enable = desktop.enable;
};
+
+ tools = {
+ cloc.enable = true;
+ };
};
};
}
diff --git a/snowfall/modules/home/tools/cloc/default.nix b/snowfall/modules/home/tools/cloc/default.nix
new file mode 100644
index 0000000..376bd14
--- /dev/null
+++ b/snowfall/modules/home/tools/cloc/default.nix
@@ -0,0 +1,15 @@
+{ options, config, lib, pkgs, namespace, ... }:
+
+with lib; with lib.${namespace}; let
+ cfg = config.${namespace}.tools.cloc;
+in {
+ options.${namespace}.tools.cloc = with types; {
+ enable = mkEnableOption "cloc";
+ };
+
+ config = mkIf cfg.enable {
+ home.packages = with pkgs; [
+ cloc
+ ];
+ };
+}