diff options
author | Martin Fischer <martin@push-f.com> | 2025-07-09 20:32:34 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-07-14 07:01:33 +0200 |
commit | ba6b72b4c7e257b9514ce21b7fbbc469e4c8a849 (patch) | |
tree | f70afb535e75d3e1c9d100212b64ad171b088b8b /testdata/configuration.nix |
Diffstat (limited to 'testdata/configuration.nix')
-rw-r--r-- | testdata/configuration.nix | 35 |
1 files changed, 35 insertions, 0 deletions
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-version>; }).pkg + ]; + + users.users.test-user = { + isSystemUser = true; + group = "test-group"; + packages = [ + (pkgs.stdenv.mkDerivation { + pname = "user-package"; + version = import <pkg-version>; + dontUnpack = true; + installPhase = " + mkdir -p $out/bin + touch $out/bin/foo + "; + }) + ]; + }; + users.groups.test-group = {}; + + networking.hostName = "test-system"; + + system.stateVersion = "24.05"; +} |