Skip to content

Commit

Permalink
nixos/greetd: simplify config
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 15, 2023
1 parent c009da4 commit 05f4833
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions nixos/desktop/greetd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# Configure greetd, a lightweight session manager
greetd = {
enable = true;
settings = rec {
initial_session =
settings = {
default_session =
let
genSessionsFor = path:
lib.concatStringsSep ":"
Expand All @@ -38,17 +38,10 @@
# X or Wayland, so add both to path
"${genSessionsFor "share/xsessions"}:${genSessionsFor "share/wayland-sessions"}"
];
user = "greeter";
};
default_session = initial_session;
};
vt = 7;
};
};

# https://github.com/apognu/tuigreet/issues/76
systemd.tmpfiles.rules = [
"d /var/cache/tuigreet 700 ${config.services.greetd.settings.initial_session.user} nobody"
];
};
}

0 comments on commit 05f4833

Please sign in to comment.