Skip to content

Commit

Permalink
feat(modules/nixos): greetd stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Jun 18, 2024
1 parent 6718ce1 commit 7ff747d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
disko = import ./disko;
general = import ./general;
gpg-agent = import ./gpg-agent;
greetd = import ./greetd;
hardware = import ./hardware;
home-manager = import ./home-manager;
impermanence = import ./impermanence;
Expand Down
33 changes: 33 additions & 0 deletions modules/nixos/greetd/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
config,
pkgs,
...
}: let
inherit (lib) getExe mkIf mkOption types;

cfg = config.sysc.greetd;
in {
options.sysc.greetd = {
enable = mkOption {
type = types.bool;
default = true;
description = "Whether to use greetd for logging in purposes.";
};
};

config = mkIf cfg.enable {
services.greetd = {
enable = true;

vt = 2;

settings = {
default_session = {
command = "${getExe pkgs.greetd.tuigreet} --time --cmd Hyprland";
user = "greeter";
};
};
};
};
}

0 comments on commit 7ff747d

Please sign in to comment.