modularizes config
This commit is contained in:
parent
8d24fc479e
commit
d1f446410a
7 changed files with 229 additions and 189 deletions
59
modules/base/default.nix
Normal file
59
modules/base/default.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue