diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/glados/config.nix | 22 | ||||
| -rw-r--r-- | hosts/glados/default.nix | 8 | ||||
| -rw-r--r-- | hosts/glados/packages.nix | 10 | ||||
| -rw-r--r-- | hosts/glados/security.nix | 17 | ||||
| -rw-r--r-- | hosts/glados/users.nix | 27 |
5 files changed, 84 insertions, 0 deletions
diff --git a/hosts/glados/config.nix b/hosts/glados/config.nix new file mode 100644 index 0000000..819a4f4 --- /dev/null +++ b/hosts/glados/config.nix @@ -0,0 +1,22 @@ +{ config, pkgs, ...}: + +{ + # hardware = { + # nvidia.package = boot.kernelPackages.nvidiaPackages.stable; + # xserver = { + # videoDrivers = [ "nvidia" ]; + # }; + # opengl.enable = true; + # }; + + networking.hostName = "glados"; + + programs = { + gnupg = { + agent = { + enable = true; + pinentryFlavor = "curses"; + }; + }; + }; +} diff --git a/hosts/glados/default.nix b/hosts/glados/default.nix new file mode 100644 index 0000000..8f9a315 --- /dev/null +++ b/hosts/glados/default.nix @@ -0,0 +1,8 @@ +{ + imports = [ + ./config.nix + ./packages.nix + ./security.nix + ./users.nix + ]; +} diff --git a/hosts/glados/packages.nix b/hosts/glados/packages.nix new file mode 100644 index 0000000..63de591 --- /dev/null +++ b/hosts/glados/packages.nix @@ -0,0 +1,10 @@ +{ confg, pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + neofetch + nixos-option + python310 + vim + ]; +} diff --git a/hosts/glados/security.nix b/hosts/glados/security.nix new file mode 100644 index 0000000..debd6b7 --- /dev/null +++ b/hosts/glados/security.nix @@ -0,0 +1,17 @@ +{ lib, config, ... }: + +with builtins; with lib; +{ + security.sudo = { + configFile = '' + Defaults env_reset + Defaults secure_path = /run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin + Defaults editor = /run/current-system/sw/bin/vim,!env_editor + ''; + execWheelOnly = true; + extraRules = [ + { users = [ "root" ]; groups = [ "root" ]; commands = [ "ALL" ]; } + { users = [ "seth" ]; commands = [ "ALL" ]; } + ]; + }; +} diff --git a/hosts/glados/users.nix b/hosts/glados/users.nix new file mode 100644 index 0000000..e0b04c5 --- /dev/null +++ b/hosts/glados/users.nix @@ -0,0 +1,27 @@ +{ config, lib, pkgs, ... }: + +with config; with lib; with pkgs; +{ + users = { + defaultUserShell = bash; + mutableUsers = false; + + users = { + + root = { + home = "/root"; + uid = ids.uids.root; + group = "root"; + initialHashedPassword = mkDefault "!"; + }; + + seth = { + extraGroups = [ "wheel" ]; + isNormalUser = true; + hashedPassword = "idontknowhowtosecurethis"; + shell = fish; + }; + + }; + }; +} |
