feat: move to sddm

This commit is contained in:
2025-05-04 10:56:31 +08:00
parent ba30d87ef4
commit 8949fbea6b
3 changed files with 15 additions and 27 deletions

View File

@@ -43,10 +43,7 @@
PATH = "/home/${username}/bin:$PATH";
};
profileExtra = ''
if [ `tty` = "/dev/tty1" -a $XDG_RUNTIME_DIR ]; then
echo 'Starting Niri...'
exec uwsm start niri-uwsm.desktop
elif [ `tty` = "/dev/tty6" ]; then
if [ `tty` = "/dev/tty6" ]; then
clear
fi
'';
@@ -94,10 +91,7 @@
autologin = {
enable = true;
user = username;
ttys = [
1
6
];
ttys = [ 6 ];
};
gpg.enable = true;

View File

@@ -92,11 +92,6 @@
"-i"
(toString ./wallpaper.png)
]
[
"${lib.getExe pkgs.wl-clip-persist}"
"--clipboard"
"regular"
]
[
"wl-paste"
"--type"

View File

@@ -2,6 +2,7 @@ args@{
lib,
config,
pkgs,
username,
...
}:
let
@@ -40,27 +41,25 @@ in
xdg-desktop-portal-gnome
];
};
programs.uwsm = {
programs.niri = {
enable = true;
waylandCompositors = {
niri = {
prettyName = "niri";
comment = "Niri compositor managed by UWSM";
binPath = pkgs.writeShellScript "niri-session" ''
${lib.getExe pkg} --session
'';
};
package = pkg;
};
services.displayManager = {
autoLogin = {
enable = true;
user = username;
};
sddm = {
enable = true;
wayland.enable = true;
extraPackages = [ pkgs.where-is-my-sddm-theme ];
};
};
my.home = {
programs.niri = {
enable = true;
package = pkg;
};
home.packages = with pkgs; [
wlr-randr
wl-clipboard
wl-clip-persist
cliphist
swaynotificationcenter
nemo-with-extensions