move niri config to home modules and enable fuzzel

This commit is contained in:
ulic-youthlic 2025-01-14 19:09:46 +08:00
parent 3236adf976
commit 42d80c6983
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
5 changed files with 76 additions and 9 deletions

37
home/modules/niri.nix Normal file
View file

@ -0,0 +1,37 @@
{
pkgs,
config,
lib,
...
}:
let
cfg = config.youthlic.programs.niri;
in
{
options = {
youthlic.programs.niri = {
enable = lib.mkEnableOption "niri";
config = lib.mkOption {
type = lib.types.path;
example = ./config.kdl;
description = ''
the pach to config.kdl
'';
};
};
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
mako
swaybg
xwayland-satellite
waybar
];
youthlic.programs = {
fuzzel.enable = true;
};
programs.niri = {
config = builtins.readFile cfg.config;
};
};
}