add tudelft vm
This commit is contained in:
parent
41d7901887
commit
3557cc4101
6 changed files with 53 additions and 32 deletions
|
@ -153,7 +153,10 @@
|
|||
mac = "00:0c:29:9b:e1:c4";
|
||||
nix = false;
|
||||
};
|
||||
# ip = "192.168.0.132";
|
||||
"tudelft" = {
|
||||
ip = "192.168.0.132";
|
||||
mac = "AE:B3:93:4B:04:76";
|
||||
};
|
||||
"mastodon" = {
|
||||
ip = "192.168.0.138";
|
||||
mac = "52:60:8a:06:86:9c";
|
||||
|
|
22
nixos/hosts/hades/tudelft/configuration.nix
Normal file
22
nixos/hosts/hades/tudelft/configuration.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
# Additional packages
|
||||
environment.systemPackages = with pkgs; [ ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ ];
|
||||
}
|
|
@ -1,11 +1,12 @@
|
|||
{ lib, ... }: {
|
||||
imports = [ ../common/common.nix ../common/generic-vm.nix ];
|
||||
imports = [ ../common ../common/generic-vm.nix ];
|
||||
|
||||
proxmox.qemuConf = {
|
||||
virtio0 = "local-zfs:vm-9999-disk-0";
|
||||
cores = 1;
|
||||
memory = 1024;
|
||||
cores = 4;
|
||||
memory = 4096;
|
||||
bios = "ovmf";
|
||||
additionalSpace = "20G";
|
||||
};
|
||||
|
||||
# Enable SSH
|
||||
|
|
|
@ -3,6 +3,7 @@ let
|
|||
inherit (builtins) filter attrValues concatMap mapAttrs;
|
||||
inherit (nixpkgs.lib.attrsets) mapAttrsToList;
|
||||
base_imports = [
|
||||
./common
|
||||
home-manager.nixosModules.home-manager
|
||||
mailserver.nixosModules.mailserver
|
||||
attic.nixosModules.atticd
|
||||
|
@ -25,7 +26,7 @@ let
|
|||
# Helper function to resolve what should be imported depending on the type of config (lxc, vm, bare metal)
|
||||
resolve_imports = { hostname, realm, profile ? hostname, type ? "lxc", ... }:
|
||||
type_import type
|
||||
++ [ ./common "${./.}/hosts/${realm}/${profile}/configuration.nix" ];
|
||||
++ [ "${./.}/hosts/${realm}/${profile}/configuration.nix" ];
|
||||
|
||||
# Add to whatever realm a host belong to its list of tags
|
||||
add_realm_to_tags = mapAttrs (realm:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue