common aspects reworked into base aspect

This commit is contained in:
William 2026-02-15 14:20:57 -03:00
parent bfa2521ed0
commit 5d1b54c8bf
15 changed files with 72 additions and 112 deletions

48
aspects/base/base.nix Normal file
View file

@ -0,0 +1,48 @@
{ inputs, ... }:
{
flake.modules.nixos.base =
{ lib, pkgs, ... }:
{
imports = with inputs.self.modules.nixos; [
boot
console
firewall
locale
nix
security
ssh
];
environment = {
systemPackages = with pkgs; [
git
fastfetch
nixos-firewall-tool
sysz
wget
yazi
];
shellAliases = {
cat = "${lib.getExe pkgs.bat} --paging=never --style=plain";
ls = "${lib.getExe pkgs.eza} --git --icons --group-directories-first";
tree = "ls --tree";
};
};
programs = {
command-not-found.enable = false;
fish = {
enable = true;
};
};
services = {
dbus.implementation = "broker";
irqbalance.enable = true;
fstrim.enable = true;
tailscale = {
enable = true;
extraUpFlags = [ "--operator=user" ];
};
};
};
}