mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
home-manager: fix integration tests
This commit is contained in:
parent
2835e8ba0a
commit
eee140958a
3 changed files with 10 additions and 3 deletions
|
|
@ -1,3 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
|
|
@ -11,7 +13,7 @@
|
|||
# You should not change this value, even if you update Home Manager. If you do
|
||||
# want to update the value, then make sure to first check the Home Manager
|
||||
# release notes.
|
||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||
home.stateVersion = "25.05"; # Please read the comment before changing.
|
||||
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
|
|
@ -11,7 +13,7 @@
|
|||
# You should not change this value, even if you update Home Manager. If you do
|
||||
# want to update the value, then make sure to first check the Home Manager
|
||||
# release notes.
|
||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||
home.stateVersion = "25.05"; # Please read the comment before changing.
|
||||
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
|
|
|
|||
|
|
@ -80,8 +80,11 @@ in
|
|||
"cp -v ${./alice-home-next.nix} ${home}/.config/home-manager/home.nix"
|
||||
]))
|
||||
|
||||
# The default configuration creates this link on activation.
|
||||
machine.fail("test -L '${home}/.cache/.keep'")
|
||||
|
||||
actual = succeed_as_alice("nh home switch --no-nom '${home}/.config/home-manager'")
|
||||
expected = "Starting Home Manager activation"
|
||||
expected = "home-manager-generation.drv"
|
||||
assert expected in actual, \
|
||||
f"expected nh home switch to contain {expected}, but got {actual}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue