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

View File

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

View File

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