reorganise flake.nix

This commit is contained in:
ant 2025-06-10 22:30:46 +02:00
parent 0afa745b6c
commit 8023ec62dc

110
flake.nix
View file

@ -15,93 +15,89 @@
st-flexipatch.url = "https://git.antoinevaure.fr/ant/st-flexipatch/archive/master.zip";
};
outputs = { nixpkgs, ... }@inputs:
outputs =
{ nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system};
pkgs-unstable = inputs.unstable.legacyPackages.${system};
nixgl = inputs.nixgl.packages.${system};
in {
homeConfigurations."anvaure@Allegro23-12" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
in
{
homeConfigurations."anvaure@Allegro23-12" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "allegro";
};
modules = [
{ home.username = "anvaure"; }
./home/home.nix
{ home.packages = [ nixgl.nixGLIntel ]; }
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "allegro";
};
homeConfigurations."ant@hs" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{ home.username = "anvaure"; }
./home/home.nix
{ home.packages = [ nixgl.nixGLIntel ]; }
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
};
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "hs";
};
homeConfigurations."ant@hs" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{ home.username = "ant"; }
./home/home.nix
];
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "hs";
};
homeConfigurations."ant@basado" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{ home.username = "ant"; }
./home/home.nix
];
};
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "default";
inherit inputs;
};
homeConfigurations."ant@basado" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{ home.username = "ant"; }
./home/home.nix
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "default";
inherit inputs;
};
homeConfigurations."ant@moon" =
inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{ home.username = "ant"; }
./home/home.nix
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
};
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "moon";
inherit inputs;
};
homeConfigurations."ant@moon" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{ home.username = "ant"; }
./home/home.nix
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
extraSpecialArgs = {
inherit pkgs-unstable;
variant = "moon";
inherit inputs;
};
modules = [
{ home.username = "ant"; }
./home/home.nix
{ home.packages = [ inputs.st-flexipatch.packages.${system}.st ]; }
];
};
nixosConfigurations.basado = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./os/configuration.nix
]
;
];
};
nixosConfigurations.moon = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./os/moon.nix
]
;
];
};
};
}