fix: move flake to root dir
This commit is contained in:
6
nixos/flake.lock → flake.lock
generated
6
nixos/flake.lock → flake.lock
generated
@@ -142,11 +142,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723221148,
|
"lastModified": 1723572004,
|
||||||
"narHash": "sha256-7pjpeQlZUNQ4eeVntytU3jkw9dFK3k1Htgk2iuXjaD8=",
|
"narHash": "sha256-U5gKtbKuPahB02iGeGHFPlKr/HqrvSsHlEDEXoVyaPc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "154bcb95ad51bc257c2ce4043a725de6ca700ef6",
|
"rev": "19674872444bb3e0768249e724d99c8649c3bd78",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { flake-utils,nixpkgs, disko, agenix, nixos-generators, ... }: let
|
outputs = { flake-utils,nixpkgs, nixos-generators, ... }: let
|
||||||
nodes = ["premhome-falcon-1" "premhome-falcon-2"];
|
nodes = ["premhome-falcon-1" "premhome-falcon-2"];
|
||||||
in {
|
in {
|
||||||
packages = builtins.listToAttrs(map (system: {
|
packages = builtins.listToAttrs(map (system: {
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
format = "iso";
|
format = "iso";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./proxmox/iso.nix # base configuration of the image
|
./nixos/proxmox/iso.nix # base configuration of the image
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
create-vm = let
|
create-vm = let
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||||
script-name = "create-vm";
|
script-name = "create-vm";
|
||||||
src = builtins.readFile ./proxmox/create-vm.sh;
|
src = builtins.readFile ./nixos/proxmox/create-vm.sh;
|
||||||
script = (pkgs.writeScriptBin script-name src).overrideAttrs(old: {
|
script = (pkgs.writeScriptBin script-name src).overrideAttrs(old: {
|
||||||
buildCommand = "${old.buildCommand}\n patchShebangs $out";
|
buildCommand = "${old.buildCommand}\n patchShebangs $out";
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user