summaryrefslogtreecommitdiff
path: root/lxc/configuration.nix
blob: 7ea01201db9bb98426bd9c7f8a9aff4163f98653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
    };
  };
}