-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
42 lines (38 loc) · 927 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
pkgs,
username,
...
}: {
imports = [
../share/picom.nix
../share/dunst.nix
../share/rofi
../share/x11
../share/wall
];
home.file.".Xresources".text =
if username == "plier"
then "Xft.dpi: 192"
else "";
home.file.".xinitrc".text =
# somehow found it from: https://discourse.nixos.org/t/how-to-start-user-units-when-using-startx/16919/2
# without this the xdg portal doesn't work
''
dbus-daemon --session --address="unix:path=$XDG_RUNTIME_DIR/bus" &
''
+ ''
xrdb ~/.Xresources &
${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 &
xautolock -locker "i3lock -c 000000" -notifier "dunstify 'locking in 5'" -notify 300 &
exec leftwm
'';
xdg.configFile."leftwm".source = ./leftwm;
home.packages = with pkgs; [
eww
xautolock
polkit_gnome
brightnessctl
light
alsa-utils # amixer
];
}