Compare commits

..
3 Commits
Author SHA1 Message Date
hektor 9183b17731 refactor(common): simplify home-manager config
check / lint (push) Successful in 14s
2026-08-22 23:23:50 +02:00
hektor 97a2a5b52b fix(k9s): add 'mkEnableOption' description 2026-08-22 23:08:57 +02:00
hektor 4d0cc15291 fix(hecuba): use 'h' username 2026-08-22 23:07:58 +02:00
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ let
cfg = config.k8s.k9s;
in
{
options.k8s.k9s.enable = lib.mkEnableOption "";
options.k8s.k9s.enable = lib.mkEnableOption "k9s";
config = lib.mkIf cfg.enable {
programs.k9s = {
-1
View File
@@ -26,7 +26,6 @@ in
inherit (meta) host;
hardware.facter.reportPath = ./facter.json;
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
"ai-tools".enable = true;
anki.enable = true;
-1
View File
@@ -25,7 +25,6 @@ in
inherit (meta) host;
hardware.facter.reportPath = ./facter.json;
home-manager.users.${config.host.username} = import ../../home/hosts/${config.host.name};
"ai-tools".enable = true;
anki.enable = true;
+1 -1
View File
@@ -4,6 +4,6 @@
tags = [ "lab" ];
deploy.autoRollback = true;
host = {
username = "username";
username = "h";
};
}
-2
View File
@@ -1,6 +1,5 @@
{
inputs,
config,
...
}:
let
@@ -17,7 +16,6 @@ in
inherit (meta) host;
hardware.facter.reportPath = ./facter.json;
home-manager.users.${config.host.username} = import ../../home/hosts/vm;
"ai-tools".enable = true;
anki.enable = true;
+4
View File
@@ -9,6 +9,7 @@
let
inherit (inputs.nixpkgs) lib;
homeDir = ../../home/hosts + "/${config.host.name}";
in
{
imports = [
@@ -83,6 +84,9 @@ in
host.username = lib.mkDefault config.host.username;
}
];
users = lib.optionalAttrs (builtins.pathExists homeDir) {
${config.host.username} = import homeDir;
};
};
};
}