Update login and lock screens

Remove sddm/xserver to use greetd everywhere
Currently launching Hyprland directly and starting with lockscreen

Replace swaylock with gtklock for more consistency
This commit is contained in:
Evie Litherland-Smith 2023-09-27 12:45:12 +01:00
parent aabe33e8aa
commit d26a3c4643
6 changed files with 29 additions and 41 deletions

View file

@ -2,8 +2,6 @@
test: test:
sudo nixos-rebuild test --flake . sudo nixos-rebuild test --flake .
-hyprctl reload
-pkill -HUP kanshi
build: build:
sudo nixos-rebuild build --flake . sudo nixos-rebuild build --flake .

View file

@ -95,7 +95,7 @@ in ''
} }
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more
bind = SUPER, F1, exec, swaylock bind = SUPER, F1, exec, ${pkgs.gtklock}/bin/gtklock
bind = SUPER, M, fullscreen, 0 bind = SUPER, M, fullscreen, 0
bind = SUPER, P, exec, pkill rofi || rofi-pass bind = SUPER, P, exec, pkill rofi || rofi-pass
bind = SUPER, X, exec, swaync-client -t bind = SUPER, X, exec, swaync-client -t
@ -254,4 +254,5 @@ in ''
exec-once = ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n exec-once = ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n
exec-once = ${pkgs.dex}/bin/dex --autostart exec-once = ${pkgs.dex}/bin/dex --autostart
exec-once = kidex exec-once = kidex
exec-once = ${pkgs.gtklock}/bin/gtklock
'' ''

View file

@ -7,12 +7,9 @@
./swaync/default.nix ./swaync/default.nix
./rofi/default.nix ./rofi/default.nix
./anyrun.nix ./anyrun.nix
./swaylock.nix
./gtk.nix ./gtk.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
libsForQt5.polkit-kde-agent
mc
signal-desktop signal-desktop
ferdium ferdium
libreoffice libreoffice

View file

@ -3,6 +3,7 @@
{ {
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
with libsForQt5.qt5; [ with libsForQt5.qt5; [
gtklock
dex dex
mesa mesa
libnotify libnotify
@ -11,18 +12,21 @@
qtgraphicaleffects qtgraphicaleffects
qtsvg qtsvg
qtquickcontrols2 qtquickcontrols2
catppuccin-sddm-corners
protonvpn-cli protonvpn-cli
protonvpn-gui protonvpn-gui
qbittorrent qbittorrent
]; ];
security.rtkit.enable = true; security = {
rtkit.enable = true;
pam.services.gtklock = { };
};
sound.enable = true; sound.enable = true;
hardware = { hardware = {
pulseaudio.enable = false; pulseaudio.enable = false;
bluetooth.enable = true; bluetooth.enable = true;
}; };
services = { services = {
greetd.enable = true;
pipewire = { pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
@ -30,15 +34,8 @@
pulse.enable = true; pulse.enable = true;
}; };
xserver = { xserver = {
enable = true;
layout = "gb"; layout = "gb";
xkbVariant = ""; xkbVariant = "";
displayManager.sddm = {
enable = true;
theme = "catppuccin-sddm-corners";
autoNumlock = true;
settings = { General = { InputMethod = ""; }; };
};
}; };
}; };
console.keyMap = "uk"; console.keyMap = "uk";

View file

@ -1,27 +1,17 @@
{ config, lib, pkgs, user ? "xenia", ... }: { config, lib, pkgs, user, ... }:
let
sessionCommand = '' {
imports = [ ./desktop.nix ./steam.nix ];
services.greetd.settings = rec {
default_session.command = ''
gamescope\ gamescope\
--nested-refresh 60\ --nested-refresh 60\
--scaler auto --filter fsr --fsr-sharpness 10\ --scaler auto --filter fsr --fsr-sharpness 10\
--hide-cursor-delay 5 --steam -- steam -gamepadui --hide-cursor-delay 5 --steam -- steam -gamepadui
''; '';
in {
imports = [ ./desktop.nix ./steam.nix ];
services = {
blueman.enable = true;
greetd = {
enable = true;
settings = {
default_session = {
inherit user;
command = sessionCommand;
};
initial_session = { initial_session = {
inherit user; inherit user;
command = sessionCommand; inherit (default_session) command;
};
};
}; };
}; };
} }

View file

@ -1,4 +1,4 @@
{ pkgs, user ? "xenia", ... }: { config, lib, pkgs, user, ... }:
{ {
imports = [ ./desktop.nix ]; imports = [ ./desktop.nix ];
@ -26,12 +26,17 @@
playerctl playerctl
brightnessctl brightnessctl
]; ];
security.pam.services.swaylock = { };
services = { services = {
blueman.enable = true; blueman.enable = true;
gvfs.enable = true; gvfs.enable = true;
tumbler.enable = true; tumbler.enable = true;
xserver.displayManager.defaultSession = "hyprland"; greetd.settings = rec {
default_session.command = "Hyprland";
initial_session = {
inherit user;
inherit (default_session) command;
};
};
}; };
fonts = { fonts = {
packages = with pkgs; [ packages = with pkgs; [