Persist sound settings (for example, muted status) and do not enable wireguard in built ISO.
This commit is contained in:
parent
fe820e5843
commit
5e74a874ba
@ -60,4 +60,14 @@
|
|||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) {
|
||||||
|
hideMounts = true;
|
||||||
|
users.talexander = {
|
||||||
|
directories = [
|
||||||
|
".local/state/wireplumber" # Sound settings
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,25 +8,27 @@
|
|||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 51821 ];
|
config = lib.mkIf (!config.me.buildingIso) {
|
||||||
networking.wireguard.enable = true;
|
networking.firewall.allowedUDPPorts = [ 51821 ];
|
||||||
networking.wg-quick.interfaces.drmario.configFile = "/persist/manual/wireguard/drmario.conf";
|
networking.wireguard.enable = true;
|
||||||
systemd.services."wg-quick-drmario".after = [
|
networking.wg-quick.interfaces.drmario.configFile = "/persist/manual/wireguard/drmario.conf";
|
||||||
"nss-lookup.target"
|
systemd.services."wg-quick-drmario".after = [
|
||||||
"systemd-resolved.service"
|
"nss-lookup.target"
|
||||||
"multi-user.target"
|
"systemd-resolved.service"
|
||||||
];
|
"multi-user.target"
|
||||||
|
];
|
||||||
|
|
||||||
systemd.services."wg-quick-drmario".preStart = "${pkgs.toybox}/bin/sleep 10";
|
systemd.services."wg-quick-drmario".preStart = "${pkgs.toybox}/bin/sleep 10";
|
||||||
|
|
||||||
networking.wg-quick.interfaces.wgh.configFile = "/persist/manual/wireguard/wgh.conf";
|
networking.wg-quick.interfaces.wgh.configFile = "/persist/manual/wireguard/wgh.conf";
|
||||||
systemd.services."wg-quick-wgh".after = [
|
systemd.services."wg-quick-wgh".after = [
|
||||||
"nss-lookup.target"
|
"nss-lookup.target"
|
||||||
"systemd-resolved.service"
|
"systemd-resolved.service"
|
||||||
"multi-user.target"
|
"multi-user.target"
|
||||||
];
|
];
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user