inital attempt at getting lxc working. Currently home-manager is broken.

This commit is contained in:
Gabe Venberg 2024-06-04 23:33:32 -05:00
parent 6f5169947a
commit 7d1ae316bb
6 changed files with 120 additions and 16 deletions

View file

@ -3,6 +3,7 @@
pkgs,
inputs,
outputs,
lib,
...
}: {
nix = {
@ -24,6 +25,16 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
time.timeZone = lib.mkDefault "America/Chicago";
# Select internationalisation properties.
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
# Configure keymap in X11
services.xserver = {
xkb.layout = lib.mkDefault "us";
xkb.variant = lib.mkDefault "";
};
# packages that should be on every system.
environment.systemPackages = with pkgs; [
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.

View file

@ -3,6 +3,8 @@
pkgs,
inputs,
outputs,
configLib,
lib,
...
}: {
services.openssh = {
@ -14,6 +16,9 @@
environment.systemPackages = with pkgs; [
kitty.terminfo
];
users.users.root.openssh.authorizedKeys.keys =
lib.mkDefault (configLib.dirToStrings "${inputs.nix-secrets}/public-keys");
# if it can log into root, it should also be able to log in to the main user.
users.users.${config.host.user}.openssh.authorizedKeys.keys =
config.users.users.root.openssh.authorizedKeys.keys;