feat: added swaylock

This commit is contained in:
Julien Malka 2023-04-11 19:38:19 +02:00
parent dbc79339e3
commit 596c4ab78d
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 26 additions and 2 deletions

View file

@ -21,6 +21,7 @@ with lib;
xdg.configFile."hypr/hyprland.conf".text = ''
exec-once = waybar & hyprpaper
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY
exec-once = nm-applet --indicator
# Monitors
monitor = eDP-1, preferred, auto, auto
@ -71,7 +72,7 @@ with lib;
# Gestures
gestures {
workspace_swipe = true
workspace_swipe_fingers = 3
workspace_swipe_fingers = 4
}
@ -161,7 +162,9 @@ with lib;
wallpaper = ,${../../machines/macintosh/wallpaper.jpg}
'';
home.packages = with pkgs; [ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper ];
home.packages = with pkgs; [ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper swaylock ];
};
}

View file

@ -82,8 +82,29 @@
# for a WiFi printer
services.avahi.openFirewall = true;
services.davfs2 = {
enable = true;
};
security.pam.services.swaylock = { };
services.autofs = {
enable = true;
debug = true;
autoMaster =
let
mapConf = pkgs.writeText "auto" ''
nuage -fstype=davfs,uid=1000,file_mode=600,dir_mode=700,conf=/home/julien/.davfs2/davfs2.conf,rw :https\://nuage.malka.family/remote.php/webdav/
'';
in
''
/home/julien/clouds file:${mapConf}
'';
};
system.stateVersion = "23.05"; # Did you read the comment?
}