Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
4adf4688ec Use only supported systems, use home config at top level
fixes nix flake check
2025-06-06 12:08:49 +02:00

View file

@ -20,6 +20,14 @@
home-manager,
...
}:
let
supportedSystems = [
"x86_64-linux"
"aarch64-darwin"
"aarch64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
@ -31,23 +39,27 @@
];
};
};
homeConfigurations = nixpkgs.lib.foldl' (
acc: system:
acc
// {
"irl-${system}" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
modules = [ ./home/irl.nix ];
};
"irl-gui-${system}" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
modules = [
./home/irl.nix
{
irl.gui-packages = true;
}
];
};
}
) { } supportedSystems;
}
// flake-utils.lib.eachSystem flake-utils.lib.allSystems (system: {
// flake-utils.lib.eachSystem supportedSystems (system: {
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
packages.homeConfigurations = {
irl = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
modules = [ ./home/irl.nix ];
};
irl-gui = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
modules = [
./home/irl.nix
{
irl.gui-packages = true;
}
];
};
};
});
}