about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-01-22 23:02:09 +0900
committersefidel <contact@sefidel.net>2022-01-22 23:02:09 +0900
commit3877164d70b07e504b29a350a6f2caa42280a763 (patch)
tree2567540888ebcf14913b6956c44816b308ea34ae /nixos
parent220dde08b73ed0091fed2b5b5cefd59708366376 (diff)
downloadnixrc-3877164d70b07e504b29a350a6f2caa42280a763.tar.gz
nixrc-3877164d70b07e504b29a350a6f2caa42280a763.zip
nixos: use latest tui-greet (overlay)
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=";
+    }); 
+  });
+}