-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathflake.nix
64 lines (54 loc) · 1.8 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
description = "NixOS configuration with flakes";
# To update all inputs:
# $ nix flake update --recreate-lock-file
inputs = {
flake-utils.url = "github:numtide/flake-utils";
#nixpkgs.url = "github:NixOS/nixpkgs/release-21.05";
nixpkgs.url = "github:Mic92/nixpkgs/release-21.05-backports";
nixpkgs-systemd.url = "github:Mic92/nixpkgs/systemd";
nur.url = "github:nix-community/NUR";
home-manager.url = "github:rycee/home-manager/release-21.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
eris.url = "github:Mic92/eris";
retiolum.url = "git+https://git.thalheim.io/Mic92/retiolum";
flake-registry.url = "github:NixOS/flake-registry";
flake-registry.flake = false;
vmsh.url = "github:Mic92/vmsh";
vmsh.inputs.flake-utils.follows = "flake-utils";
vmsh.inputs.nixpkgs.follows = "nixpkgs";
hercules-ci.url = "github:hercules-ci/hercules-ci-agent";
hercules-ci.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ self
, nixpkgs
, nixpkgs-systemd
, nur
, home-manager
, retiolum
, nixos-hardware
, flake-registry
, flake-utils
, eris
, vmsh
, hercules-ci
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
buildInputs = [
pkgs.python3.pkgs.Fabric
pkgs.ipmitool
];
};
}) //
{
nixosConfigurations = import ./configurations.nix {
inherit nixpkgs nixpkgs-systemd nur home-manager retiolum flake-registry eris vmsh hercules-ci;
nixosSystem = nixpkgs.lib.nixosSystem;
};
hydraJobs = nixpkgs.lib.mapAttrs' (name: config: nixpkgs.lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel) self.nixosConfigurations;
};
}