diff --git a/flake.nix b/flake.nix index a625c00..61cf584 100644 --- a/flake.nix +++ b/flake.nix @@ -30,8 +30,7 @@ }; }; - - outputs = { self, nixpkgs, home-manager, dms, dgop, zen-browser, antigravity, ... }@inputs: { + outputs = { self, nixpkgs, home-manager, dms, dgop, zen-browser, antigravity, ...}@inputs: { nixosConfigurations = { desktop = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -49,6 +48,23 @@ } ]; }; + + laptop = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./hosts/laptop/hardware-configuration.nix + ./hosts/laptop/configuration.nix + + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.extraSpecialArgs = { inherit inputs; }; + home-manager.users.kiskaadee = import ./home.nix; + } + ]; + }; }; }; } diff --git a/modules/system/base.nix b/modules/system/base.nix index fb00a19..73f506d 100644 --- a/modules/system/base.nix +++ b/modules/system/base.nix @@ -20,6 +20,28 @@ settings.PermitRootLogin = "no"; }; + # Wayland Native TUI Greeter + services.greetd = { + enable = true; + settings = { + default_session = { + # This will default to Hyprland. We will override this on the laptop later. + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd start-hyprland"; + }; + }; + }; + + # Suppress greeter startup messages for a clean boot + systemd.services.greetd.serviceConfig = { + Type = "idle"; + StandardInput = "tty"; + StandardOutput = "tty"; + StandardError = "journal"; + TTYReset = true; + TTYVHangup = true; + TTYVTDisallocate = true; + }; + # Ensure Wayland variables are globally set environment.sessionVariables.NIXOS_OZONE_WL = "1"; }