Home

dotnix @42532176397a36f7afcb43bd06bdb32f22e7c168 - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / machines / chai / 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
{pkgs, ...}: let
  username = "jolheiser";
in {
  imports = [./hardware.nix ../common];

  boot = {
    kernelPackages = pkgs.linuxPackages_latest;
    kernelParams = ["quiet" "splash"];
    loader.efi.canTouchEfiVariables = true;
    loader.systemd-boot.enable = true;
    initrd.systemd.enable = true;
  };

  hardware = {bluetooth.enable = true;};

  networking = {
    hostName = "chai";
    networkmanager.enable = true;
    firewall.enable = true;
  };

  boot.initrd.luks.devices = {
    "luks-83586073-35f8-438d-9203-99f1e966c2ca" = {
      device = "/dev/disk/by-uuid/83586073-35f8-438d-9203-99f1e966c2ca";
      keyFile = "/crypto_keyfile.bin";
    };
  };

  services = {
    blueman.enable = true;
    pcscd.enable = true;
    openssh = {
      enable = true;
      settings = {X11Forwarding = true;};
    };
  };

  virtualisation.docker.enable = true;

  users.users."${username}" = {
    extraGroups = ["wheel" "docker"];
    isNormalUser = true;
    shell = pkgs.nushell;
  };

  environment.systemPackages = with pkgs; [
    globalprotect-openconnect
    jetbrains.pycharm-professional
    jetbrains.idea-ultimate
    jetbrains.datagrip
    teams-for-linux
    xorg.xauth

    # Personal NUR
    nur.repos.jolheiser.prospect-mail
  ];

  system.stateVersion = "22.11";
}