forked from rudesome/nixos-on-azure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
36 lines (32 loc) · 769 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
31
32
33
34
35
{
inputs.nixos.url = "github:nixos/nixpkgs/nixos-23.11";
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
];
};
};
}