24 lines
555 B
Nix
24 lines
555 B
Nix
{ pkgs, ... }:
|
|
{
|
|
imports = [
|
|
./xserver.nix
|
|
./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;
|
|
};
|
|
}
|