nixos-wsl: commit tmpfiles workaround
TODO: move impl to system, this isn't even needed on WSL
This commit is contained in:
parent
2708cb667a
commit
ae77cb3e0c
@ -1,5 +1,8 @@
|
||||
{ pkgs, config, lib, vars, ... }:
|
||||
{
|
||||
imports = [
|
||||
./tmpfiles-workaround.nix
|
||||
];
|
||||
config = {
|
||||
networking.hostName = "nixos-wsl";
|
||||
|
||||
|
11
hosts/nixos-wsl/tmpfiles-workaround.nix
Normal file
11
hosts/nixos-wsl/tmpfiles-workaround.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config.systemd.tmpfiles.packages = let
|
||||
package = pkgs.runCommand "no-systemd-tmpfiles-nocow" {} ''
|
||||
mkdir -p "$out/lib/tmpfiles.d"
|
||||
cd "$out/lib/tmpfiles.d"
|
||||
|
||||
ln -s /dev/null journal-nocow.conf
|
||||
'';
|
||||
in lib.mkAfter [ package ];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user