summaryrefslogtreecommitdiffstats
path: root/hosts/by-name/tiamat/configuration.nix
blob: d2bf347318a105f8141ea4704c94e32dde04ee12 (plain) (blame)
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
82
83
84
85
86
87
88
# nixos-config - My current NixOS configuration
#
# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of my nixos-config.
#
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
{
  lib,
  system,
  sources,
  ...
}: {
  imports = [
    ./hardware.nix

    ../../../modules/common/soispha
  ];

  vhack = {
    # TODO: Hard-code all the uids/gids <2025-05-13>
    persist.directories = [
      "/var/lib/nixos"
    ];
    users = {
      enable = true;
      users = [
        {
          name = "soispha";
          groups = ["wheel" "audio"];
          enableDeprecatedPlugdev = true;
          uid = 1000;
          sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIME4ZVa+IoZf6T3U08JG93i6QIAJ4amm7mkBzO14JSkz";
          hashedPassword = "$y$jFT$qi3wS9njrMl2y55b3NOBI0$j40Qt6AAkMSfZ82KPhqMaUaPztWtPps1wOqaXaF/L.6";
        }
      ];
    };
  };

  soispha = {
    bluetooth = {enable = true;};
    networking = {
      enable = true;
      hostName = "tiamat";
      mode = "systemd-networkd";
    };
    nixpkgs = {
      enable = true;
      systemName = "x86_64-linux";
    };

    services = {
      unison.foreign.address = "apzu.fritz.box";
    };
    programs = {
      river = {
        unicodeInput.enable = true;
        init = {
          mappings = {
            layout = "us";
            keymap = {
              # Support Unicode input
              "<Alt+Ctrl+Meta+Shift-Z>" = [
                "spawn"
                "${lib.getExe sources.qmk_firmware.packages.${system}.qmk_unicode_type} 106 65377"
              ];
            };
          };
          screenSetupCode = {
            "DP-2" = {pos = "2560,0";};
            "DP-1" = {
              scale = "1.5";
              pos = "0,0";
            };
          };
        };
      };
    };
    locale = {
      enable = true;
      keyMap = "us";
    };
  };

  system.stateVersion = "23.05";
}