From 3877164d70b07e504b29a350a6f2caa42280a763 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 22 Jan 2022 23:02:09 +0900 Subject: nixos: use latest tui-greet (overlay) --- nixos/alpha/configuration.nix | 2 +- nixos/default.nix | 2 +- nixos/overlays/tuigreet.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 nixos/overlays/tuigreet.nix (limited to 'nixos') 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="; + }); + }); +} -- cgit 1.4.1