nix/lib/default.nix
Daniel Flanagan fa9a8edfe4
Some checks failed
/ build-host (map[host:beefcake]) (push) Successful in 10s
/ build-host (map[host:dragon]) (push) Successful in 48s
/ build-host (map[host:flipflop]) (push) Successful in 42s
/ build-host (map[host:foxtrot]) (push) Successful in 46s
/ build-host (map[host:rascal]) (push) Successful in 20s
/ build-host (map[host:router]) (push) Successful in 24s
/ build-host (map[host:steamdeck]) (push) Successful in 44s
/ build-devshell (push) Successful in 19s
/ flake-check (push) Failing after 4m27s
feat: add steamdeck
2025-03-21 13:26:07 -05:00

29 lines
836 B
Nix

{ self, ... }@inputs:
let
forSelfOverlay =
if builtins.hasAttr "overlays" self && builtins.hasAttr "forSelf" self.overlays then
self.overlays.forSelf
else
(_: p: p);
in
rec {
inherit forSelfOverlay;
systems = [
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
forSystems = nixpkgs: nixpkgs.lib.genAttrs systems;
pkgsFor = nixpkgs: system: (import nixpkgs { inherit system; }).extend forSelfOverlay;
genPkgs = nixpkgs: func: (forSystems nixpkgs (system: func (pkgsFor nixpkgs system)));
conditionalOutOfStoreSymlink =
config: outOfStoreSymlink: relPath:
if config.lyte.useOutOfStoreSymlinks.enable then
config.lib.file.mkOutOfStoreSymlink outOfStoreSymlink
else
relPath;
inherit (import ./host.nix inputs) host stableHost steamdeckHost;
}