95 lines
1.6 KiB
Nix
95 lines
1.6 KiB
Nix
# Module: base/base
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let userSSHKeys = [ ];
|
|
in {
|
|
imports = [ ./grafana-alloy ./network.nix ];
|
|
|
|
time.timeZone = "Etc/UTC";
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
console = {
|
|
font = "Lat2-Terminus16";
|
|
useXkbConfig = true;
|
|
};
|
|
|
|
environment.variables = { PAGER = "nvimpager"; };
|
|
|
|
# Maintenance
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 14d";
|
|
};
|
|
|
|
nix.settings = {
|
|
auto-optimise-store = true;
|
|
cores = 2;
|
|
max-jobs = 2;
|
|
};
|
|
|
|
users.users.etorres = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
packages = with pkgs; [
|
|
compose2nix
|
|
curl
|
|
fd
|
|
fzf
|
|
git
|
|
neovim
|
|
nixfmt-rfc-style
|
|
nvimpager
|
|
ripgrep
|
|
safe-rm
|
|
stow
|
|
tmux
|
|
tree
|
|
wget
|
|
zsh
|
|
];
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
openssh.authorizedKeys.keys = userSSHKeys;
|
|
};
|
|
|
|
programs.neovim = {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
};
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestions.enable = true;
|
|
};
|
|
|
|
security.sudo = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
Defaults env_keep += "EDITOR"
|
|
Defaults pwfeedback
|
|
'';
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
borgbackup
|
|
borgmatic
|
|
grafana-alloy
|
|
python3 # For Ansible
|
|
];
|
|
|
|
# ========== Services ==========
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PasswordAuthentication = false;
|
|
settings.PermitRootLogin = "no";
|
|
};
|
|
|
|
services.xserver.enable = false;
|
|
|
|
# /run/current-system/configuration.nix
|
|
system.copySystemConfiguration = true;
|
|
}
|