diff --git a/modules/common/default.nix b/modules/common/default.nix index 195ad06..27bcede 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -5,6 +5,7 @@ }: { imports = [ ./core.nix + ./environment.nix ./fonts.nix ./users.nix ]; diff --git a/modules/common/environment.nix b/modules/common/environment.nix new file mode 100644 index 0000000..d4e931c --- /dev/null +++ b/modules/common/environment.nix @@ -0,0 +1,20 @@ +{ lib, pkgs, ... }: { + # Common packages that every system will use + environment.systemPackages = with pkgs; [ + git + vim + neovim + usbutils + coreutils + lshw + systemd + dmidecode + pciutils + nix-ld + patchelf + htop + ]; + + # Common environment variables that every system will use + environment.variables.EDITOR = "nvim"; +} diff --git a/modules/common/users.nix b/modules/common/users.nix index 60c2735..1663a61 100644 --- a/modules/common/users.nix +++ b/modules/common/users.nix @@ -5,10 +5,6 @@ hostname, ... } @ args: { - imports = [ - ../security/sudo.nix - ]; - networking.hostName = hostname; # Don't forget to set a password with ‘passwd’! @@ -27,7 +23,19 @@ }) ]; - security.sudo.needsPassword = false; + security.sudo = { + extraRules = [ + { + groups = [ "wheel" ]; + commands = [ + { + command = "ALL"; + options = [ "NOPASSWD" "SETENV" ]; + } + ]; + } + ]; + }; users.groups.wyatt = {}; diff --git a/modules/machine/cloud/configuration.nix b/modules/machine/cloud/configuration.nix index eb691c5..777fdf1 100644 --- a/modules/machine/cloud/configuration.nix +++ b/modules/machine/cloud/configuration.nix @@ -46,25 +46,17 @@ in { # Install packages to be installed system-wide environment.systemPackages = with pkgs; [ - vim - neovim - git wireguard-tools grim slurp playerctl light brightnessctl - firefox wttrbar cliphist - patchelf - nix-ld + xdg-desktop-portal-gtk ]; - # Set the EDITOR global environment variable to neovim - environment.variables.EDITOR = "nvim"; - # Enable OpenSSH services.openssh.enable = true; @@ -160,14 +152,14 @@ in { xdg = { portal = { enable = true; - wlr.enable = true; - config = { - common = { - default = [ - "wlr" - ]; - }; - }; + # wlr.enable = true; + # config = { + # common = { + # default = [ + # "wlr" + # ]; + # }; + # }; xdgOpenUsePortal = true; extraPortals = with pkgs; [ xdg-desktop-portal-wlr diff --git a/modules/machine/valefor/configuration.nix b/modules/machine/valefor/configuration.nix index 53930bf..7848de6 100644 --- a/modules/machine/valefor/configuration.nix +++ b/modules/machine/valefor/configuration.nix @@ -27,18 +27,6 @@ # Set your timezone time.timeZone = "America/Detroit"; - # Install packages to be installed system-wide - environment.systemPackages = with pkgs; [ - vim - neovim - git - patchelf - nix-ld - ]; - - # Set the EDITOR global environment variable to neovim - environment.variables.EDITOR = "nvim"; - # Enable OpenSSH services.openssh.enable = true;