add paramaters to proxmox-vm
This commit is contained in:
parent
6f73ee68af
commit
a3427825c3
|
@ -24,6 +24,7 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
username = import ./username.nix;
|
||||
network = import ./modules/network;
|
||||
overlay-unstable = final: prev: {
|
||||
unstable = import nixpkgs-unstable {
|
||||
system = "x86_64-linux";
|
||||
|
@ -59,6 +60,7 @@
|
|||
] ++ extraModules
|
||||
);
|
||||
};
|
||||
mkVM = import ./systems/proxmox-vm;
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
|
@ -106,7 +108,8 @@
|
|||
./modules/docker
|
||||
];
|
||||
heimdall = mkComputer
|
||||
./systems/heimdall
|
||||
(mkVM
|
||||
{ hostname = "heimdall"; ip = "10.7.89.121"; })
|
||||
./home-manager/headless.nix
|
||||
[
|
||||
./modules/docker
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ hostname, ip, ... }:
|
||||
{
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ata_piix"
|
||||
|
@ -22,8 +22,19 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
hostName = "nixos-test-vm";
|
||||
interfaces.ens18.useDHCP = true;
|
||||
hostName = hostname;
|
||||
hosts = {
|
||||
"127.0.0.1" = [ "${hostname}.2li.local" ];
|
||||
ip = [ "${hostname}.2li.local" ];
|
||||
};
|
||||
defaultGateway = "10.7.89.1";
|
||||
nameservers = [ "10.7.89.2" ];
|
||||
interfaces.ens18.ipv4.addresses = [
|
||||
{
|
||||
address = ip;
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
|
|
Loading…
Reference in New Issue