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 50674e3a58
commit 74bd489187
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
5 changed files with 76 additions and 9 deletions

View file

@ -13,6 +13,7 @@
youthlic.programs = {
firefox.enable = true;
fuzzel.enable = true;
helix.enable = true;
gpg.enable = true;
git = {

View file

@ -1,12 +1,7 @@
{ pkgs, ... }:
{ ... }:
{
programs.niri = {
config = builtins.readFile ./config.kdl;
youthlic.programs.niri = {
enable = true;
config = ./config.kdl;
};
home.packages = with pkgs; [
mako
swaybg
xwayland-satellite
waybar
];
}

View file

@ -14,7 +14,9 @@
./foot
./starship
./sops.nix
./fuzzel.nix
./firefox.nix
./niri.nix
];
options = {

32
home/modules/fuzzel.nix Normal file
View file

@ -0,0 +1,32 @@
{ config, lib, ... }:
let
cfg = config.youthlic.programs.fuzzel;
in
{
options = {
youthlic.programs.fuzzel = {
enable = lib.mkEnableOption "fuzzel";
};
};
config = {
programs.fuzzel = lib.mkIf cfg.enable {
enable = true;
settings = {
main = {
font = "LXGW WenKai:size=11";
prompt = "'λ '";
dpi-aware = true;
};
colors = {
background = "282a36dd";
text = "f8f8f2ff";
match = "8be9fdff";
selection-match = "8be9fdff";
selection = "44475add";
selection-text = "f8f8f2ff";
border = "bd93f9ff";
};
};
};
};
}

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;
};
};
}