one config for each host

This commit is contained in:
Antoine Vaure 2025-05-12 14:14:15 +02:00 committed by ant
parent e3b990c590
commit 3051fd8593
3 changed files with 49 additions and 23 deletions

View file

@ -21,27 +21,53 @@
pkgs = inputs.nixpkgs.legacyPackages.${system};
pkgs-unstable = inputs.unstable.legacyPackages.${system};
nixgl = inputs.nixgl.packages.${system};
config = import ./config.nix;
in {
homeConfigurations.${config.username} = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
homeConfigurations."anvaure@Allegro23-12" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit pkgs-unstable;
inherit (config) username variant;
inherit nixgl;
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "allegro";
};
modules = [
{ home.username = "anvaure"; }
./home.nix
{ home.packages = [ nixgl.nixGLIntel ]; }
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
};
modules = [
./home.nix
{
home.packages = [ nixgl.nixGLIntel ];
}
{
home.packages = [ inputs.st-flexipatch.packages.${system}.st ];
}
];
};
homeConfigurations."ant@hs" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "hs";
};
modules = [
{ home.username = "ant"; }
./home.nix
];
};
homeConfigurations."ant@nixos" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "default";
};
modules = [
{ home.username = "ant"; }
./home.nix
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
};
};
}