2024-05-02 01:10:26 +00:00
|
|
|
# Set up program defaults
|
2024-05-07 22:02:59 +00:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
# Set up base apps
|
|
|
|
programs = {
|
|
|
|
direnv.enable = true;
|
2024-05-02 01:10:26 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
nano = {
|
|
|
|
enable = true;
|
|
|
|
syntaxHighlight = true;
|
|
|
|
nanorc = ''
|
2024-06-06 14:35:15 +00:00
|
|
|
set linenumbers
|
|
|
|
set tabsize 4
|
|
|
|
set softwrap
|
|
|
|
set autoindent
|
|
|
|
set indicator
|
2024-05-07 22:02:59 +00:00
|
|
|
'';
|
|
|
|
};
|
2024-05-02 01:10:26 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
nh = {
|
|
|
|
enable = true;
|
2024-05-30 18:08:19 +00:00
|
|
|
flake = "${config.secrets.nixConfigFolder}";
|
2024-05-07 22:02:59 +00:00
|
|
|
|
|
|
|
# Alternative garbage collection system to nix.gc.automatic
|
|
|
|
clean = {
|
|
|
|
enable = true;
|
|
|
|
dates = "daily";
|
|
|
|
extraArgs = "--keep-since 7d --keep 10"; # Keep the last 10 entries
|
|
|
|
};
|
|
|
|
};
|
2024-06-03 13:05:32 +00:00
|
|
|
|
|
|
|
# Support for standard, dynamically-linked executables
|
|
|
|
nix-ld.enable = true;
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
|
|
|
}
|