Home

dotnix @b6b22cba13ed4bc4388c98f084e40fdbfa83e4b5 - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / machines / sencha / default.nix
- raw
 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{ pkgs, ... }:
{
  imports = [
    ./hardware.nix
    ../common/gui
  ];

  boot = {
    kernelPackages = pkgs.linuxPackages_latest;
    kernelParams = [
      "quiet"
      "splash"
    ];
  };

  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  boot.initrd.luks.devices."luks-c1c666de-2c68-4d50-98f1-3974ef424ff3".device = "/dev/disk/by-uuid/c1c666de-2c68-4d50-98f1-3974ef424ff3";

  hardware = {
    bluetooth.enable = true;
  };

  networking = {
    hostName = "sencha";
    networkmanager.enable = true;
    firewall = {
      enable = true;
      allowedTCPPorts = [ 8096 ];
    };
  };

  services = {
    blueman.enable = true;
    openssh.enable = true;
    pcscd.enable = true;
    printing = {
      enable = true;
      drivers = [
        pkgs.canon-cups-ufr2
        pkgs.cnijfilter_4_00
      ];
    };
    jellyfin.enable = true;
    mullvad-vpn = {
      enable = true;
      package = pkgs.mullvad-vpn;
    };
    resolved.enable = true;
  };

  virtualisation.docker.enable = true;

  users = {
    users = {
      olheiser.isNormalUser = true;
      jolheiser = {
        extraGroups = [
          "wheel"
          "docker"
          "storage"
        ];
        isNormalUser = true;
      };
    };
    groups.media.members = [
      "jolheiser"
      "olheiser"
      "jellyfin"
    ];
  };

  environment.systemPackages = with pkgs; [
    firefox
    gimp
    qbittorrent
  ];

  system.stateVersion = "22.11";
}