tests: remove with lib (#6511)

This commit is contained in:
Austin Horstman 2025-02-21 21:20:07 -08:00 committed by GitHub
parent e495cd8c80
commit 439a125afe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
100 changed files with 77 additions and 398 deletions

View file

@ -1,13 +1,9 @@
{ config, lib, pkgs, ... }:
with lib;
{
{ config, lib, ... }: {
config = {
programs.ssh = { enable = true; };
home.file.assertions.text = builtins.toJSON
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
(map (a: a.message) (lib.filter (a: !a.assertion) config.assertions));
nmt.script = ''
assertFileExists home-files/.ssh/config

View file

@ -1,7 +1,3 @@
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.ssh = {

View file

@ -1,8 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
{
{ config, lib, ... }: {
config = {
programs.ssh = {
enable = true;
@ -25,7 +21,7 @@ with lib;
};
home.file.result.text = builtins.toJSON
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
(map (a: a.message) (lib.filter (a: !a.assertion) config.assertions));
nmt.script = ''
assertFileExists home-files/.ssh/config

View file

@ -1,7 +1,3 @@
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.ssh = {

View file

@ -1,7 +1,3 @@
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.ssh = {

View file

@ -1,7 +1,3 @@
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.ssh = {

View file

@ -1,7 +1,3 @@
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.ssh = {

View file

@ -1,8 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
{
{ config, lib, ... }: {
config = {
programs.ssh = {
enable = true;
@ -12,7 +8,7 @@ with lib;
proxyJump = "jump-host";
};
ordered = hm.dag.entryAfter [ "xyz" ] { port = 1; };
ordered = lib.hm.dag.entryAfter [ "xyz" ] { port = 1; };
xyz = {
identityFile = "file";
@ -49,7 +45,7 @@ with lib;
};
home.file.assertions.text = builtins.toJSON
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
(map (a: a.message) (lib.filter (a: !a.assertion) config.assertions));
nmt.script = ''
assertFileExists home-files/.ssh/config

View file

@ -1,8 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
{
{ config, lib, ... }: {
config = {
programs.ssh = {
enable = true;
@ -19,7 +15,7 @@ with lib;
};
home.file.assertions.text = builtins.toJSON
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
(map (a: a.message) (lib.filter (a: !a.assertion) config.assertions));
nmt.script = ''
assertFileExists home-files/.ssh/config