mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
tests: update to match new sd-switch version
Also, seems Nix has become more memory hungry so increase memory allocation.
This commit is contained in:
parent
dfaf0ff2e7
commit
2fb5c1e0a1
3 changed files with 5 additions and 3 deletions
|
@ -7,6 +7,8 @@
|
||||||
nodes.machine = { ... }: {
|
nodes.machine = { ... }: {
|
||||||
imports = [ ../../../nixos ]; # Import the HM NixOS module.
|
imports = [ ../../../nixos ]; # Import the HM NixOS module.
|
||||||
|
|
||||||
|
virtualisation.memorySize = 2048;
|
||||||
|
|
||||||
users.users.alice = {
|
users.users.alice = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Alice Foobar";
|
description = "Alice Foobar";
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
nodes.machine = { ... }: {
|
nodes.machine = { ... }: {
|
||||||
imports = [ "${pkgs.path}/nixos/modules/installer/cd-dvd/channel.nix" ];
|
imports = [ "${pkgs.path}/nixos/modules/installer/cd-dvd/channel.nix" ];
|
||||||
virtualisation.memorySize = 2048;
|
virtualisation.memorySize = 3072;
|
||||||
nix = {
|
nix = {
|
||||||
registry.home-manager.to = {
|
registry.home-manager.to = {
|
||||||
type = "path";
|
type = "path";
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
} /home/alice/.config/home-manager/home.nix")
|
} /home/alice/.config/home-manager/home.nix")
|
||||||
|
|
||||||
actual = succeed_as_alice("home-manager switch")
|
actual = succeed_as_alice("home-manager switch")
|
||||||
expected = "Started pueued.service - active"
|
expected = "Starting units: pueued.service"
|
||||||
assert expected in actual, \
|
assert expected in actual, \
|
||||||
f"expected home-manager switch to contain {expected}, but got {actual}"
|
f"expected home-manager switch to contain {expected}, but got {actual}"
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
} /home/alice/.config/home-manager/home.nix")
|
} /home/alice/.config/home-manager/home.nix")
|
||||||
|
|
||||||
actual = succeed_as_alice("home-manager switch")
|
actual = succeed_as_alice("home-manager switch")
|
||||||
expected = "Started pueued.service - active"
|
expected = "Starting units: pueued.service"
|
||||||
assert expected in actual, \
|
assert expected in actual, \
|
||||||
f"expected home-manager switch to contain {expected}, but got {actual}"
|
f"expected home-manager switch to contain {expected}, but got {actual}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue