/ hosts / paddy / default.nix
default.nix
 1  {
 2    lib,
 3    config,
 4    ...
 5  }:
 6  {
 7    networking.hostName = "paddy";
 8  
 9    hosts = {
10      hyprland.enable = true;
11      laptop.enable = true;
12      secureboot.enable = true;
13      tailscale.enable = true;
14      yubikey = {
15        enable = true;
16        autolock = true;
17      };
18    };
19  
20    age.identityPaths = [ "/home/martijn/.ssh/id_ed25519" ];
21  
22    hosts.borg = {
23      enable = true;
24      repository = "ssh://nkhm1dhr@nkhm1dhr.repo.borgbase.com/./repo";
25      identityPath = "/home/martijn/.ssh/id_ed25519";
26      paths = [ "/home/martijn" ];
27      exclude = [
28        ".cache"
29        "*/cache2" # librewolf
30        "*/Cache"
31        ".wine"
32        ".config/Slack/logs"
33        ".config/Code/CachedData"
34        ".container-diff"
35        ".npm/_cacache"
36        "*/node_modules"
37        "*/_build"
38        "*/venv"
39        "*/.venv"
40        "/home/*/.local"
41        "/home/*/Downloads"
42        "/home/*/Data"
43        "/home/*/.ssh"
44      ];
45    };
46  
47    users.users.martijn = {
48      hashedPasswordFile = lib.mkForce config.age.secrets.password-laptop.path;
49    };
50  }