nix nix nix (more nix)
This commit is contained in:
3
nix/modules/greetd/default.nix
Normal file
3
nix/modules/greetd/default.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
_: {
|
||||
nixos: ./nixos.nix;
|
||||
}
|
||||
36
nix/modules/greetd/nixos.nix
Normal file
36
nix/modules/greetd/nixos.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.modules.greetd;
|
||||
tuigreet = "${pkgs.tuigreet}/bin/tuigreet";
|
||||
in
|
||||
{
|
||||
options.modules.greetd = {
|
||||
enable = lib.mkEnableOption "Greetd configuration module";
|
||||
};
|
||||
config = {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${tuigreet} --time --remember --cmd Hyprland";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.services.greetd.serviceConfig = {
|
||||
Type = "idle";
|
||||
StandardInput = "tty";
|
||||
StandardOutput = "tty";
|
||||
StandardError = "journal";
|
||||
|
||||
TTYReset = true;
|
||||
TTYVHangup = true;
|
||||
TTYVTDisallocate = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user