diff --git a/hosts/framework/configuration.nix b/hosts/framework/configuration.nix index a45d5da..fafc811 100644 --- a/hosts/framework/configuration.nix +++ b/hosts/framework/configuration.nix @@ -8,8 +8,8 @@ # Include the results of the hardware scan. ./hardware-configuration.nix inputs.home-manager.nixosModules.default - # ../../modules/nixos/cosmic.nix - ../../modules/nixos/niri.nix + ../../modules/nixos/cosmic.nix + # ../../modules/nixos/niri.nix ]; # Bootloader. boot.loader.systemd-boot.enable = true; diff --git a/modules/nixos/greeter.nix b/modules/nixos/greeter.nix index af9eb93..8baa3f5 100644 --- a/modules/nixos/greeter.nix +++ b/modules/nixos/greeter.nix @@ -19,20 +19,20 @@ in { enable = true; settings = { default_session = { - command = "${tuigreet} --time --rememeber --remember-session --sessions ${config.greeter.session}"; + command = "${tuigreet} --time --remember --remember-session --sessions ${config.greeter.session}/bin/niri-session"; user = "greeter"; }; }; }; - }; - # systemd.services.greetd.serviceConfig = { - # Type = "idle"; - # StandardInput = "tty"; - # StandardOutput = "tty"; - # StandardError = "journal"; + systemd.services.greetd.serviceConfig = { + Type = "idle"; + StandardInput = "tty"; + StandardOutput = "tty"; + StandardError = "journal"; - # TTYReset = true; - # TTYVHangup = true; - # TTYVDisallocate = true; - # }; + TTYReset = true; + TTYVHangup = true; + TTYVDisallocate = true; + }; + }; } diff --git a/modules/nixos/niri.nix b/modules/nixos/niri.nix index 724d104..48021b2 100644 --- a/modules/nixos/niri.nix +++ b/modules/nixos/niri.nix @@ -2,6 +2,9 @@ imports = [ ./greeter.nix ]; - greeter.session = "${pkgs.niri}/bin/niri-session"; programs.niri.enable = true; + greeter.session = "${pkgs.niri}"; + environment.systemPackages = with pkgs; [ + alacritty + ]; }