From b4452acfb6672585eb75137bb7a25faec04fe414 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 5 Mar 2022 18:04:46 -0800 Subject: tahoe: remove creation of some directories --- hosts/tahoe/default.nix | 38 +++++++++----------------------------- 1 file changed, 9 insertions(+), 29 deletions(-) (limited to 'hosts') diff --git a/hosts/tahoe/default.nix b/hosts/tahoe/default.nix index 2e8a8c3..731e47e 100644 --- a/hosts/tahoe/default.nix +++ b/hosts/tahoe/default.nix @@ -1,17 +1,12 @@ { config, pkgs, hostname, ... }: { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - ../common/nas.nix - ]; + imports = [ # Include the results of the hardware scan. + ./hardware-configuration.nix + ../common/nas.nix + ]; - boot = { - initrd = { - luks.devices."system".allowDiscards = true; - }; - }; + boot = { initrd = { luks.devices."system".allowDiscards = true; }; }; # Use systemd-networkd for networking systemd.network = { @@ -19,31 +14,16 @@ networks = { enp42s0 = { matchConfig.Name = "enp42s0"; - networkConfig = { - DHCP = "yes"; - }; + networkConfig = { DHCP = "yes"; }; extraConfig = '' - [DHCPv4] - UseDNS=yes - UseDomains=yes + [DHCPv4] + UseDNS=yes + UseDomains=yes ''; }; }; }; - # create some directories and ensure proper ownership - system.activationScripts = { - base-dirs = { - text = '' - if [ ! -d /data/media/music ]; then - mkdir /data/media/music - chown -R fcuny:fcuny /data/media/music - fi - ''; - deps = [ ]; - }; - }; - networking.private-wireguard.enable = true; networking.firewall.enable = false; -- cgit 1.4.1