From 20b22409a233b1e5566c9eb169b934ad0e3199f3 Mon Sep 17 00:00:00 2001 From: tzlil Date: Thu, 3 Aug 2023 21:37:04 +0300 Subject: switch to networkd, add createHome for tzlil, make /nix/persist a seperate subvol --- hosts/navi/default.nix | 11 ++++++++++- hosts/navi/hardware-configuration.nix | 6 +++++- profiles/tzlil.nix | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/hosts/navi/default.nix b/hosts/navi/default.nix index 3424a87..7350e71 100644 --- a/hosts/navi/default.nix +++ b/hosts/navi/default.nix @@ -47,7 +47,16 @@ algorithm = "zstd"; }; - networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; + # systemd.network.networks."10-wlp1s0" = { + # matchConfig.Name = "wlp1s0"; + # networkConfig.DHCP = "yes"; + # }; + + systemd.network.networks."10-eth0" = { + matchConfig.Name = "eth0"; + networkConfig.DHCP = "yes"; + }; # # iwd networking stuffs # networking.networkmanager.enable = lib.mkForce false; diff --git a/hosts/navi/hardware-configuration.nix b/hosts/navi/hardware-configuration.nix index f556950..64b8644 100644 --- a/hosts/navi/hardware-configuration.nix +++ b/hosts/navi/hardware-configuration.nix @@ -26,6 +26,7 @@ in { hardware.bluetooth.enable = true; + fileSystems."/nix/persist".neededForBoot = true; disko.devices = { disk.${baseNameOf device} = { inherit device; @@ -55,9 +56,12 @@ in { mountOptions = ["compress=zstd" "noatime"]; mountpoint = "/nix"; }; + "/nix/persist" = { + mountOptions = ["compress=zstd" "noatime"]; + mountpoint = "/nix/persist"; + }; }; }; - }; }; }; }; 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