From d9317de584c66b068a336889aa9adc3ac3837e5e Mon Sep 17 00:00:00 2001 From: tzlil Date: Sat, 21 Jan 2023 17:34:49 +0200 Subject: change deploy-rs to nixinate, change user to use passwordFile, add password age secret, remove NetworkManager-wait-online.service --- hosts/vm/cfg.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'hosts/vm') diff --git a/hosts/vm/cfg.nix b/hosts/vm/cfg.nix index 8efee3b..3b5ace8 100644 --- a/hosts/vm/cfg.nix +++ b/hosts/vm/cfg.nix @@ -11,7 +11,18 @@ ]; config = { + _module.args.nixinate = { + host = "100.109.155.123"; + sshUser = "tzlil"; + buildOn = "remote"; # valid args are "local" or "remote" + substituteOnTarget = true; # if buildOn is "local" then it will substitute on the target, "-s" + hermetic = false; + }; networking.hostName = "vm"; + + # dont do this + users.users.root.initialPassword = "hunter2"; + boot.supportedFilesystems = ["9p"]; boot = { initrd = { @@ -53,11 +64,6 @@ "/boot" = { device = "/dev/disk/by-partlabel/boot"; }; - "/flake" = { - fsType = "9p"; - device = "host0"; - options = ["_netdev"]; - }; }; zramSwap = { -- cgit 1.4.1