[sudo] Extends sudo timeout on drew-desktop to 30m
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
# Bootloader.
|
||||
@@ -51,12 +55,21 @@
|
||||
# Unlock the default keyring on login to hyprland
|
||||
security.pam.services.hyprland.enableGnomeKeyring = true;
|
||||
|
||||
security.sudo = {
|
||||
enable = true;
|
||||
|
||||
extraConfig = ''
|
||||
Defaults:root,%wheel timestamp_timeout=30
|
||||
'';
|
||||
};
|
||||
|
||||
# Enable Hyprland so it shows up in the menu
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
portalPackage =
|
||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
||||
# Configure keymap in X11
|
||||
@@ -146,12 +159,18 @@
|
||||
users.users.drew = {
|
||||
isNormalUser = true;
|
||||
description = "Drew Haven";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
# Enable flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
@@ -168,4 +187,5 @@
|
||||
# Enable the font directory for managing fonts
|
||||
# This doesn't seem to be needed though.
|
||||
# fonts.fontDir.enable = true;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user