nixfiles/profiles/base/default.nix

47 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2024-11-23 20:35:39 +00:00
{ inputs, pkgs, ...}: {
nixpkgs.config.allowUnfree = true;
nix.settings.trusted-users = [ "root" "@wheel" ];
nix.registry.nixpkgs.flake = inputs.nixpkgs;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
nix.gc = {
automatic = true;
options = "--delete-older-than 21d";
};
security.sudo.wheelNeedsPassword = false;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "prohibit-password";
};
};
2024-11-23 20:52:03 +00:00
environment.shellAliases = {
2024-12-02 19:34:11 +00:00
"nixos-switch" = "sudo nixos-rebuild switch --impure --flake .#";
"nom-affogato" = "nom build .#nixosConfigurations.affogato.config.system.build.toplevel --impure";
2024-11-23 20:52:03 +00:00
};
2024-11-27 19:41:37 +00:00
environment.variables = {
EDITOR = "vim";
VISUAL = "vim";
};
2024-11-23 20:35:39 +00:00
environment.systemPackages = with pkgs; [
python3
vim
tmux
jq
yq
tree
git
bind.dnsutils
openssl
curl
htop
pinentry
gnupg
sequoia
];
}