mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-03 00:15:35 +02:00
containers: remove autostart with systemd.tmpfiles.rules
At some point this started causing the /run/user/1000 directory to be deleted when changing container configurations, which was definitely not ideal. An alternative approach will have to be taken if we want the wine container to auto-start on boot.
This commit is contained in:
parent
043e901711
commit
a7fad6beb9
@ -14,7 +14,6 @@ let
|
|||||||
template = {
|
template = {
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
ephemeral = true;
|
ephemeral = true;
|
||||||
autoStart = true;
|
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
|
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
@ -52,8 +51,6 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
systemd.tmpfiles.rules = [ "d /run/user/1000 0700 ${username} users -" ];
|
|
||||||
|
|
||||||
environment.systemPackages = mkIf (pkgs.system == "x86_64-linux") (
|
environment.systemPackages = mkIf (pkgs.system == "x86_64-linux") (
|
||||||
with nix-config.inputs.sakaya.packages.${pkgs.system}; [ sakaya ]
|
with nix-config.inputs.sakaya.packages.${pkgs.system}; [ sakaya ]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user