liminalOS/modules/linux/core/default.nix

44 lines
791 B
Nix
Raw Normal View History

2024-08-24 03:52:55 -07:00
{
inputs,
pkgs,
...
2024-09-02 18:16:22 -07:00
}:
{
environment.systemPackages = [
inputs.viminal.packages.${pkgs.system}.default
];
2024-08-24 03:52:55 -07:00
security.sudo.enable = false;
security.doas = {
enable = true;
extraRules = [
{
2024-09-02 18:16:22 -07:00
users = [ "youwen" ];
2024-08-24 03:52:55 -07:00
keepEnv = true;
persist = true;
}
];
};
2024-09-05 19:20:37 -07:00
services.gnome.gnome-keyring.enable = true;
nix = {
settings.experimental-features = [
"nix-command"
"flakes"
];
optimise.automatic = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
# Free up to 1GiB when there is less than 100MiB left
extraOptions = ''
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
};
2024-08-24 03:52:55 -07:00
}