summary refs log tree commit diff
path: root/machines/corsac/devices.nix
blob: 06e4f8c5ecb381498a44ea4ccfb55aca43e84394 (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
{ lib, config, pkgs, ... }:

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

    kernelModules = [ "wireguard" ];
    initrd.systemd.enable = true;
  };

  networking.useDHCP = false;

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

  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" ];
    };
  };
}