apps/run-workflow-with-vm: update default configuration

This commit is contained in:
Gabriel Arazas 2024-01-12 19:27:04 +08:00
parent 4333feb2c0
commit a09fa89ef2
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -24,21 +24,16 @@ import <nixpkgs/nixos/lib/eval-config.nix> {
<nixos-generators/format-module.nix> <nixos-generators/format-module.nix>
({ config, lib, pkgs, ... }: { ({ config, lib, pkgs, ... }: {
imports = [ imports = [
( (lib.private.mapHomeManagerUser "alice" {
let password = "";
password = "nixos";
in
lib.private.mapHomeManagerUser "alice" {
inherit password;
extraGroups = [ extraGroups = [
"wheel" "wheel"
]; ];
description = "The password is '${password}'"; description = "There is no password";
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
home = "/home/alice"; home = "/home/alice";
} })
)
]; ];
config = { config = {
@ -46,6 +41,7 @@ import <nixpkgs/nixos/lib/eval-config.nix> {
<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;
nixpkgs.overlays = [ nixpkgs.overlays = [
config'.overlays.default config'.overlays.default
@ -55,11 +51,6 @@ import <nixpkgs/nixos/lib/eval-config.nix> {
_module.args = extraArgs; _module.args = extraArgs;
virtualisation.qemu.options = [
"-vga virtio"
"-display gtk,gl=on"
];
workflows.workflows.${workflow}.enable = true; workflows.workflows.${workflow}.enable = true;
nixpkgs.overlays = [ nixpkgs.overlays = [