diff options
author | Franck Cuny <franck@fcuny.net> | 2022-03-05 18:04:46 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-03-05 18:08:19 -0800 |
commit | b4452acfb6672585eb75137bb7a25faec04fe414 (patch) | |
tree | df962c1f3f45ae7754a1a1d6255cdf96274c543f | |
parent | tahoe: new hardware configuratio (diff) | |
download | world-b4452acfb6672585eb75137bb7a25faec04fe414.tar.gz |
tahoe: remove creation of some directories
-rw-r--r-- | hosts/tahoe/default.nix | 38 |
1 files changed, 9 insertions, 29 deletions
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; |