Skip to content

Commit cb4f487

Browse files
committed
nix: lightdm greeter bg + triple monitor wallpaper
1 parent 2b4aad6 commit cb4f487

File tree

5 files changed

+37
-25
lines changed

5 files changed

+37
-25
lines changed

assets/.greeter-image

234 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.

configuration.nix

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,19 @@
3232

3333
desktopManager.xterm.enable = false;
3434

35-
#windowManager.i3.enable = true;
3635
windowManager.xmonad.enable = true;
3736
windowManager.xmonad.extraPackages = self: [ self.xmonad-contrib ];
38-
#windowManager.xmonad.haskellPackages = pkgs.haskell.packages.ghc865;
3937

40-
displayManager.defaultSession = "none+xmonad";
41-
displayManager.sessionCommands = ''
42-
export PATH=$HOME/bin:$PATH
38+
displayManager = {
39+
defaultSession = "none+xmonad";
40+
lightdm.background = ./assets/.greeter-image;
41+
sessionCommands = ''
42+
export PATH=$HOME/bin:$PATH
4343
44-
# disable accel on mouse
45-
${pkgs.xorg.xset}/bin/xset m 1/1 0
46-
'';
44+
# disable accel on mouse
45+
${pkgs.xorg.xset}/bin/xset m 1/1 0
46+
'';
47+
};
4748
};
4849

4950
sshd.enable = true;

desktop.nix

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# desktop.nix
2-
{ config, pkgs, ... }:
2+
{ config, pkgs, lib, ... }:
33
{
44
imports =
55
[ # Include the results of the hardware scan.
@@ -18,26 +18,37 @@
1818
};
1919
};
2020
services = {
21-
xserver.resolutions = [
22-
{ x=1920; y=1080; }
23-
{ x=1920; y=1080; }
24-
{ x=1920; y=1080; }
25-
];
26-
xserver.xrandrHeads = [
27-
{ output="DVI-0"; }
28-
{ output="HDMI-3"; primary=true; }
29-
{ output="DisplayPort-4";
30-
monitorConfig=''
31-
Option "Rotate" "Left"
32-
Option "Position" "3840 -420"
33-
Option "Mode" "1920x1080"
34-
'';
35-
}
36-
];
21+
xserver = rec {
22+
resolutions = [
23+
{ x=1920; y=1080; }
24+
{ x=1920; y=1080; }
25+
{ x=1920; y=1080; }
26+
];
27+
xrandrHeads = [
28+
{ output="DVI-0"; }
29+
{ output="HDMI-3"; primary=true; }
30+
{ output="DisplayPort-4";
31+
monitorConfig=''
32+
Option "Rotate" "Left"
33+
Option "Position" "3840 -420"
34+
Option "Mode" "1920x1080"
35+
'';
36+
}
37+
];
38+
desktopManager.session = let
39+
bgs = lib.imap0 (i: _: "--bg-fill $HOME/.background_image" + toString i) xrandrHeads;
40+
in [{ name = "none";
41+
start = ''
42+
${pkgs.feh}/bin/feh ${toString bgs}
43+
'';
44+
}];
45+
};
3746
plex.enable = false;
3847
openssh.permitRootLogin = "no";
3948
};
4049

50+
51+
4152
boot.loader = {
4253
systemd-boot.enable = true;
4354
efi.canTouchEfiVariables = true;

0 commit comments

Comments
 (0)