inital attempt at getting lxc working. Currently home-manager is broken.
This commit is contained in:
parent
6f5169947a
commit
7d1ae316bb
6 changed files with 120 additions and 16 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue