feat(system): split host architecture and implement greetd

This commit is contained in:
kiskaadee committed 2026-06-18 22:48:29 -05:00
1 parent 43a0204a2c
commit 9d1a178379
2 files changed
+40 -2

No files matched your search

+18 -2
View File
@@ -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 = { nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem { desktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; 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;
}
];
};
}; };
}; };
} }
+22
View File
@@ -20,6 +20,28 @@
settings.PermitRootLogin = "no"; 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 # Ensure Wayland variables are globally set
environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.sessionVariables.NIXOS_OZONE_WL = "1";
} }