From d7136db84f9a9845fc346cf270f3eb16301368f6 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 7 Sep 2023 21:21:52 +0530 Subject: . --- hosts/myrtle/configuration.nix | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'hosts/myrtle') diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index 27b16ce..f554069 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -99,6 +99,8 @@ programs = { light.enable = true; adb.enable = true; + steam.enable = true; + gamemode.enable = true; }; # sound.enable = true; @@ -123,7 +125,7 @@ }; sensor.iio.enable = true; # enable screen autorotate asus.battery = { - chargeUpto = 100; + chargeUpto = 80; }; }; @@ -150,6 +152,7 @@ Option "AllowIndirectGLXProtocol" "off" Option "TripleBuffer" "on" ''; + }; openssh = { @@ -206,12 +209,26 @@ 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" ]; - } - ]; + security.sudo = { + enable = true; + extraRules = [{ + commands = [ + { + command = "${pkgs.systemd}/bin/systemctl suspend"; + options = [ "NOPASSWD" ]; + } + { + command = "${pkgs.systemd}/bin/reboot"; + options = [ "NOPASSWD" ]; + } + { + command = "${pkgs.systemd}/bin/poweroff"; + options = [ "NOPASSWD" ]; + } + ]; + groups = [ "wheel" ]; + }]; + }; users.users.np = { isNormalUser = true; -- cgit v1.2.3