summary refs log tree commit diff stats
path: root/system/satoshipad.nix
blob: 662d33595e9babea57731122fe5186d93db9905b (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ config
, pkgs
, ...
}: {
  imports = [
    ./hardware-configuration.nix

    <nixos-hardware/lenovo/thinkpad/t470s>
    <nixos-hardware/common/pc/ssd>
    <nixos-hardware/common/cpu/intel/kaby-lake>
    ./settings/machines/t470s.nix

    ./settings/base.nix
    ./settings/configuration/berlin.nix
    ./settings/configuration/british-english.nix
    ./settings/configuration/nix.nix
    ./settings/configuration/user.nix
    ./settings/hardware/nvme-root.nix
    ./settings/hardware/audio.nix
    ./settings/hardware/systemd-boot.nix
    ./settings/hardware/keyboardio-model01.nix
    ./settings/hardware/network-manager.nix
    ./settings/hardware/keyboard.nix
    ./settings/hardware/trackball.nix
    ./settings/hardware/trezor.nix
    ./settings/programs/base.nix
    ./settings/programs/gnupg.nix
    ./settings/programs/i3.nix
    ./settings/programs/shell.nix
    ./settings/satoshipay.nix
  ];

  services.throttled.enable = true;

  boot.initrd.luks.devices = {
    root = {
      allowDiscards = true;
      device = "/dev/disk/by-uuid/bb7f9a24-8963-4d00-9258-118050b35748";
      preLVM = true;
    };
  };

  networking.hostName = "satoshipad";
  services.avahi.hostName = "alan-satoshipay";

  xsession.windowManager.i3.config = {
    assigns = {
      "1" = [{ class = "^Ripcord$"; }];
      "3" = [{ class = "^Firefox Developer Edition$"; }];
      "8" = [{ class = "^Emacs$"; }];
      "9" = [{ class = "\.exe$"; }];
      "10" = [{ class = "^Barrier$"; }];
    };
  };

  system.stateVersion = "18.03";
}