mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
Refactors, konawall-py for darwin, sumireko update to Sonoma
This commit is contained in:
parent
091ddb5b91
commit
bc61d82487
151 changed files with 691 additions and 792 deletions
4
nixos/profiles/server/linger.nix
Normal file
4
nixos/profiles/server/linger.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{config, ...}: {
|
||||
# Allow services to persist for a user after their sessions have ran out
|
||||
systemd.tmpfiles.rules = set.mapToValues (username: _: "f /var/lib/systemd/linger/${username}") config.users.users;
|
||||
}
|
||||
3
nixos/profiles/server/mosh.nix
Normal file
3
nixos/profiles/server/mosh.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
programs.mosh.enable = true;
|
||||
}
|
||||
5
nixos/profiles/server/profile-inheritance.nix
Normal file
5
nixos/profiles/server/profile-inheritance.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.nixos.profiles; [
|
||||
bootable
|
||||
];
|
||||
}
|
||||
13
nixos/profiles/server/tailscale.nix
Normal file
13
nixos/profiles/server/tailscale.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{config, ...}: {
|
||||
# Enable tailscale
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Allow tailscale through firewall
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
trustedInterfaces = ["tailscale0"];
|
||||
allowedUDPPorts = [config.services.tailscale.port];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue