nixos-config/mastus/vmtest.nix

30 lines
691 B
Nix
Raw Normal View History

2015-09-14 17:38:59 +00:00
let
configuration = { config, pkgs, ... }: {
imports = [ ./configuration.nix ];
users.extraUsers.gebner.password = "";
users.users.root.password = "";
2015-10-18 12:25:54 +00:00
boot.enableContainers = true;
systemd.services.setupVM = rec {
wantedBy = [ "gogs.service" "dovecot2.service" "nginx.service" ];
2015-10-18 12:25:54 +00:00
before = wantedBy;
serviceConfig = {
Type = "oneshot";
RemainAfterExit = "yes";
};
script = ''
mkdir -p /srv/git.gebner.org
chown git:git -R /srv/git.gebner.org
'';
};
2016-05-31 09:22:48 +00:00
environment.systemPackages = with pkgs; [ elinks ];
2015-09-14 17:38:59 +00:00
};
nixos = import <nixpkgs/nixos> { configuration = configuration; };
2015-10-18 12:25:54 +00:00
in nixos.vm