-
Notifications
You must be signed in to change notification settings - Fork 10
/
flake.nix
50 lines (45 loc) · 1.07 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
{
inputs.nixos.url = "github:nixos/nixpkgs/nixos-24.05";
outputs = { nixos, ... }:
let
username = "rudesome";
system = "x86_64-linux";
pkgs = import nixos { inherit system; };
in
{
packages.${system}.azure-image =
let
img = nixos.lib.nixosSystem {
inherit pkgs system;
modules = [
./image.nix
(import ./common.nix { inherit username; })
];
};
in
img.config.system.build.azureImage;
devShells.${system}.default =
with pkgs;
mkShell
{
buildInputs = with pkgs; [
azure-cli
azure-storage-azcopy
jq
];
};
devShells."aarch64-darwin".default =
let
pkgs = import nixos { system = "aarch64-darwin"; };
in
with pkgs;
pkgs.mkShell
{
buildinputs = with pkgs; [
azure-cli
azure-storage-azcopy
jq
];
};
};
}