Skip to content

Commit

Permalink
require network connection for home-config clone
Browse files Browse the repository at this point in the history
waiting for the network to be up with `network-online.target` will only work
with a NixOS 18.09 build after this commit:
<NixOS/nixpkgs@022eb6a>

you have to build your own image from that, as currently the latest 18.09
release binary is more than two months older. the issue behind this is
essentially inconsistent service names:
<NixOS/nixpkgs#59603>

here is how to build an image:
<https://nixos.org/nixos/manual/index.html#sec-building-cd>

this is what you get if you want to use immature software...
  • Loading branch information
fricklerhandwerk committed Jun 26, 2019
1 parent 510ae9c commit 9a76262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/home-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ in
nameValuePair ("home-config-${utils.escapeSystemdPath username}") {
description = "initial home-manager configuration for ${username}";
wantedBy = [ "multi-user.target" ];
wants = [ "nix-daemon.socket" ];
after = [ "nix-daemon.socket" ];
after = [ "nix-daemon.socket" "network-online.target" ];
requires = [ "nix-daemon.socket" "network-online.target" ];
serviceConfig = with pkgs; {
User = username;
Type = "oneshot";
Expand Down

0 comments on commit 9a76262

Please sign in to comment.