refactor dms, new import fsckery
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
./shell
|
||||
./terminal
|
||||
./syncthing.nix
|
||||
./wl-kbptr.nix
|
||||
];
|
||||
}
|
||||
|
||||
28
modules/home/programs/wl-kbptr.nix
Normal file
28
modules/home/programs/wl-kbptr.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user