plinth-infra/flake/system/base.nix

30 lines
772 B
Nix
Raw Normal View History

2024-11-19 05:15:20 +00:00
{ pkgs, ... }: {
nix = {
settings.experimental-features = [
"nix-command"
"flakes"
];
package = pkgs.lix;
};
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "plinth";
time.timeZone = "UTC";
networking.firewall.enable = false;
services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = false;
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMiGDjT86bf2DNsVPOgtvT1SGCsI5EE5bLhxiJnMaDJQ charlotte@crystal'' ]; # failsafe
programs.zsh.enable = true;
users.users.charlotte = {
isNormalUser = true;
description = "charlotte";
extraGroups = ["wheel"];
shell = pkgs.zsh;
};
security.sudo.wheelNeedsPassword = false;
}