Skip to content

Commit bdba72e

Browse files
committed
Nixinate
1 parent 37eb728 commit bdba72e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ qcow-copy: ensure-target
1616
[ -f "./result/nixos.qcow2" ] && rm -f ./_utm/"$(TARGET).qcow2" && cp -L "./result/nixos.qcow2" ./_utm/"$(TARGET).qcow2"
1717
utm-rebuild
1818

19+
deploy: ensure-target
20+
time nix run .#apps.nixinate.$(TARGET)
1921

2022
################################################################################
2123
# Helpers

flake.nix

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@
1010
url = "github:nix-community/nixos-generators";
1111
inputs.nixpkgs.follows = "nixpkgs";
1212
};
13+
14+
nixinate = {
15+
# url = "github:MatthewCroughan/nixinate";
16+
url = "github:J-Swift/nixinate/feature/allow-ssh-config-hostnames";
17+
inputs.nixpkgs.follows = "nixpkgs";
18+
};
1319
};
1420

15-
outputs = { self, nixpkgs, flake-utils, nixos-generators }:
21+
outputs = { self, nixpkgs, flake-utils, nixos-generators, nixinate }:
1622
flake-utils.lib.eachDefaultSystem
1723
(eachSystem:
1824
let
1925
pkgs = nixpkgs.legacyPackages.${eachSystem};
2026
in
2127
{
28+
apps = nixinate.nixinate.${eachSystem} self;
2229
devShell = import ./shell.nix { inherit pkgs; };
2330
}
2431
) // {

0 commit comments

Comments
 (0)