Persist sound settings (for example, muted status) and do not enable wireguard in built ISO.

This commit is contained in:
Tom Alexander 2024-12-29 15:45:52 -05:00
parent fe820e5843
commit 5e74a874ba
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 28 additions and 16 deletions

View File

@ -60,4 +60,14 @@
'') '')
]; ];
}; };
environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) {
hideMounts = true;
users.talexander = {
directories = [
".local/state/wireplumber" # Sound settings
];
};
};
} }

View File

@ -8,6 +8,7 @@
{ {
imports = [ ]; imports = [ ];
config = lib.mkIf (!config.me.buildingIso) {
networking.firewall.allowedUDPPorts = [ 51821 ]; networking.firewall.allowedUDPPorts = [ 51821 ];
networking.wireguard.enable = true; networking.wireguard.enable = true;
networking.wg-quick.interfaces.drmario.configFile = "/persist/manual/wireguard/drmario.conf"; networking.wg-quick.interfaces.drmario.configFile = "/persist/manual/wireguard/drmario.conf";
@ -27,6 +28,7 @@
]; ];
systemd.services."wg-quick-wgh".preStart = "${pkgs.toybox}/bin/sleep 10"; systemd.services."wg-quick-wgh".preStart = "${pkgs.toybox}/bin/sleep 10";
};
# environment.systemPackages = with pkgs; [ # environment.systemPackages = with pkgs; [
# wireguard-tools # wireguard-tools