about summary refs log tree commit diff
path: root/nixos/selenium
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-11-01 19:42:08 +0900
committersefidel <contact@sefidel.net>2022-11-01 19:48:49 +0900
commitfcf9efa0fddddf7a268ab32d08d69e9eefebc7f8 (patch)
tree279d5f0670bea0a86d6b06b32cd845148c5a9e2c /nixos/selenium
parentfbcbb013191ef7c8a1f266b6da330ae2bd3f5b77 (diff)
downloadnixrc-fcf9efa0fddddf7a268ab32d08d69e9eefebc7f8.tar.gz
nixrc-fcf9efa0fddddf7a268ab32d08d69e9eefebc7f8.zip
feat(nixos/selenium): ec2 instance
Diffstat (limited to 'nixos/selenium')
-rw-r--r--nixos/selenium/configuration.nix18
-rw-r--r--nixos/selenium/hardware-configuration.nix5
2 files changed, 23 insertions, 0 deletions
diff --git a/nixos/selenium/configuration.nix b/nixos/selenium/configuration.nix
new file mode 100644
index 0000000..e099f02
--- /dev/null
+++ b/nixos/selenium/configuration.nix
@@ -0,0 +1,18 @@
+{ config, pkgs, lib, ... }:
+
+{
+  imports = [ ];
+
+  users.users.worker = {
+    isNormalUser = true;
+    extraGroups = [ "wheel" ];
+    openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAic4niJKrBKyTzTbpldaEiU30vS9/jkZl3yZRnu6d9O zach@zachel.io" ];
+  };
+
+  # This value determines the NixOS release with which your system is to be
+  # compatible, in order to avoid breaking some software such as database
+  # servers. You should change this only after NixOS release notes say you
+  # should.
+  system.stateVersion = "22.05"; # Did you read the comment?
+
+}
diff --git a/nixos/selenium/hardware-configuration.nix b/nixos/selenium/hardware-configuration.nix
new file mode 100644
index 0000000..0b508ec
--- /dev/null
+++ b/nixos/selenium/hardware-configuration.nix
@@ -0,0 +1,5 @@
+{ config, lib, pkgs, ... }:
+
+{
+  nix.settings.max-jobs = lib.mkDefault 4;
+}