mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
apps/run-workflow-with-vm: update base config
This commit is contained in:
parent
a12e062116
commit
537f4910f5
@ -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
|
|
||||||
];
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user