feat(system): split host architecture and implement greetd
This commit is contained in:
1 parent
43a0204a2c
commit
9d1a178379
2 files changed
+39
-1
No files matched your search
@@ -30,7 +30,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, dms, dgop, zen-browser, antigravity, ...}@inputs: {
|
||||
nixosConfigurations = {
|
||||
desktop = nixpkgs.lib.nixosSystem {
|
||||
@@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
Reference in new issue
Block a user