From 30558b5b98c362e4daabb9223286a2595191be4e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 3 Aug 2024 14:04:03 -0700 Subject: add a linux VM as a new host The linux VM runs with UTM, and it has a very basic configuration for now. --- nix/hosts/vm/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nix/hosts/vm/default.nix (limited to 'nix/hosts/vm/default.nix') diff --git a/nix/hosts/vm/default.nix b/nix/hosts/vm/default.nix new file mode 100644 index 0000000..a6dff3a --- /dev/null +++ b/nix/hosts/vm/default.nix @@ -0,0 +1,29 @@ +{ pkgs, ... }: { + imports = [ + ./hardware.nix + ]; + + boot.tmp.cleanOnBoot = true; + zramSwap.enable = false; + + networking = { + hostName = "nixos"; + domain = ""; + }; + + services.openssh.enable = true; + + users.users.root.openssh.authorizedKeys.keys = [ + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi'' + ]; + + system.stateVersion = "23.11"; + + environment = { + systemPackages = with pkgs; [ + git + jq + vim + ]; + }; +} -- cgit v1.2.3