apps/run-workflow-with-vm: update base config

This commit is contained in:
Gabriel Arazas 2024-01-25 12:13:58 +08:00
parent a12e062116
commit 537f4910f5
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,7 +1,7 @@
# A very basic NixOS VM configuration intended for testing out the given # A very basic NixOS VM configuration intended for testing out the given
# workflow module. It's a good thing the baseline for the configuration is not # workflow module. It's a good thing the baseline for the configuration is not
# tedious to set up for simpler configs like this. # tedious to set up for simpler configs like this.
{ workflow, extraModules ? [ ] }: { workflow, extraModules ? [ ], extraHomeModules ? [ ] }:
let let
pkgs = import <nixpkgs> { }; pkgs = import <nixpkgs> { };
@ -26,9 +26,7 @@ import <nixpkgs/nixos/lib/eval-config.nix> {
imports = [ imports = [
(lib.private.mapHomeManagerUser "alice" { (lib.private.mapHomeManagerUser "alice" {
password = ""; password = "";
extraGroups = [ extraGroups = [ "wheel" ];
"wheel"
];
description = "There is no password"; description = "There is no password";
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
@ -37,17 +35,13 @@ import <nixpkgs/nixos/lib/eval-config.nix> {
]; ];
config = { config = {
home-manager.sharedModules = [ home-manager.sharedModules = extraHomeModules ++ [
<config/modules/home-manager> <config/modules/home-manager>
<config/modules/home-manager/_private> <config/modules/home-manager/_private>
<sops-nix/modules/home-manager/sops.nix> <sops-nix/modules/home-manager/sops.nix>
({ config, lib, ... }: { ({ config, lib, ... }: {
_module.args = extraArgs; _module.args = extraArgs;
xdg.userDirs.createDirectories = lib.mkForce true; xdg.userDirs.createDirectories = lib.mkForce true;
nixpkgs.overlays = [
config'.overlays.default
];
}) })
]; ];