summaryrefslogtreecommitdiff
path: root/modules/desktops/ly.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-30 13:09:53 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-30 13:09:53 -0400
commit3e4c64efda269632cf573c79cd297b802c9bb8fa (patch)
tree91472685b0f145aa003c505e2f8e4ae4c13af9ad /modules/desktops/ly.nix
parentupdate pkgs imports (diff)
downloaddotfiles-nix-3e4c64efda269632cf573c79cd297b802c9bb8fa.tar.gz
dotfiles-nix-3e4c64efda269632cf573c79cd297b802c9bb8fa.tar.bz2
dotfiles-nix-3e4c64efda269632cf573c79cd297b802c9bb8fa.zip
add ly display manager
Diffstat (limited to '')
-rw-r--r--modules/desktops/ly.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/modules/desktops/ly.nix b/modules/desktops/ly.nix
new file mode 100644
index 0000000..6cde7f5
--- /dev/null
+++ b/modules/desktops/ly.nix
@@ -0,0 +1,55 @@
+
+{
+ lib,
+ config,
+ pkgs,
+ ...
+}: let
+ inherit (lib) mkIf;
+ cfg = config.desktops;
+in {
+ config = mkIf cfg.ly {
+
+ # display manager
+ services.displayManager.ly = {
+ enable = true;
+ settings = let
+ base = "0x00${config.theme.colors.base}";
+ text = "0x00${config.theme.colors.text}";
+ error = "0x00${config.theme.colors.error}";
+ save_file = pkgs.writeText "ly-prefs" ''
+ ${config.user}
+ 0
+ '';
+ in {
+ # general
+ clear_password = true;
+ default_input = "password";
+ numlock = true;
+ hide_f1_commands = true;
+ # state (evil)
+ tty = 1;
+ save = false;
+ load = true;
+ save_file = toString save_file;
+ # background
+ bg = base;
+ error_bg = base;
+ blank_box = false;
+ # foreground
+ fg = text;
+ error_fg = error;
+ border_fg = text;
+ };
+ };
+
+ # disable default login on tty 1
+ systemd.services."autovt@tty1".enable = false;
+ systemd.services."getty@tty1".enable = false;
+
+ # fix env not being set
+ systemd.services.display-manager = {
+ environment.XDG_CURRENT_DESKTOP = "X-NIXOS-SYSTEMD-AWARE";
+ };
+ };
+}