summaryrefslogtreecommitdiff
path: root/modules/desktops/ly.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktops/ly.nix')
-rw-r--r--modules/desktops/ly.nix60
1 files changed, 0 insertions, 60 deletions
diff --git a/modules/desktops/ly.nix b/modules/desktops/ly.nix
deleted file mode 100644
index 9e9e51b..0000000
--- a/modules/desktops/ly.nix
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- lib,
- config,
- pkgs,
- self,
- system,
- ...
-}: let
- inherit (lib) mkIf;
- cfg = config.desktops;
-in {
- config = mkIf cfg.ly {
- # display manager
- services.displayManager.ly = {
- enable = true;
- package = self.packages.${system}.ly;
-
- settings = let
- base = "0x00${config.theme.colors.base}";
- text = "0x00${config.theme.colors.text}";
- bold = "0x01${config.theme.colors.text}";
- error = "0x00${config.theme.colors.error}";
- save_file = pkgs.writeText "ly-prefs" ''
- ${config.user}
- 1
- '';
- in {
- # general
- clear_password = true;
- default_input = "password";
- xinitrc = "null";
- hide_version_string = true;
- hide_key_hints = true;
- session_log = "/dev/null";
- # state (evil)
- tty = 1;
- save = false;
- load = true;
- save_file = toString save_file;
- # background
- bg = base;
- error_bg = base;
- blank_box = true;
- # foreground
- fg = text;
- error_fg = error;
- border_fg = bold;
- };
- };
-
- # 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";
- };
- };
-}