mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 18:46:13 +01:00
27 lines
713 B
Nix
27 lines
713 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... }@inputs:
|
|
let
|
|
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
|
in
|
|
{
|
|
overlay = system: final: prev:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
with final; {
|
|
screenshot = pkgs.writeShellScriptBin "screenshot" (builtins.readFile ./screenshot);
|
|
};
|
|
|
|
defaultPackage = forAllSystems (system: (import nixpkgs {
|
|
inherit system;
|
|
overlays = [ (self.overlay system) ];
|
|
}).screenshot);
|
|
};
|
|
}
|
|
|