forked from Bun/nixos-config
Make some changes and implement ddclient for cloudflare
This commit is contained in:
parent
7d30617bb7
commit
2326853c53
2 changed files with 20 additions and 27 deletions
|
@ -17,9 +17,6 @@ let
|
|||
# Isolate devices into IOMMU groups
|
||||
"pcie_acs_override=downstream,multifunction"
|
||||
"pci=routeirq"
|
||||
|
||||
# Provide less context messages
|
||||
"quiet"
|
||||
];
|
||||
in
|
||||
|
||||
|
@ -202,29 +199,22 @@ in
|
|||
#networkmanager.enable = true;
|
||||
#enableB43Firmware = true;
|
||||
|
||||
# Enable nftables over iptables
|
||||
nftables.enable = true;
|
||||
|
||||
# Enable firewall
|
||||
firewall = {
|
||||
allowPing = false;
|
||||
extraInputRules = ''
|
||||
ip saddr 192.168.2.11 accept comment "Accept Server Connections"
|
||||
ip saddr 10.0.0.2 accept comment "Accept Server Connections"
|
||||
'';
|
||||
};
|
||||
|
||||
# Enable nftables over iptables
|
||||
nftables.enable = true;
|
||||
|
||||
# Set hostnames
|
||||
hosts = {
|
||||
"192.168.2.10" = [ "pc" ];
|
||||
"192.168.2.11" = [ "server" ];
|
||||
"172.16.0.2" = [ "vm" ];
|
||||
"10.0.0.2" = [ "server" ];
|
||||
"10.0.0.3" = [ "pc" ];
|
||||
};
|
||||
|
||||
# Set nameserver
|
||||
nameservers = [
|
||||
"9.9.9.9"
|
||||
"1.1.1.1"
|
||||
];
|
||||
};
|
||||
|
||||
# Enable Bluetooth
|
||||
|
@ -271,6 +261,11 @@ in
|
|||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
#jack.enable = true;
|
||||
wireplumber.configPackages = [
|
||||
(pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/11-bluetooth-policy.conf" ''
|
||||
wireplumber.settings = { bluetooth.autoswitch-to-headset-profile = false }
|
||||
'')
|
||||
];
|
||||
};
|
||||
|
||||
# Fonts
|
||||
|
@ -380,7 +375,6 @@ in
|
|||
# Enable SSH
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = false;
|
||||
settings = {
|
||||
LogLevel = "VERBOSE";
|
||||
PermitRootLogin = "no";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue