nixos/desktop/xfce.nix

20 lines
527 B
Nix

{pkgs, ...}: {
imports = [./sddm.nix];
services.xserver = {
enable = true;
desktopManager.xfce.enable = true;
displayManager = {
defaultSession = "xfce";
sessionCommands = ''
[ -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
'';
};
};
programs.i3lock = {
enable = true;
package = pkgs.i3lock-fancy;
};
}