pinwheel: Add greetd module with auto-login
This commit is contained in:
@@ -114,6 +114,7 @@
|
|||||||
config-manager.flakePath = "/home/alex/config";
|
config-manager.flakePath = "/home/alex/config";
|
||||||
|
|
||||||
mod = {
|
mod = {
|
||||||
|
greetd.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
openvpn.enable = true;
|
openvpn.enable = true;
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
|
|||||||
28
hosts/pinwheel/modules/greetd/default.nix
Normal file
28
hosts/pinwheel/modules/greetd/default.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
enabled = config.mod.greetd.enable;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
mod.greetd = {
|
||||||
|
enable = lib.mkEnableOption "enable greetd module";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf enabled {
|
||||||
|
services.greetd = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = let
|
||||||
|
session = {
|
||||||
|
user = "alex";
|
||||||
|
command = "${pkgs.hyprland}/bin/Hyprland";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
initial_session = session;
|
||||||
|
default_session = session;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user