nixos/desktop/xfce.nix

24 lines
555 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
imports = [
./xserver.nix
./sddm.nix
];
services.xserver = {
enable = true;
desktopManager.xfce.enable = true;
2023-04-05 22:30:11 +01:00
displayManager = {
defaultSession = "xfce";
2023-04-05 22:30:11 +01:00
sessionCommands = ''
2023-04-06 10:41:26 +01:00
[ -f "$HOME/.config/nitrogen/bg-saved.cfg" ]\
&& ${pkgs.nitrogen}/bin/nitrogen --restore\
|| ${pkgs.nitrogen}/bin/nitrogen --set-auto $HOME/.dotfiles/wallpaper/images_dark/5120x2880.png --save
2023-04-05 22:30:11 +01:00
'';
};
};
programs.i3lock = {
enable = true;
package = pkgs.i3lock-fancy;
};
}