From fcca57f2ade13f662756a2b4e0b2bebc43fa6d81 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Wed, 6 Mar 2024 06:02:22 +0800 Subject: [PATCH] nixos/core: use `dbus-broker` && minor tweaks --- nixos/profiles/common/core/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nixos/profiles/common/core/default.nix b/nixos/profiles/common/core/default.nix index 57c6258..c751f35 100644 --- a/nixos/profiles/common/core/default.nix +++ b/nixos/profiles/common/core/default.nix @@ -44,7 +44,6 @@ boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_zen; # mkDefault for server ### Default Programs - environment.defaultPackages = []; # In addition of https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/system-path.nix environment.systemPackages = with pkgs; [ unzip @@ -55,24 +54,27 @@ lsof ltrace + strace dnsutils pciutils usbutils ]; - programs.dconf.enable = true; - programs.nano.enable = false; # make sure to add another editor and set the $EDITOR variable + + programs.nano.enable = false; programs.neovim = { enable = true; viAlias = true; vimAlias = true; - defaultEditor = true; + defaultEditor = true; # important! }; + services.openssh = { enable = true; settings.PermitRootLogin = "no"; settings.PasswordAuthentication = false; }; + services.getty.greetingLine = let inherit (config.system) nixos; in '' @@ -83,6 +85,9 @@ "[ 5.996722] amdgpu 0000:67:00.0: Fatal error during GPU init"} ''; + # https://archlinux.org/news/making-dbus-broker-our-default-d-bus-daemon/ + services.dbus.implementation = "broker"; + ### WORKAROUND: Use NVIDIA beta version 550.40.07 due to performance issues introduced in version 545.29.06, # this shouldn't affect non-nvidia machines. hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta; @@ -107,6 +112,7 @@ ]; }; + programs.dconf.enable = true; programs.fish.enable = true; users.groups."nix-access-tokens" = {}; nix.extraOptions = "!include ${config.sops.secrets.nix-access-tokens.path}";