outputs are now generally architecture agnostic
This commit is contained in:
parent
3bd1babf33
commit
5c13eb7c98
1 changed files with 39 additions and 13 deletions
52
flake.nix
52
flake.nix
|
|
@ -51,6 +51,22 @@
|
||||||
impermanence,
|
impermanence,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
|
forAllSystemsWithPkgs =
|
||||||
|
f:
|
||||||
|
forAllSystems (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
f system pkgs
|
||||||
|
);
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations =
|
nixosConfigurations =
|
||||||
let
|
let
|
||||||
|
|
@ -132,28 +148,38 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
devShells = forAllSystemsWithPkgs (
|
||||||
|
system: pkgs: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
nil
|
||||||
|
nixfmt-rfc-style
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
packages = forAllSystemsWithPkgs (
|
||||||
|
system: pkgs:
|
||||||
|
{
|
||||||
|
toggleaudiosink = pkgs.callPackage ./packages/toggleaudiosink.nix { };
|
||||||
|
}
|
||||||
|
// nixpkgs.lib.optionalAttrs (system == "x86_64-linux") {
|
||||||
|
plasticity = pkgs.callPackage ./packages/plasticity.nix { };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
overlays = {
|
overlays = {
|
||||||
overlay = final: prev: {
|
overlay = final: prev: {
|
||||||
};
|
};
|
||||||
workstationOverlay = final: prev: {
|
workstationOverlay = final: prev: {
|
||||||
plasticity = nixpkgs.legacyPackages."x86_64-linux".callPackage ./packages/plasticity.nix { };
|
plasticity = self.packages.${final.system}.plasticity;
|
||||||
toggleaudiosink =
|
toggleaudiosink = self.packages.${final.system}.toggleaudiosink;
|
||||||
nixpkgs.legacyPackages."x86_64-linux".callPackage ./packages/toggleaudiosink.nix
|
|
||||||
{ };
|
|
||||||
};
|
};
|
||||||
serverOverlay = final: prev: {
|
serverOverlay = final: prev: {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
|
||||||
|
|
||||||
devShells."x86_64-linux".default = nixpkgs.legacyPackages."x86_64-linux".mkShell {
|
|
||||||
packages = with nixpkgs.legacyPackages."x86_64-linux"; [
|
|
||||||
nil
|
|
||||||
nixfmt-rfc-style
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
qbittorrent = import ./modules/qbittorrent.nix;
|
qbittorrent = import ./modules/qbittorrent.nix;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue