2023-05-17 17:10:18 +01:00
|
|
|
{pkgs, ...}: {
|
2023-04-04 14:20:49 +01:00
|
|
|
imports = [
|
|
|
|
./xserver.nix
|
2023-04-05 17:20:17 +01:00
|
|
|
./sddm.nix
|
2023-04-04 14:20:49 +01:00
|
|
|
];
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
2023-04-07 09:06:11 +01:00
|
|
|
desktopManager.xfce.enable = true;
|
2023-04-05 22:30:11 +01:00
|
|
|
displayManager = {
|
2023-04-07 09:06:11 +01:00
|
|
|
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
|
|
|
'';
|
|
|
|
};
|
2023-04-04 14:20:49 +01:00
|
|
|
};
|
2023-04-05 17:20:17 +01:00
|
|
|
programs.i3lock = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.i3lock-fancy;
|
|
|
|
};
|
2023-04-04 14:20:49 +01:00
|
|
|
}
|