mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-30 00:03:02 +00:00
Add channel snapshot to image itself
This commit is contained in:
parent
4066e347ef
commit
7df36ae8fc
@ -18,6 +18,7 @@ let
|
|||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
||||||
./target.nix
|
./target.nix
|
||||||
#./hardware-configuration.nix
|
#./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
@ -29,23 +30,6 @@ in {
|
|||||||
# You can not use networking.networkmanager with networking.wireless
|
# You can not use networking.networkmanager with networking.wireless
|
||||||
networking.wireless.enable = false;
|
networking.wireless.enable = false;
|
||||||
|
|
||||||
systemd.services."init-nix-channels" = {
|
|
||||||
enable = true;
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStartPre = "${pkgs.su}/bin/su root -c '${pkgs.nix}/bin/nix-channel --update'";
|
|
||||||
ExecStart = "/bin/sh";
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = "5";
|
|
||||||
TimeoutSec = "120";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.timers."init-nix-channels" = {
|
|
||||||
timerConfig.OnBootSec = "30s";
|
|
||||||
timerConfig.Unit = "init-nix-channels.service";
|
|
||||||
wantedBy = ["timers.target"];
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.user = {
|
users.users.user = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "audio" "libvirtd" ];
|
extraGroups = [ "audio" "libvirtd" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user