add kmskon and tuigreet
a
This commit is contained in:
parent
30cc56f26b
commit
81ca2d0f3a
5 changed files with 57 additions and 1 deletions
25
modules/services/kmscon.nix
Normal file
25
modules/services/kmscon.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
cfg = config.modules.usrEnv.services.kmscon;
|
||||
in {
|
||||
services.kmscon = mkIf cfg.enable {
|
||||
enable = false;
|
||||
hwRender = true;
|
||||
fonts = [
|
||||
{
|
||||
name = "Iosevka";
|
||||
package = pkgs.iosevka;
|
||||
}
|
||||
];
|
||||
extraOptions = "--term xterm-256color";
|
||||
extraConfig = ''
|
||||
font-size=18
|
||||
xkb-layout=${config.console.keyMap}
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -7,5 +7,6 @@ _: {
|
|||
./dunst.nix
|
||||
./mpd.nix
|
||||
./firewall.nix
|
||||
./kmscon.nix
|
||||
];
|
||||
}
|
||||
|
|
26
modules/services/tuigreet.nix
Normal file
26
modules/services/tuigreet.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf getExe;
|
||||
cfg = config.modules.usrEnv.services.greetd;
|
||||
in {
|
||||
services.greetd = mkIf cfg.enable {
|
||||
enable = true;
|
||||
restart = true;
|
||||
vt = 2;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = ''
|
||||
${getExe pkgs.greetd.tuigreet} \
|
||||
-c \"Hyprland\" \
|
||||
-r
|
||||
-t --time-format "DD.MM.YYYY"
|
||||
--asteriks
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue