better consistency, add dotfiles for takamaki and new features

This commit is contained in:
greyweather committed 2026-08-31 01:10:23 +01:00
1 parent 023fc0c424
commit 5c2a328858
35 files changed
+2455 -190

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
{ inputs, self, ... }: let
mkNhAttrs = flake: {
enable = true;
inherit flake;
clean = {
enable = true;
dates = "Sun 05:00";
extraArgs = "--keep 5 --keep-since 3d";
};
};
in {
flake.nixosModules.global = { pkgs, config, lib, ... }: {
options.features.applications.cli.nh.enable = lib.mkEnableOption "nh";
config = lib.mkIf (config.features.applications.cli.nh.enable) {
programs.nh = mkNhAttrs config.info.rootPath;
home-manager.users.grey = lib.mkIf (config.features.nixos.home-manager.enable) {
features.applications.cli.nh.enable = lib.mkDefault true;
};
};
};
flake.homeModules.global = { pkgs, config, lib, ... }: {
options.features.applications.cli.nh.enable = lib.mkEnableOption "nh";
config = lib.mkIf (config.features.applications.cli.nh.enable && config.info.isStandalone) {
programs.nh = mkNhAttrs config.info.rootPath;
};
};
}