pinwheel: Extract swaylock module
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
./modules/vim
|
./modules/vim
|
||||||
./modules/foot
|
./modules/foot
|
||||||
./modules/hyprland
|
./modules/hyprland
|
||||||
|
./modules/swaylock
|
||||||
./modules/syncthing
|
./modules/syncthing
|
||||||
./modules/firefox
|
./modules/firefox
|
||||||
./modules/calibre
|
./modules/calibre
|
||||||
@@ -64,7 +65,6 @@
|
|||||||
LC_TIME = "sv_SE.UTF-8";
|
LC_TIME = "sv_SE.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
security.polkit.enable = true;
|
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
@@ -116,12 +116,6 @@
|
|||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.services.swaylock.text = ''
|
|
||||||
# PAM configuration file for the swaylock screen locker. By default, it includes
|
|
||||||
# the 'login' configuration file (see /etc/pam.d/login)
|
|
||||||
auth include login
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|||||||
@@ -41,16 +41,6 @@
|
|||||||
|
|
||||||
style = '''';
|
style = '''';
|
||||||
|
|
||||||
programs.swaylock = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
color = "000000";
|
|
||||||
indicator-idle-visible = false;
|
|
||||||
show-failed-attempts = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.dunst.enable = true;
|
services.dunst.enable = true;
|
||||||
|
|
||||||
home.stateVersion = "23.05";
|
home.stateVersion = "23.05";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ home-manager, pkgs, ... }:
|
{ home-manager, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.alex = {
|
home-manager.users.alex = {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
@@ -66,7 +66,6 @@
|
|||||||
move = builtins.genList (x: "$mod SHIFT, ${ws x}, movetoworkspacesilent, ${builtins.toString (x + 1)}") 10;
|
move = builtins.genList (x: "$mod SHIFT, ${ws x}, movetoworkspacesilent, ${builtins.toString (x + 1)}") 10;
|
||||||
in
|
in
|
||||||
select ++ move ++ [
|
select ++ move ++ [
|
||||||
"$mod, x, exec, ${pkgs.swaylock}/bin/swaylock"
|
|
||||||
"$mod SHIFT, x, exec, systemctl suspend"
|
"$mod SHIFT, x, exec, systemctl suspend"
|
||||||
|
|
||||||
"$mod, SPACE, exec, bemenu-run --fn 'DejaVuSansM Nerd Font Mono 14'"
|
"$mod, SPACE, exec, bemenu-run --fn 'DejaVuSansM Nerd Font Mono 14'"
|
||||||
|
|||||||
32
hosts/pinwheel/modules/swaylock/default.nix
Normal file
32
hosts/pinwheel/modules/swaylock/default.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{ home-manager, pkgs, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.alex = {
|
||||||
|
programs.swaylock = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
color = "000000";
|
||||||
|
indicator-idle-visible = false;
|
||||||
|
show-failed-attempts = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
settings = {
|
||||||
|
bind = [
|
||||||
|
"$mod, x, exec, ${pkgs.swaylock}/bin/swaylock"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
security = {
|
||||||
|
polkit.enable = true;
|
||||||
|
|
||||||
|
pam.services.swaylock.text = ''
|
||||||
|
# PAM configuration file for the swaylock screen locker. By default, it includes
|
||||||
|
# the 'login' configuration file (see /etc/pam.d/login)
|
||||||
|
auth include login
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user