modularizes config

This commit is contained in:
Dennis Schoepf 2025-12-06 15:16:21 +01:00
parent 8d24fc479e
commit d1f446410a
7 changed files with 229 additions and 189 deletions

59
modules/base/default.nix Normal file
View file

@ -0,0 +1,59 @@
{
pkgs,
inputs,
...
}:
{
nix = {
channel.enable = false;
package = pkgs.nix;
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
settings = {
experimental-features = [
"nix-command"
"flakes"
];
};
gc = {
automatic = true;
dates = "weekly";
options = "delete-older-than 7d";
persistent = false;
};
optimise = {
automatic = true;
dates = [ "weekly" ];
};
};
nixpkgs = {
config = {
allowUnfree = true;
allowUnsupportedSystem = true;
};
};
environment.systemPackages = with pkgs; [
git
btop
fish
ripgrep
fzf
fd
sd
bat
neovim
just
tldr
fortune
ffmpeg
zoxide
sqlite
rsync
restic
imagemagick
sqlite
fortune
];
}