fix: revert to standalone Home Manager architecture for fast UI updates

This commit is contained in:
Bernardo Magri
2026-04-13 13:57:31 +01:00
parent 73ae1232f3
commit 540718693f
4 changed files with 53 additions and 43 deletions

View File

@@ -54,38 +54,21 @@
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix"
./hosts/live-iso.nix
./core
home-manager.nixosModules.home-manager
{
system.stateVersion = "25.11";
home-manager.extraSpecialArgs = { inherit inputs; };
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = "nixos";
home-manager.useGlobalPkgs = false;
home-manager.useUserPackages = true;
home-manager.users.nixos = {
imports = [ ./features ];
home.username = "nixos";
home.homeDirectory = "/home/nixos";
home.stateVersion = "25.11";
};
}
];
};
# VM for testing graphical installer
installerVm = nixpkgs.lib.nixosSystem {
# ... (rest of installerVm)
};
# Default configuration (VM and testing)
default = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
{ nixpkgs.hostPlatform = "x86_64-linux"; }
./core/default.nix
./core/system/vm-guest.nix
home-manager.nixosModules.home-manager
{
system.stateVersion = "25.11";
networking.hostName = "nomarchy";
@@ -103,15 +86,36 @@
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = "nomarchy";
}
];
};
};
home-manager.useGlobalPkgs = false;
home-manager.useUserPackages = true;
home-manager.users.nomarchy = {
imports = [ ./features/default.nix ];
home.username = "nomarchy";
home.homeDirectory = "/home/nomarchy";
home.stateVersion = "25.11";
};
homeConfigurations = {
# Standalone Home Manager configuration for Live ISO
"nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [
./features
{
home.username = "nixos";
home.homeDirectory = "/home/nixos";
home.stateVersion = "25.11";
}
];
};
# Standalone Home Manager configuration for VM testing
"nomarchy" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [
./features
{
home.username = "nomarchy";
home.homeDirectory = "/home/nomarchy";
home.stateVersion = "25.11";
}
];
};