aaaaaaaaaaaaaaaaaaaaa
This commit is contained in:
parent
c81213a02b
commit
689a0cdfa8
3 changed files with 13 additions and 24 deletions
|
|
@ -2,17 +2,13 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.modules.graphical;
|
cfg = config.modules.graphical;
|
||||||
quickshell-packages = lib.mkIf cfg.quickshell (with pkgs; [quickshell]);
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
modules.graphical = {
|
modules.graphical = {
|
||||||
enable = lib.mkEnableOption "Enable the GUI";
|
enable = lib.mkEnableOption "Enable the GUI";
|
||||||
|
|
||||||
waybar = lib.mkEnableOption "Enable waybar";
|
waybar = lib.mkEnableOption "Enable waybar";
|
||||||
|
|
||||||
quickshell = lib.mkEnableOption "Enable quickshell";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -23,9 +19,8 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
quickshell
|
||||||
]
|
]
|
||||||
++ quickshell-packages;
|
|
||||||
|
|
||||||
programs.waybar.enable = lib.mkIf cfg.waybar true;
|
programs.waybar.enable = lib.mkIf cfg.waybar true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,23 +2,10 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.modules.yazi;
|
cfg = config.modules.yazi;
|
||||||
optional-packages = lib.mkIf cfg.optional-programs (with pkgs; [
|
|
||||||
ffmpeg_7
|
|
||||||
p7zip
|
|
||||||
jq
|
|
||||||
poppler
|
|
||||||
fd
|
|
||||||
ripgrep
|
|
||||||
fzf
|
|
||||||
zoxide
|
|
||||||
resvg
|
|
||||||
imagemagick
|
|
||||||
]);
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.yazi = {
|
options.modules.yazi = {
|
||||||
enable = lib.mkEnableOption "Enable Yazi file manager";
|
enable = lib.mkEnableOption "Enable Yazi file manager";
|
||||||
optional-programs = lib.mkEnableOption "Enable optional extra packages";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -29,6 +16,16 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nerd-fonts.ubuntu
|
nerd-fonts.ubuntu
|
||||||
nerd-fonts.ubuntu-mono
|
nerd-fonts.ubuntu-mono
|
||||||
] ++ optional-packages;
|
ffmpeg_7
|
||||||
|
p7zip
|
||||||
|
jq
|
||||||
|
poppler
|
||||||
|
fd
|
||||||
|
ripgrep
|
||||||
|
fzf
|
||||||
|
zoxide
|
||||||
|
resvg
|
||||||
|
imagemagick
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -18,10 +18,7 @@
|
||||||
waybar = true;
|
waybar = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules.yazi = {
|
modules.yazi.enable = true;
|
||||||
enable = true;
|
|
||||||
optional-programs = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue