summaryrefslogtreecommitdiff
path: root/lxc/configuration.nix
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-04-09 16:23:35 +0200
committerKarel Kočí <cynerd@email.cz>2022-04-09 16:23:35 +0200
commit4c0a4740a76ce61b419d51336073764284118aaf (patch)
tree24f3f50a36cc66f37e849f47bdab3f0ab1852c97 /lxc/configuration.nix
parent6a039e268369f7e9055e19d733849da26ab0208b (diff)
downloadnix-openrc-4c0a4740a76ce61b419d51336073764284118aaf.tar.gz
nix-openrc-4c0a4740a76ce61b419d51336073764284118aaf.tar.bz2
nix-openrc-4c0a4740a76ce61b419d51336073764284118aaf.zip
Diffstat (limited to 'lxc/configuration.nix')
-rw-r--r--lxc/configuration.nix30
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;
+ };
+ };
+}