mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-28 02:24:12 -05:00
refactor: split greetd and regreet, use seatd
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
../common/users/gabriel
|
||||
|
||||
../common/optional/peripherals.nix
|
||||
../common/optional/greetd.nix
|
||||
../common/optional/regreet.nix
|
||||
../common/optional/pipewire.nix
|
||||
../common/optional/quietboot.nix
|
||||
../common/optional/wireless.nix
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
./prometheus-node-exporter.nix
|
||||
./kdeconnect.nix
|
||||
./upower.nix
|
||||
./display-manager.nix
|
||||
]
|
||||
++ (builtins.attrValues outputs.nixosModules);
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{config, lib, ...}: {
|
||||
users.users.greeter = {
|
||||
extraGroups = ["seat"];
|
||||
};
|
||||
services = {
|
||||
seatd.enable = true;
|
||||
greetd.enable = true;
|
||||
displayManager = {
|
||||
enable = true;
|
||||
# Export user sessions to system
|
||||
sessionPackages = lib.flatten (lib.mapAttrsToList (_: v: v.home.exportedSessionPackages) config.home-manager.users);
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,13 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.displayManager = {
|
||||
enable = true;
|
||||
sessionPackages = lib.flatten (lib.mapAttrsToList (_: v: v.home.exportedSessionPackages) config.home-manager.users);
|
||||
};
|
||||
# Graphical greeter, hooks into greetd
|
||||
{pkgs, ...}: {
|
||||
programs.regreet = {
|
||||
enable = true;
|
||||
cageArgs = ["-s" "-m" "last"];
|
||||
@@ -30,10 +22,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
environment.persistence = {
|
||||
# Persist last user and last selected session
|
||||
"/persist".directories = [{
|
||||
@@ -13,7 +13,7 @@
|
||||
../common/users/gabriel
|
||||
|
||||
../common/optional/peripherals.nix
|
||||
../common/optional/greetd.nix
|
||||
../common/optional/regreet.nix
|
||||
../common/optional/pipewire.nix
|
||||
../common/optional/quietboot.nix
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
../common/optional/pipewire.nix
|
||||
../common/optional/quietboot.nix
|
||||
../common/optional/greetd.nix
|
||||
../common/optional/regreet.nix
|
||||
|
||||
./steam.nix
|
||||
./jellyfin-kiosk.nix
|
||||
|
||||
Reference in New Issue
Block a user