From 19627b26f605d5ebc765084e051f64932e02fca4 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 2 Apr 2023 22:15:09 +0200 Subject: Revert "nixos: auto-ugprade: require networkmanager to be online" This reverts commit b94ddb1f9420240780054e60fa3acb6552ca3a82. --- modules/nixos/personal/nix.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'modules/nixos') diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix index 1b49e13..a4948f4 100644 --- a/modules/nixos/personal/nix.nix +++ b/modules/nixos/personal/nix.nix @@ -44,18 +44,14 @@ in { before = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ]; wantedBy = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ]; }; - nixos-upgrade = { - wants = lib.optional config.networking.networkmanager.enable - "NetworkManager-wait-online.service"; - }; }; - programs.git = - lib.mkIf (cfg.flake != null && lib.hasPrefix "git+file" cfg.flake) { - enable = true; - config.user = { - name = "Root user of ${config.networking.hostName}"; - email = "root@${config.networking.hostName}"; - }; + programs.git = lib.mkIf (cfg.flake != null + && lib.hasPrefix "git+file" cfg.flake) { + enable = true; + config.user = { + name = "Root user of ${config.networking.hostName}"; + email = "root@${config.networking.hostName}"; }; + }; }; } -- cgit v1.2.3