Enable using i3lock-fancy for xfce lock screen

This commit is contained in:
Evie Litherland-Smith 2023-04-05 17:20:17 +01:00
parent 4c06dc6b45
commit 48d5d6c5de
6 changed files with 15 additions and 13 deletions

View file

@ -3,12 +3,12 @@
imports = [ imports = [
./common.nix ./common.nix
./xserver.nix ./xserver.nix
./sddm.nix
]; ];
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment. # Enable the KDE Plasma Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.plasma5.enable = true;
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;

6
nixos/desktop/sddm.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
services.xserver.displayManager.sddm = {
enable = true;
};
}

View file

@ -1,9 +1,9 @@
{ ... }: { pkgs, ... }:
{ {
imports = [ imports = [
./common.nix ./common.nix
./xserver.nix ./xserver.nix
./sddm.nix
]; ];
services.xserver = { services.xserver = {
enable = true; enable = true;
@ -13,7 +13,10 @@
enableXfwm = false; enableXfwm = false;
}; };
windowManager.bspwm.enable = true; windowManager.bspwm.enable = true;
displayManager.sddm.enable = true;
displayManager.defaultSession = "xfce+bspwm"; displayManager.defaultSession = "xfce+bspwm";
}; };
programs.i3lock = {
enable = true;
package = pkgs.i3lock-fancy;
};
} }

View file

@ -13,9 +13,6 @@
pointer_action2 = "resize_side"; pointer_action2 = "resize_side";
pointer_action3 = "resize_corner"; pointer_action3 = "resize_corner";
}; };
startupPrograms = [
"kitty -e \"nvim\""
];
monitors = { monitors = {
"primary" = ["I" "II" "III" "IV" "V"]; "primary" = ["I" "II" "III" "IV" "V"];
}; };

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { ... }:
{ {
programs.rofi = { programs.rofi = {
enable = true; enable = true;
@ -6,8 +6,4 @@
pass.enable = true; pass.enable = true;
terminal = "kitty"; terminal = "kitty";
}; };
home.packages = with pkgs; [
i3lock
scrot
];
} }

View file

@ -117,7 +117,7 @@ menu=(
[ Reboot]="systemctl reboot" [ Reboot]="systemctl reboot"
[ Suspend]="systemctl suspend" [ Suspend]="systemctl suspend"
[ Hibernate]="systemctl hibernate" [ Hibernate]="systemctl hibernate"
[ Lock]="xflock" [ Lock]="i3lock-fancy"
[ Logout]="xfce4-session-logout" [ Logout]="xfce4-session-logout"
[ Cancel]="" [ Cancel]=""
) )