From cfaf3bedb1a0666c7f01faa5b6c41096d89fec31 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 26 Jan 2023 06:33:24 -0500 Subject: enable systemd-resolved when not on wsl --- hosts/common/systemd.nix | 2 +- hosts/glados-wsl/default.nix | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'hosts') diff --git a/hosts/common/systemd.nix b/hosts/common/systemd.nix index 9d44da4..ba2464f 100644 --- a/hosts/common/systemd.nix +++ b/hosts/common/systemd.nix @@ -1,5 +1,5 @@ {config, ...}: let - value = config.sys.wsl.enable; + value = !config.sys.wsl.enable; in { services = { journald.extraConfig = '' diff --git a/hosts/glados-wsl/default.nix b/hosts/glados-wsl/default.nix index bc9bdd2..fa4a750 100644 --- a/hosts/glados-wsl/default.nix +++ b/hosts/glados-wsl/default.nix @@ -1,23 +1,23 @@ { - config, - modulesPath, - pkgs, - ... + config, + modulesPath, + pkgs, + ... }: { - imports = [ - (modulesPath + "/profiles/minimal.nix") - ../common - ../../users/seth - ]; + imports = [ + (modulesPath + "/profiles/minimal.nix") + ../common + ../../users/seth + ]; - sys.wsl.enable = true; + sys.wsl.enable = true; - # enable non-free packages - nixpkgs.config.allowUnfree = true; + # enable non-free packages + nixpkgs.config.allowUnfree = true; - # Enable nix flakes - nix.package = pkgs.nixFlakes; - nix.settings.experimental-features = ["nix-command" "flakes"]; + # Enable nix flakes + nix.package = pkgs.nixFlakes; + nix.settings.experimental-features = ["nix-command" "flakes"]; - system.stateVersion = "22.11"; + system.stateVersion = "22.11"; } -- cgit v1.2.3