From 9e6e8ca7427c352478245ae6c6ca959aaabe68f7 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 13 Jul 2023 14:23:07 +0530 Subject: dump more stuff --- hosts/myrtle/configuration.nix | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'hosts') diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index be9852e..27b16ce 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -14,6 +14,7 @@ boot.kernelParams = [ # "i915.modeset=0" # "intel_pstate=disable" + "ibt=off" ]; networking = { @@ -104,10 +105,6 @@ hardware = { opengl.driSupport = true; - # pulseaudio = { - # enable = true; - # package = pkgs.pulseaudioFull; - # }; bluetooth = { enable = true; powerOnBoot = true; @@ -126,7 +123,7 @@ }; sensor.iio.enable = true; # enable screen autorotate asus.battery = { - chargeUpto = 80; + chargeUpto = 100; }; }; @@ -187,16 +184,34 @@ pulse.enable = true; }; + signald = { + enable = true; + group = "signald"; + }; + + bitlbee = { + enable = true; + libpurple_plugins = [ + pkgs.purple-signald + ]; + portNumber = 8888; + }; }; systemd.sleep.extraConfig = '' - HibernateMode=shutdown + HibernateMode=suspend ''; virtualisation.docker.enable = true; virtualisation.virtualbox.host.enable = true; users.extraGroups.vboxusers.members = [ "np" ]; + security.sudo.extraRules = [ + { + users = [ "np" ]; + commands = map (cmd: "${pkgs.systemd}/bin/systemctl ${cmd}") [ "poweroff" "suspend" "reboot" ]; + } + ]; users.users.np = { isNormalUser = true; -- cgit v1.2.3