feat: added the base configuration for home testing
This commit is contained in:
parent
6b6ef3c4a2
commit
b83e997168
1 changed files with 36 additions and 0 deletions
36
machines/base.nix
Normal file
36
machines/base.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
# flakes are essensial
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
system.stateVersion = "23.05";
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
permitRootLogin = "prohibit-password";
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.root = {
|
||||||
|
initialHashedPassword = "";
|
||||||
|
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
# personal one
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINQHZQA1ovXw4DWDUD7ivh4eW0lnCsHVvSvBCrlAWN/b Hetzner NixOS Tester"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
# for flakes
|
||||||
|
pkgs.git
|
||||||
|
# useful tools
|
||||||
|
pkgs.ncdu_2
|
||||||
|
pkgs.htop
|
||||||
|
pkgs.nano
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue