summaryrefslogtreecommitdiff
path: root/machines/corsac/devices.nix
blob: 271d38a9dc38b8316098c07976ee216bdc71a97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, config, pkgs, ... }:

{
  # boot settings
  boot = {
    loader = {
      systemd-boot.enable = true;
      efi.canTouchEfiVariables = true;
    };

    initrd.systemd.enable = true;
  };

  systemd.network.networks."20-wired" = {
    name = "enp1s0";
    DHCP = "yes";

    networkConfig = {
      # do not use privacy ipv6 addresses, which
      # make global ipv6 address recognition harder
      # for public machines.
      IPv6PrivacyExtensions = false;
    };
  };

  fileSystems = {
    # todo: migrate jellyfin drive
    # note: yes, the drive is called okta, but
    # is mounted as 'Duo', because that was
    # the old name of the previous drive. see todo.
    "/run/media/mel/Duo" = {
      device = "/dev/disk/by-label/Okta";
      fsType = "ext4";
      options = [ "defaults" "discard" ];
    };
  };
}