forked from emily/nixfiles
31 lines
805 B
Nix
31 lines
805 B
Nix
{ config, pkgs, lib, modulesPath, ... }:
|
|
|
|
with lib; {
|
|
imports = [
|
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
|
./config/networking.nix
|
|
./config/nginx.nix
|
|
./config/openssh.nix
|
|
];
|
|
proxmoxLXC = {
|
|
manageNetwork = true;
|
|
manageHostName = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
vim
|
|
];
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFCQN+h27GP95p6+1wH8E5Tq5h1Ua/PUW4Xd8JPAo0Wy root@web01"
|
|
];
|
|
|
|
time.timeZone = mkDefault "CET";
|
|
|
|
system.autoUpgrade.enable = true;
|
|
system.stateVersion = "23.05";
|
|
nix.optimise.automatic = true;
|
|
nix.gc.automatic = true;
|
|
nix.gc.options = "--delete-older-than 2d";
|
|
}
|