Skip to content

Commit 6fac5c1

Browse files
authored
Update flakes (#555)
2 parents 0c8b048 + 36bb9a7 commit 6fac5c1

File tree

9 files changed

+33
-41
lines changed

9 files changed

+33
-41
lines changed

docs/book.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[book]
22
authors = [ ]
33
language = "en"
4-
multilingual = false
54
src = "."
65
title = "nixos-anywhere - install NixOS everywhere"

flake.lock

Lines changed: 18 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
nixos-images.inputs.nixos-unstable.follows = "nixpkgs";
1313
nixos-images.inputs.nixos-stable.follows = "nixos-stable";
1414
# https://github.com/numtide/nix-vm-test/pull/105
15-
nix-vm-test = { url = "github:Mic92/nix-vm-test"; inputs.nixpkgs.follows = "nixpkgs"; };
15+
nix-vm-test = { url = "github:Enzime/nix-vm-test/pr-105-latest"; inputs.nixpkgs.follows = "nixpkgs"; };
1616

1717
# used for development
1818
treefmt-nix = { url = "github:numtide/treefmt-nix"; inputs.nixpkgs.follows = "nixpkgs"; };

tests/from-nixos-build-on-remote.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44
name = "from-nixos-build-on-remote";
55
nodes = {
66
installer = ./modules/installer.nix;
7-
installed = {
8-
services.openssh.enable = true;
9-
virtualisation.memorySize = 1500;
10-
11-
users.users.root.openssh.authorizedKeys.keyFiles = [ ./modules/ssh-keys/ssh.pub ];
12-
};
7+
installed = ./modules/target-base.nix;
138
};
149
testScript = ''
1510
def create_test_machine(

tests/from-nixos-generate-config.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
];
88
environment.systemPackages = [ pkgs.jq ];
99
};
10-
installed = {
11-
services.openssh.enable = true;
12-
virtualisation.memorySize = 1500;
13-
14-
users.users.root.openssh.authorizedKeys.keyFiles = [ ./modules/ssh-keys/ssh.pub ];
15-
};
10+
installed = ./modules/target-base.nix;
1611
};
1712
testScript = ''
1813
start_all()

tests/from-nixos-separated-phases.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
nodes = {
44
installer = ./modules/installer.nix;
55
installed = {
6-
services.openssh.enable = true;
7-
virtualisation.memorySize = 1500;
6+
imports = [ ./modules/target-base.nix ];
87

98
users.users.nixos = {
109
isNormalUser = true;
1110
openssh.authorizedKeys.keyFiles = [ ./modules/ssh-keys/ssh.pub ];
1211
extraGroups = [ "wheel" ];
1312
};
13+
1414
security.sudo.enable = true;
1515
security.sudo.wheelNeedsPassword = false;
1616
};

tests/from-nixos-with-sudo.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
nodes = {
44
installer = ./modules/installer.nix;
55
installed = {
6-
services.openssh.enable = true;
7-
virtualisation.memorySize = 1500;
6+
imports = [ ./modules/target-base.nix ];
87

98
users.users.nixos = {
109
isNormalUser = true;
1110
password = "somespecialpassword";
1211
openssh.authorizedKeys.keyFiles = [ ./modules/ssh-keys/ssh.pub ];
1312
extraGroups = [ "wheel" ];
1413
};
14+
1515
security.sudo.enable = true;
1616
security.sudo.wheelNeedsPassword = true;
1717
};

tests/from-nixos.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44
name = "from-nixos";
55
nodes = {
66
installer = ./modules/installer.nix;
7-
installed = {
8-
services.openssh.enable = true;
9-
virtualisation.memorySize = 1500;
10-
11-
users.users.root.openssh.authorizedKeys.keyFiles = [ ./modules/ssh-keys/ssh.pub ];
12-
};
7+
installed = ./modules/target-base.nix;
138
};
149
testScript = ''
1510
def create_test_machine(

tests/modules/target-base.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
services.openssh.enable = true;
3+
virtualisation.memorySize = 1500;
4+
virtualisation.diskSize = 1536;
5+
6+
users.users.root.openssh.authorizedKeys.keyFiles = [ ./ssh-keys/ssh.pub ];
7+
}

0 commit comments

Comments
 (0)