home: move sway autostart to sway.nix

This commit is contained in:
Guanran Wang 2023-10-26 23:54:50 +08:00
parent db271c57a1
commit 35d37be0df
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
2 changed files with 6 additions and 7 deletions

View file

@ -256,13 +256,6 @@
#};
programs = {
fish.loginShellInit = ''
if status is-login
if test -z "$Display" -a "$XDG_VTNR" = 1
exec sway
end
end
'';
rofi = {
#enable = true;
package = pkgs.rofi-wayland;

View file

@ -1,6 +1,12 @@
{ config, pkgs, ... }:
{
programs.fish.loginShellInit = ''
if test -z "$Display" -a "$XDG_VTNR" = 1
exec sway
end
'';
wayland.windowManager.sway = {
enable = true;
extraOptions = [ "--unsupported-gpu" "-D" "noscanout" ];