move all home level programs to progems dir

This commit is contained in:
ulic-youthlic 2025-02-01 18:43:49 +08:00
parent 77d70dcf2e
commit bc450a9fe7
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
27 changed files with 27 additions and 21 deletions

View file

@ -1,45 +0,0 @@
{
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; [
swaynotificationcenter
swaybg
xwayland-satellite
niri-unstable
polkit-kde-agent
wl-clipboard
cliphist
];
youthlic.programs = {
fuzzel.enable = true;
wluma.enable = true;
waybar.enable = true;
swaync.enable = true;
swaylock.enable = true;
};
programs.niri = {
config = builtins.readFile cfg.config;
package = pkgs.niri-unstable;
};
};
}