systemconfig: chown files if uid/gid > 0

This commit is contained in:
Daniel Barlow
2023-04-15 22:53:28 +01:00
parent 5dd0c6e3c0
commit 65dfbad365
3 changed files with 18 additions and 5 deletions

View File

@@ -1,8 +1,19 @@
{ config, pkgs, lib, ... } :
{
let
inherit (pkgs.pseudofile) dir symlink;
in {
imports = [
../../vanilla-configuration.nix
../../modules/squashfs.nix
../../modules/jffs2.nix
];
config.rootfsType = "jffs2";
config.filesystem = dir {
hello = {
type = "f";
uid = 7;
gid = 24;
file = "hello world";
};
};
}