Refactor dwm and thunar configuration
This commit is contained in:
parent
90118dde48
commit
62e8b83df2
|
@ -42,9 +42,6 @@
|
||||||
logseq
|
logseq
|
||||||
shotwell
|
shotwell
|
||||||
vscode
|
vscode
|
||||||
xfce.thunar
|
|
||||||
xfce.thunar-volman
|
|
||||||
xfce.tumbler
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
@ -18,8 +18,10 @@
|
||||||
features = {
|
features = {
|
||||||
desktop = {
|
desktop = {
|
||||||
autorandr.enable = true;
|
autorandr.enable = true;
|
||||||
|
dwm.enable = true;
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
i3.enable = true;
|
i3.enable = true;
|
||||||
|
thunar.enable = true;
|
||||||
peek.enable = true;
|
peek.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
{ pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||||
|
|
||||||
|
config = mkIf config.features.desktop.dwm.enable {
|
||||||
services = {
|
services = {
|
||||||
dwm-status = {
|
dwm-status = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -18,10 +28,13 @@
|
||||||
xserver.windowManager.dwm.enable = true;
|
xserver.windowManager.dwm.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.dwm-status.serviceConfig.Restart = "on-failure";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
dmenu
|
dmenu
|
||||||
dmenu-bluetooth
|
dmenu-bluetooth
|
||||||
networkmanager_dmenu
|
networkmanager_dmenu
|
||||||
st
|
st
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
./autorandr.nix
|
./autorandr.nix
|
||||||
./peek.nix
|
./peek.nix
|
||||||
./screenkey.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,
|
inputs,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
self,
|
|
||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
Loading…
Reference in a new issue