From 3015f29f3b2a9294937fa85027b4d10b75717a31 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 8 Jul 2022 03:13:09 +0000 Subject: [PATCH] wsl-specific module --- hosts/wsl/default.nix | 1 + modules/wsl/default.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 modules/wsl/default.nix diff --git a/hosts/wsl/default.nix b/hosts/wsl/default.nix index 0d775f6..d586dc0 100644 --- a/hosts/wsl/default.nix +++ b/hosts/wsl/default.nix @@ -22,6 +22,7 @@ nixpkgs.lib.nixosSystem { }; } ../common.nix + ../../modules/wsl ../../modules/system ../../modules/programming/nix.nix ../../modules/programming/lua.nix diff --git a/modules/wsl/default.nix b/modules/wsl/default.nix new file mode 100644 index 0000000..d7e7b86 --- /dev/null +++ b/modules/wsl/default.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: { + + services.geoclue2.enable = lib.mkForce false; + location = { provider = lib.mkForce "manual"; }; + services.localtimed.enable = lib.mkForce false; + + # Replace config directory with our repo + system.activationScripts.configDir.text = '' + rm -rf /etc/nixos + ln --symbolic --no-dereference --force ${config.dotfilesPath} /etc/nixos + ''; + +}