diff options
Diffstat (limited to 'lxc/configuration.nix')
-rw-r--r-- | lxc/configuration.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lxc/configuration.nix b/lxc/configuration.nix new file mode 100644 index 0000000..7ea0120 --- /dev/null +++ b/lxc/configuration.nix @@ -0,0 +1,30 @@ +{ config, lib, pkgs, ... }: { + boot.isContainer = true; + + i18n.supportedLocales = ["en_US.UTF-8/UTF-8" "cs_CZ.UTF-8/UTF-8"]; + nix.extraOptions = "experimental-features = nix-command flakes"; + + programs.vim.defaultEditor = true; + + services.openssh = { + enable = true; + passwordAuthentication = false; + }; + + environment.systemPackages = with pkgs; [ + openrc + git bash + htop + ]; + + users.users = { + cynerd = { + uid = 1000; + name = "cynerd"; + shell = pkgs.zsh.out; + openssh.authorizedKeys.keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3cs5UOO/epaxSUaO6kDtQlfdS/K5GEJBGK9nH+KcRL4DNQlAGWZsJiJQPuIL3fGlzRLqnPr8YEMbT5sl/moe/gZe2VD5FoAr2dR2fEw5wXXDI90bxbmCWqbyjmRxlKxdKhc6v1BukmuxScsZO0VrUNks1veCGgi1G9w+tY5HevBlMqvDyDpU/H1LN7MVgkCser+ROjRPviDhLaXk6dLKut33SYgce02s5hlvTiWQa+CqeBfRkdiP5VBo/7PQOWsd8GSfCgO0mwhxFowG8cMFyEwMOi70HeNmURtKbd/h6cz0zsdA39fQ8huRWHRd/CQhgIUOsM+W0uPEwkv9HBErx Private key"]; + isNormalUser = true; + createHome = true; + }; + }; +} |