tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/tests/misc.nix: get rid of `with lib`
Anderson Torres
2 years ago
ca916d0f
13dc33c7
+6
-9
1 changed file
expand all
collapse all
unified
split
nixos
tests
misc.nix
+6
-9
nixos/tests/misc.nix
···
1
1
# Miscellaneous small tests that don't warrant their own VM run.
2
2
3
3
-
import ./make-test-python.nix ({ pkgs, ...} : let
3
3
+
import ./make-test-python.nix ({ lib, pkgs, ...} : let
4
4
foo = pkgs.writeText "foo" "Hello World";
5
5
in {
6
6
name = "misc";
7
7
-
meta = with pkgs.lib.maintainers; {
8
8
-
maintainers = [ eelco ];
9
9
-
};
7
7
+
meta.maintainers = with lib.maintainers; [ eelco ];
10
8
11
9
nodes.machine =
12
10
{ lib, ... }:
13
13
-
with lib;
14
14
-
{ swapDevices = mkOverride 0
11
11
+
{ swapDevices = lib.mkOverride 0
15
12
[ { device = "/root/swapfile"; size = 128; } ];
16
16
-
environment.variables.EDITOR = mkOverride 0 "emacs";
17
17
-
documentation.nixos.enable = mkOverride 0 true;
13
13
+
environment.variables.EDITOR = lib.mkOverride 0 "emacs";
14
14
+
documentation.nixos.enable = lib.mkOverride 0 true;
18
15
systemd.tmpfiles.rules = [ "d /tmp 1777 root root 10d" ];
19
16
virtualisation.fileSystems = { "/tmp2" =
20
17
{ fsType = "tmpfs";
···
32
29
options = [ "bind" "rw" "noauto" ];
33
30
};
34
31
};
35
35
-
systemd.automounts = singleton
32
32
+
systemd.automounts = lib.singleton
36
33
{ wantedBy = [ "multi-user.target" ];
37
34
where = "/tmp2";
38
35
};