From 5cdce4a6e39088a087a0a4774d80d1fd074dd839 Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 7 Jul 2023 23:11:21 -0500 Subject: [PATCH 1/6] whoops, wrong module --- virtbox.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtbox.nix b/virtbox.nix index 05d75a9..ee649c5 100644 --- a/virtbox.nix +++ b/virtbox.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ...}: +{ lib, config, pkgs, ...}: with lib; let From 22ba0ba584d8cf89f5363066080644fa4b1e935a Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 7 Jul 2023 23:13:57 -0500 Subject: [PATCH 2/6] ah --- configuration.nix | 3 ++- virtbox.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 324012b..93b5a59 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,5 +1,6 @@ { config, pkgs, ... }: +with lib; let hostname = "virtbox"; in @@ -33,7 +34,7 @@ in # branch and enable different capabilities based on the system - lib.mkIf hostname == "virtbox" { + mkIf hostname == "virtbox" { services.virtbox.enable = true; }; } diff --git a/virtbox.nix b/virtbox.nix index ee649c5..05d75a9 100644 --- a/virtbox.nix +++ b/virtbox.nix @@ -1,4 +1,4 @@ -{ lib, config, pkgs, ...}: +{ config, pkgs, ...}: with lib; let From b6fa4de417bf6842d3ebb0adfab5504d85ca8af0 Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 7 Jul 2023 23:17:41 -0500 Subject: [PATCH 3/6] experimentation --- configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 93b5a59..526e1a6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -3,6 +3,7 @@ with lib; let hostname = "virtbox"; + isVirtbox = hostname == "virtbox"; in { imports = @@ -34,7 +35,7 @@ in # branch and enable different capabilities based on the system - mkIf hostname == "virtbox" { + mkIf isVirtbox { services.virtbox.enable = true; }; } From 88412dd5572e8f4928406e2f980c0a9e91e4374f Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 7 Jul 2023 23:19:21 -0500 Subject: [PATCH 4/6] test --- configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 526e1a6..c1ad898 100644 --- a/configuration.nix +++ b/configuration.nix @@ -35,7 +35,7 @@ in # branch and enable different capabilities based on the system - mkIf isVirtbox { + test = mkIf isVirtbox { services.virtbox.enable = true; }; } From ede69ca4befd414f89ef728fbfcc538d59612195 Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 7 Jul 2023 23:20:00 -0500 Subject: [PATCH 5/6] I can't do this anymore --- configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index c1ad898..e551b0f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ lib, config, pkgs, ... }: with lib; let From c25fd3471dfda22d9ed65aafc5a70ea1e5ca1b69 Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 7 Jul 2023 23:22:06 -0500 Subject: [PATCH 6/6] aaaaaaaaaaaaaaaaa --- configuration.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index e551b0f..2f35ebb 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,6 +1,5 @@ { lib, config, pkgs, ... }: -with lib; let hostname = "virtbox"; isVirtbox = hostname == "virtbox"; @@ -35,7 +34,7 @@ in # branch and enable different capabilities based on the system - test = mkIf isVirtbox { + test = lib.mkIf isVirtbox { services.virtbox.enable = true; }; }