feat: ...get internet again. git-hooks.nix adopt

This commit is contained in:
Kat Inskip 2025-08-18 15:13:47 -07:00
parent 7a0f09e700
commit e00ec8f2f2
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
116 changed files with 1157 additions and 4681 deletions

View file

@ -9,19 +9,18 @@
inherit (lib.modules) mkDefault;
inherit (lib.attrsets) genAttrs;
fileOption = mkOption {
type = attrsOf (submodule (
_: {
config.force = mkDefault config.home.clobberAllFiles;
}
));
};
type = attrsOf (submodule (
_: {
config.force = mkDefault config.home.clobberAllFiles;
}
));
};
in {
options = {
home = {
clobberAllFiles = mkEnableOption "clobbering all files";
file = fileOption;
};
xdg = genAttrs [ "configFile" "cacheFile" "stateFile" "dataFile" ] (_: fileOption);
xdg = genAttrs ["configFile" "cacheFile" "stateFile" "dataFile"] (_: fileOption);
};
}

View file

@ -1,4 +1,10 @@
{ inputs, lib, pkgs, config, ... }: let
{
inputs,
lib,
pkgs,
config,
...
}: let
inherit (lib.options) mkOption mkEnableOption mkPackageOption;
inherit (lib.types) submodule path nullOr;
inherit (lib.modules) mkIf;