Compare commits

...

1 Commits

Author SHA1 Message Date
ae77cb3e0c
nixos-wsl: commit tmpfiles workaround
TODO: move impl to system, this isn't even needed on WSL
2024-12-21 18:06:18 +00:00
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,8 @@
{ pkgs, config, lib, vars, ... }:
{
imports = [
./tmpfiles-workaround.nix
];
config = {
networking.hostName = "nixos-wsl";

View 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 ];
}