-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
30 lines (28 loc) · 920 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
description = "Backup script wrapping Restic with btrfs snapshots and other goodies";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, flake-utils }: {
overlay = final: prev: {
igotchuu = final.callPackage ./default.nix {
python3Packages = final.python311Packages;
};
};
nixosModules.default = import ./configuration.nix self.overlay;
} // (flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlay ];
};
in {
packages = {
igotchuu = pkgs.igotchuu;
default = pkgs.igotchuu;
};
devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.default ];
nativeBuildInputs = with pkgs; [ pyright ];
PIP_DISABLE_PIP_VERSION_CHECK = "true";
};
}));
}