aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/tahoe/default.nix38
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;