mirror of
https://github.com/RGBCube/watt
synced 2025-08-02 19:07:47 +00:00
Compare commits
No commits in common. "da07011b02841c27ce751ea8dd67c4c3d153fb10" and "6bdbc7e0ecd06866b940765942c6abe2fbad5ec7" have entirely different histories.
da07011b02
...
6bdbc7e0ec
1 changed files with 9 additions and 26 deletions
35
flake.nix
35
flake.nix
|
@ -6,38 +6,21 @@
|
|||
nixpkgs,
|
||||
...
|
||||
} @ inputs: let
|
||||
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
|
||||
pkgsForEach = forAllSystems (system:
|
||||
import nixpkgs {
|
||||
localSystem.system = system;
|
||||
overlays = [self.overlays.default];
|
||||
});
|
||||
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux"];
|
||||
pkgsForEach = nixpkgs.legacyPackages;
|
||||
in {
|
||||
overlays = {
|
||||
superfreq = final: _: {
|
||||
superfreq = final.callPackage ./nix/package.nix {};
|
||||
};
|
||||
default = self.overlays.superfreq;
|
||||
};
|
||||
packages = forAllSystems (system: {
|
||||
superfreq = pkgsForEach.${system}.callPackage ./nix/package.nix {};
|
||||
default = self.packages.${system}.superfreq;
|
||||
});
|
||||
|
||||
packages =
|
||||
nixpkgs.lib.mapAttrs (system: pkgs: {
|
||||
inherit (pkgs) superfreq;
|
||||
default = self.packages.${system}.superfreq;
|
||||
})
|
||||
pkgsForEach;
|
||||
|
||||
devShells =
|
||||
nixpkgs.lib.mapAttrs (system: pkgs: {
|
||||
default = pkgs.callPackage ./nix/shell.nix {};
|
||||
})
|
||||
pkgsForEach;
|
||||
devShells = forAllSystems (system: {
|
||||
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
|
||||
});
|
||||
|
||||
nixosModules = {
|
||||
superfreq = import ./nix/module.nix inputs;
|
||||
default = self.nixosModules.superfreq;
|
||||
};
|
||||
|
||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue