From 5e605b4053bf0b676304f64b7f5e32a469814842 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 10 Aug 2022 12:14:11 +0800 Subject: [PATCH] hosts/ni: update config --- hosts/ni/default.nix | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/hosts/ni/default.nix b/hosts/ni/default.nix index 99c50349..272719dc 100644 --- a/hosts/ni/default.nix +++ b/hosts/ni/default.nix @@ -6,7 +6,14 @@ ./hardware-configuration.nix (lib.mapHomeManagerUser "foo-dogsquared" { - extraGroups = [ "wheel" "audio" "docker" "podman" "networkmanager" ]; + extraGroups = [ + "adbusers" + "wheel" + "audio" + "docker" + "podman" + "networkmanager" + ]; hashedPassword = "$6$.cMYto0K0CHbpIMT$dRqyKs4q1ppzmTpdzy5FWP/V832a6X..FwM8CJ30ivK0nfLjQ7DubctxOZbeOtygfjcUd1PZ0nQoQpOg/WMvg."; isNormalUser = true; @@ -63,19 +70,15 @@ }; themes.themes.a-happy-gnome.enable = true; + + programs.wezterm.enable = true; + programs.adb.enable = true; + environment.systemPackages = with pkgs; [ # This is installed just to get Geiser to properly work. guile_3_0 - - # The preferred terminal emulator. - wezterm ]; - # This is needed for shell integration and applying semantic zones. - environment.extraInit = '' - source ${pkgs.wezterm}/etc/profiles.d/wezterm.sh - ''; - # Enable Guix service. services.guix-binary.enable = true; @@ -103,10 +106,19 @@ # The usual doas config. security.doas = { enable = true; - extraRules = [{ - groups = [ "wheel" ]; - persist = true; - }]; + extraRules = [ + { + groups = [ "wheel" ]; + persist = true; + } + + # It is the primary user so we may as well just make this easier to run. + { + users = [ "foo-dogsquared" ]; + cmd = "nixos-rebuild"; + noPass = true; + } + ]; }; system.stateVersion = "22.11"; # Yes! I read the comment!