about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/alpha/configuration.nix2
-rw-r--r--nixos/default.nix2
-rw-r--r--nixos/overlays/tuigreet.nix17
3 files changed, 19 insertions, 2 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 5c34d7c..0701994 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -68,7 +68,7 @@
   services.greetd = {
     enable = true;
 
-    settings.default_session.command = "${pkgs.greetd.tuigreet}/bin/tuigreet -t -c sway";
+    settings.default_session.command = "${pkgs.tuigreet}/bin/tuigreet -t -c sway";
   };
 
   # https://github.com/apognu/tuigreet/issues/17
diff --git a/nixos/default.nix b/nixos/default.nix
index dd1dd18..9c7c532 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -4,7 +4,7 @@
   alpha = self.lib.mkSystem {
     name = "alpha";
     nixpkgs = unstable-small;
-    overlays = with inputs; [ chaotic-nixpkgs.overlay ];
+    overlays = with inputs; [ chaotic-nixpkgs.overlay (import ./overlays/tuigreet.nix) ];
     extraModules = [
       inputs.sops-nix.nixosModules.sops
       ./modules/security.nix
diff --git a/nixos/overlays/tuigreet.nix b/nixos/overlays/tuigreet.nix
new file mode 100644
index 0000000..89975cc
--- /dev/null
+++ b/nixos/overlays/tuigreet.nix
@@ -0,0 +1,17 @@
+final: prev: {
+  # TODO: remove on next release (0.8+)
+  tuigreet = prev.greetd.tuigreet.overrideAttrs(old: rec {
+    src = prev.fetchFromGitHub {
+      owner = "apognu";
+      repo = "tuigreet";
+      rev = "64a41c33999b37b06e8799810b742b12ec4a30ad";
+      sha256 = "sha256-XPxw5wdquFNRTmbszIsjsv43sjZvuKHEQ+dogZ/Z/38="; 
+    };
+
+    cargoDeps = old.cargoDeps.overrideAttrs(_: {
+      inherit src;
+
+      outputHash = "sha256-6baKehdSbIHXtx0+069P7Bja0kdVlvZEG4LroeGRGmU=";
+    }); 
+  });
+}