summaryrefslogtreecommitdiff
path: root/testdata/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/configuration.nix')
-rw-r--r--testdata/configuration.nix35
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";
+}