From 73cd8a2ab81b91aaca8095c77de12ea39fbc2fed Mon Sep 17 00:00:00 2001 From: tzlil Date: Thu, 3 Aug 2023 21:37:04 +0300 Subject: fix vm --- profiles/impermanence.nix | 2 +- profiles/network.nix | 3 +-- profiles/nix.nix | 2 +- profiles/tzlil.nix | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'profiles') diff --git a/profiles/impermanence.nix b/profiles/impermanence.nix index c222a43..cdbf426 100644 --- a/profiles/impermanence.nix +++ b/profiles/impermanence.nix @@ -13,7 +13,7 @@ in { environment.persistence."/nix/persist" = { hideMounts = true; directories = [ - "/var/log" + # "/var/log" "/var/lib/systemd/coredump" "/tmp" # Make builds not crash by running them on disk instead of RAM (We still clean /tmp on boot) ]; diff --git a/profiles/network.nix b/profiles/network.nix index 461106f..fc4af5c 100644 --- a/profiles/network.nix +++ b/profiles/network.nix @@ -7,6 +7,7 @@ }: { imports = []; config = { + systemd.network.enable = true; networking = { firewall = { enable = true; @@ -15,9 +16,7 @@ checkReversePath = "loose"; }; networkmanager.enable = true; - useDHCP = false; nameservers = ["127.0.0.1" "::1"]; - networkmanager.dns = "none"; extraHosts = '' 100.99.246.128 pc 100.105.242.70 phone diff --git a/profiles/nix.nix b/profiles/nix.nix index 769a06a..6e18dc5 100644 --- a/profiles/nix.nix +++ b/profiles/nix.nix @@ -40,5 +40,5 @@ nixpkgs.config.allowUnfree = true; # save uid/guid - environment.persistence."/nix/persist".directories = ["/var/lib/nixos"]; + # environment.persistence."/nix/persist".directories = ["/var/lib/nixos"]; } diff --git a/profiles/tzlil.nix b/profiles/tzlil.nix index f2e2505..5669b26 100644 --- a/profiles/tzlil.nix +++ b/profiles/tzlil.nix @@ -27,6 +27,7 @@ shell = pkgs.fish; hashedPassword = "$6$FAQYKz3OCtRNOP7h$XsApvP.r./Jv5MRI1idDI9BMnA26xxEvXFlE61Zls.QA3EK2x76XsetdpxSlgViylnRwRuq5XQMc3GeAJ7tum1"; # passwordFile = config.age.secrets.password.path; + createHome = true; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIgPE76xQXx1kpvWavHGNOWHiZSFdGfz/rQlISGrKsDe" ]; -- cgit 1.4.1