quality-of-life improvemets
This commit is contained in:
parent
b1823c1d2c
commit
58c7b0ab24
2 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
# port-forward ssh to the music machine
|
# port-forward ssh to the music machine
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
iptables -t nat -I PREROUTING -p tcp --dport 2020 -j DNAT --to-destination 10.34.45.101:22
|
iptables -t nat -I PREROUTING -p tcp --dport 2020 -j DNAT --to-destination 10.34.45.101:22
|
||||||
|
iptables -t nat -A POSTROUTING -j MASQUERADE
|
||||||
'';
|
'';
|
||||||
extraStopCommands = ''
|
extraStopCommands = ''
|
||||||
iptables -t nat -D PREROUTING -p tcp --dport 2020 -j DNAT --to-destination 10.34.45.101:22 || true
|
iptables -t nat -D PREROUTING -p tcp --dport 2020 -j DNAT --to-destination 10.34.45.101:22 || true
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
users.users.caretaker = {
|
users.users.caretaker = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
home = "/home/caretaker";
|
||||||
|
createHome = true;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
"navidrome"
|
"navidrome"
|
||||||
|
|
Loading…
Add table
Reference in a new issue