From 7df36ae8fc372ff0b909ac19e80bbadaa7f7399a Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 5 Jan 2020 08:49:48 +0000 Subject: [PATCH] Add channel snapshot to image itself --- os/configuration.nix | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/os/configuration.nix b/os/configuration.nix index da39c18..75d9c90 100644 --- a/os/configuration.nix +++ b/os/configuration.nix @@ -18,6 +18,7 @@ let }); in { imports = [ + ./target.nix #./hardware-configuration.nix ]; @@ -29,23 +30,6 @@ in { # You can not use networking.networkmanager with networking.wireless 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 = { isNormalUser = true; extraGroups = [ "audio" "libvirtd" ];