diff options
| author | seth <[email protected]> | 2023-01-26 06:33:24 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-26 06:33:24 -0500 |
| commit | cfaf3bedb1a0666c7f01faa5b6c41096d89fec31 (patch) | |
| tree | 658456cabbe12e5bf2517350be457909a252712f /hosts | |
| parent | 08895833e51bdfd760f2b4915a3997c13fe65b13 (diff) | |
enable systemd-resolved when not on wsl
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/common/systemd.nix | 2 | ||||
| -rw-r--r-- | hosts/glados-wsl/default.nix | 32 |
2 files changed, 17 insertions, 17 deletions
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"; } |
