services: move .nix files into their own dirs
This commit is contained in:
parent
7ccea14afb
commit
e0fb4b8903
8 changed files with 0 additions and 11 deletions
|
@ -1,48 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.modules.services.greetd;
|
||||
uwsmEnabled = config.modules.services.uwsm.enable;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) str listOf;
|
||||
inherit (lib.modules) mkIf;
|
||||
in {
|
||||
options.modules.services.greetd = {
|
||||
enable = mkEnableOption "greetd";
|
||||
greeter = mkOption {
|
||||
description = "greetd frontend to use";
|
||||
type = str;
|
||||
};
|
||||
launchOptions = mkOption {
|
||||
description = "/etc/greetd/environments as list of strings";
|
||||
type = listOf str;
|
||||
};
|
||||
session = mkOption {
|
||||
description = "Which login session to start";
|
||||
type = str;
|
||||
default =
|
||||
if uwsmEnabled
|
||||
then "uwsm start Hyprland"
|
||||
else "Hyprland";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
package = pkgs.greetd;
|
||||
settings.default_session = {
|
||||
command = ''
|
||||
${pkgs.greetd.tuigreet}/bin/tuigreet \
|
||||
-c \"${cfg.session}\" \
|
||||
-r
|
||||
-t --time-format "DD.MM.YYYY"
|
||||
--asteriks'';
|
||||
};
|
||||
vt = 7;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue