feat: use only supported systems, use home config at top level
fixes nix flake check
This commit is contained in:
parent
4bb4ec3db4
commit
1cd9bccbbb
1 changed files with 34 additions and 26 deletions
34
flake.nix
34
flake.nix
|
@ -21,6 +21,14 @@
|
||||||
nur,
|
nur,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
supportedSystems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
laptop = nixpkgs.lib.nixosSystem {
|
laptop = nixpkgs.lib.nixosSystem {
|
||||||
|
@ -32,25 +40,21 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
homeConfigurations = nixpkgs.lib.foldl' (
|
||||||
// flake-utils.lib.eachSystem flake-utils.lib.allSystems (system: {
|
acc: system:
|
||||||
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
acc
|
||||||
packages.homeConfigurations = {
|
// {
|
||||||
irl = home-manager.lib.homeManagerConfiguration {
|
"irl-${system}" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [
|
overlays = [ nur.overlay ];
|
||||||
nur.overlay
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
modules = [ ./home/irl.nix ];
|
modules = [ ./home/irl.nix ];
|
||||||
};
|
};
|
||||||
irl-gui = home-manager.lib.homeManagerConfiguration {
|
"irl-gui-${system}" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [
|
overlays = [ nur.overlay ];
|
||||||
nur.overlay
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./home/irl.nix
|
./home/irl.nix
|
||||||
|
@ -59,6 +63,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