forked from irl/nix-configs
Use only supported systems, use home config at top level
fixes nix flake check
This commit is contained in:
parent
4622aaafb1
commit
4adf4688ec
1 changed files with 28 additions and 16 deletions
26
flake.nix
26
flake.nix
|
@ -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,15 +39,15 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
// flake-utils.lib.eachSystem flake-utils.lib.allSystems (system: {
|
||||
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
||||
packages.homeConfigurations = {
|
||||
irl = home-manager.lib.homeManagerConfiguration {
|
||||
homeConfigurations = nixpkgs.lib.foldl' (
|
||||
acc: system:
|
||||
acc
|
||||
// {
|
||||
"irl-${system}" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
modules = [ ./home/irl.nix ];
|
||||
};
|
||||
irl-gui = home-manager.lib.homeManagerConfiguration {
|
||||
"irl-gui-${system}" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
modules = [
|
||||
./home/irl.nix
|
||||
|
@ -48,6 +56,10 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
) { } supportedSystems;
|
||||
}
|
||||
// flake-utils.lib.eachSystem supportedSystems (system: {
|
||||
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue