Compare commits
No commits in common. "8244fe892757c5b44e76edb7c735cda00feb044b" and "36ba00efc36d5db0b1d843b3b8b2e87093ee9c18" have entirely different histories.
8244fe8927
...
36ba00efc3
@ -13,7 +13,7 @@
|
|||||||
./development.nix
|
./development.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./security
|
./security.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = systemConfig.version;
|
system.stateVersion = systemConfig.version;
|
||||||
|
7
hosts/pi4/security.nix
Normal file
7
hosts/pi4/security.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
}
|
@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
./firewall.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
|
||||||
};
|
|
||||||
services = {
|
|
||||||
pcscd.enable = true;
|
|
||||||
gnome.gnome-keyring.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
networking = {
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
trustedInterfaces = [ "tailscale0" ];
|
|
||||||
extraInputRules =
|
|
||||||
let
|
|
||||||
localIPv4Range = "192.168.10.0/24";
|
|
||||||
in
|
|
||||||
''
|
|
||||||
ip saddr ${localIPv4Range} tcp dport 22 accept
|
|
||||||
ip saddr ${localIPv4Range} udp dport 22 accept
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
nftables.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user