From ba6b72b4c7e257b9514ce21b7fbbc469e4c8a849 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 9 Jul 2025 20:32:34 +0200 Subject: initial commit --- testdata/configuration.nix | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 testdata/configuration.nix (limited to 'testdata/configuration.nix') diff --git a/testdata/configuration.nix b/testdata/configuration.nix new file mode 100644 index 0000000..fa31b47 --- /dev/null +++ b/testdata/configuration.nix @@ -0,0 +1,35 @@ +{ pkgs, ... }: + +{ + boot.loader.systemd-boot.enable = true; + + fileSystems."/" = { + device = "/dev/disk/by-label/nixos"; + fsType = "ext4"; + }; + + environment.systemPackages = [ + (pkgs.callPackage ./package.nix { version = import ; }).pkg + ]; + + users.users.test-user = { + isSystemUser = true; + group = "test-group"; + packages = [ + (pkgs.stdenv.mkDerivation { + pname = "user-package"; + version = import ; + dontUnpack = true; + installPhase = " + mkdir -p $out/bin + touch $out/bin/foo + "; + }) + ]; + }; + users.groups.test-group = {}; + + networking.hostName = "test-system"; + + system.stateVersion = "24.05"; +} -- cgit v1.2.3