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 | |
| parent | 08895833e51bdfd760f2b4915a3997c13fe65b13 (diff) | |
enable systemd-resolved when not on wsl
| -rw-r--r-- | hosts/common/systemd.nix | 2 | ||||
| -rw-r--r-- | hosts/glados-wsl/default.nix | 32 | ||||
| -rw-r--r-- | users/seth/programs/default.nix | 66 |
3 files changed, 50 insertions, 50 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"; } diff --git a/users/seth/programs/default.nix b/users/seth/programs/default.nix index 8cb4a6c..fa62cd8 100644 --- a/users/seth/programs/default.nix +++ b/users/seth/programs/default.nix @@ -1,38 +1,38 @@ { - config, - pkgs, - ... + config, + pkgs, + ... }: let - develPackages = - if config.seth.devel.enable - then - with pkgs; [ - alejandra - clang - deadnix - eclint - statix - ] - else []; + develPackages = + if config.seth.devel.enable + then + with pkgs; [ + alejandra + clang + deadnix + eclint + statix + ] + else []; in { - imports = [ - ./git.nix - # ./mangohud - ./neovim - ./starship.nix - ./vim.nix - ./xdg.nix - ]; + imports = [ + ./git.nix + ./mangohud + ./neovim + ./starship.nix + ./vim.nix + ./xdg.nix + ]; - home.packages = with pkgs; - [ - bat - exa - fd - gh - lld - ripgrep - python311 - ] - ++ develPackages; + home.packages = with pkgs; + [ + bat + exa + fd + gh + lld + ripgrep + python311 + ] + ++ develPackages; } |
