initial commit

This commit is contained in:
2025-12-03 09:17:48 -05:00
commit 39733853c8
14 changed files with 410 additions and 0 deletions

56
modules/base.nix Normal file
View File

@@ -0,0 +1,56 @@
{
pkgs,
meta,
...
}: {
nix.settings.experimental-features = ["nix-command" "flakes"];
nixpkgs.config.allowUnfree = true;
time.timeZone = "America/Toronto";
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
networking = {
hostName = meta.hostname;
networkmanager.enable = true;
firewall.enable = false;
};
environment.systemPackages = with pkgs; [
curl
vim
git
];
users = {
mutableUsers = false;
users = {
mthomson = {
isNormalUser = true;
extraGroups = ["wheel"];
password = "pw123";
openssh.authorizedKeys.keys = [meta.publicKey];
};
root = {
openssh.authorizedKeys.keys = [meta.publicKey];
};
};
};
services = {
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
};
};
};
system.stateVersion = "25.05";
}