Refactor dwm and thunar configuration
This commit is contained in:
parent
90118dde48
commit
62e8b83df2
|
@ -42,9 +42,6 @@
|
|||
logseq
|
||||
shotwell
|
||||
vscode
|
||||
xfce.thunar
|
||||
xfce.thunar-volman
|
||||
xfce.tumbler
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
|
|
|
@ -18,8 +18,10 @@
|
|||
features = {
|
||||
desktop = {
|
||||
autorandr.enable = true;
|
||||
dwm.enable = true;
|
||||
gaming.enable = true;
|
||||
i3.enable = true;
|
||||
thunar.enable = true;
|
||||
peek.enable = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,27 +1,40 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
services = {
|
||||
dwm-status = {
|
||||
enable = true;
|
||||
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||
|
||||
order = [
|
||||
"audio"
|
||||
"backlight"
|
||||
"battery"
|
||||
"cpu_load"
|
||||
"network"
|
||||
"time"
|
||||
];
|
||||
config = mkIf config.features.desktop.dwm.enable {
|
||||
services = {
|
||||
dwm-status = {
|
||||
enable = true;
|
||||
|
||||
order = [
|
||||
"audio"
|
||||
"backlight"
|
||||
"battery"
|
||||
"cpu_load"
|
||||
"network"
|
||||
"time"
|
||||
];
|
||||
};
|
||||
|
||||
xserver.windowManager.dwm.enable = true;
|
||||
};
|
||||
|
||||
xserver.windowManager.dwm.enable = true;
|
||||
};
|
||||
systemd.user.services.dwm-status.serviceConfig.Restart = "on-failure";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
dmenu
|
||||
dmenu-bluetooth
|
||||
networkmanager_dmenu
|
||||
st
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
dmenu
|
||||
dmenu-bluetooth
|
||||
networkmanager_dmenu
|
||||
st
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
./autorandr.nix
|
||||
./peek.nix
|
||||
./screenkey.nix
|
||||
./thunar.nix
|
||||
];
|
||||
}
|
||||
|
|
25
nix/modules/nixos/features/desktop/thunar.nix
Normal file
25
nix/modules/nixos/features/desktop/thunar.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.thunar.enable = mkEnableOption "Enable thunar";
|
||||
|
||||
config = mkIf config.features.desktop.thunar.enable {
|
||||
programs.thunar = {
|
||||
enable = true;
|
||||
|
||||
plugins = with pkgs.xfce; [
|
||||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ xfce.tumbler ];
|
||||
};
|
||||
}
|
|
@ -3,7 +3,6 @@
|
|||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
self,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
|
Loading…
Reference in a new issue