lib wasn't imported in virtbox.nix, so we'll include that
This commit is contained in:
parent
2830d98192
commit
7688715da5
|
@ -1,7 +1,8 @@
|
||||||
{ config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
hostname = "virtbox";
|
hostname = "virtbox";
|
||||||
|
isVirtbox = hostname == "virtbox";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
@ -33,7 +34,7 @@ in
|
||||||
|
|
||||||
# branch and enable different capabilities based on the system
|
# branch and enable different capabilities based on the system
|
||||||
|
|
||||||
lib.mkIf hostname == "virtbox" {
|
test = lib.mkIf isVirtbox {
|
||||||
services.virtbox.enable = true;
|
services.virtbox.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ...}:
|
{ lib, config, pkgs, ...}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in New Issue