refactor dms, new import fsckery

This commit is contained in:
2025-12-01 02:16:23 +02:00
parent 36e6ab1e77
commit 7aad68b174
10 changed files with 638 additions and 374 deletions

View File

@@ -5,5 +5,6 @@
./shell
./terminal
./syncthing.nix
./wl-kbptr.nix
];
}

View File

@@ -0,0 +1,28 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.programs.wl-kbptr;
iniFormat = pkgs.formats.ini {listsAsDuplicateKeys = true;};
in {
options = {
programs.wl-kbptr = {
enable = mkEnableOption "enable niri desktop";
settings = mkOption {
inherit (iniFormat) type;
default = {};
};
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
wl-kbptr
];
xdg.configFile."wl-kbptr/config" = mkIf (cfg.settings != {}) {
source = iniFormat.generate "wl-kbptr-config" cfg.settings;
};
};
}