Switch to greetd to fix the service crisis
This commit is contained in:
parent
bbe92e5cd7
commit
fbec76baa7
9 changed files with 31 additions and 19 deletions
|
@ -31,7 +31,6 @@
|
|||
};
|
||||
|
||||
services = {
|
||||
displayManager.ly.enable = lib.mkForce false;
|
||||
keyd.enable = lib.mkForce false;
|
||||
tlp.enable = lib.mkForce false;
|
||||
xserver.desktopManager.gnome.enable = true;
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
stateVersion = "24.05";
|
||||
};
|
||||
|
||||
environment.sessionVariables.WLR_RENDERER = lib.mkForce "gles2";
|
||||
programs.sway.extraSessionCommands = lib.mkForce "WLR_RENDERER=gles2";
|
||||
}
|
||||
|
|
|
@ -4,11 +4,9 @@
|
|||
username = "bun";
|
||||
homeDirectory = "/home/${config.home.username}";
|
||||
sessionVariables = {
|
||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||
LIBVIRT_DEFAULT_URI = "qemu:///system";
|
||||
MANPAGER = "nvim +Man!";
|
||||
NIXPKGS_ALLOW_UNFREE = 1;
|
||||
ZSH_DISABLE_COMPFIX = "true";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
4
modules/home/wms/programs/clipman/default.nix
Normal file
4
modules/home/wms/programs/clipman/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.clipman.enable = config.home.desktop.enable;
|
||||
}
|
|
@ -1,22 +1,21 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./clipman
|
||||
./kanshi
|
||||
./mako
|
||||
./rofi
|
||||
./swaylock
|
||||
./waybar
|
||||
./wlsunset
|
||||
];
|
||||
|
||||
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
|
||||
brightnessctl
|
||||
clipman
|
||||
hyprpicker
|
||||
libnotify
|
||||
rot8
|
||||
shotman
|
||||
wdisplays
|
||||
wl-clipboard
|
||||
wlsunset
|
||||
];
|
||||
}
|
||||
|
|
8
modules/home/wms/programs/wlsunset/default.nix
Normal file
8
modules/home/wms/programs/wlsunset/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.wlsunset = {
|
||||
enable = config.home.desktop.enable;
|
||||
sunrise = "07:30";
|
||||
sunset = "22:30";
|
||||
};
|
||||
}
|
|
@ -10,13 +10,7 @@
|
|||
{ command = "foot -a sound -T Sound pulsemixer"; }
|
||||
|
||||
# Daemons and tray
|
||||
{ command = "kanshi"; }
|
||||
{ command = "mako"; }
|
||||
{ command = "rot8"; }
|
||||
{ command = "wl-copy"; }
|
||||
{ command = "wl-paste -t text --watch clipman store -P"; }
|
||||
{ command = "wlsunset -s 22:30 -S 07:30"; }
|
||||
{ command = "wpaperd"; }
|
||||
|
||||
# Foreground
|
||||
{ command = "thunderbird"; }
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
programs.sway = {
|
||||
enable = true;
|
||||
extraOptions = [ "--unsupported-gpu" ];
|
||||
extraSessionCommands = ''
|
||||
export ELECTRON_OZONE_PLATFORM_HINT=wayland
|
||||
export WLR_RENDERER=vulkan
|
||||
'';
|
||||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables.WLR_RENDERER = "vulkan";
|
||||
|
||||
services.dbus.enable = true;
|
||||
security.pam.services.swaylock = {};
|
||||
};
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config = lib.mkIf config.system.desktop.enable {
|
||||
services.displayManager.ly = {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings.vi_mode = true;
|
||||
settings.default_session.command = lib.mkDefault (lib.strings.concatStringsSep " " [
|
||||
"${pkgs.greetd.tuigreet}/bin/tuigreet"
|
||||
"--asterisks"
|
||||
"--remember"
|
||||
"--remember-user-session"
|
||||
"--time"
|
||||
"--user-menu"
|
||||
]);
|
||||
vt = 2;
|
||||
};
|
||||
environment.persistence."/persist".files = [ "/etc/ly/save.ini" ];
|
||||
environment.persistence."/persist".files = [ "/var/cache/tuigreet" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue