mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-25 02:03:51 -08:00
44 lines
839 B
Nix
44 lines
839 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
environment.systemPackages = [
|
|
inputs.viminal.packages.${pkgs.system}.default
|
|
inputs.viminal.packages.${pkgs.system}.vimg
|
|
];
|
|
|
|
security.sudo.enable = false;
|
|
|
|
security.doas = {
|
|
enable = true;
|
|
extraRules = [
|
|
{
|
|
users = [ "youwen" ];
|
|
keepEnv = true;
|
|
persist = true;
|
|
}
|
|
];
|
|
};
|
|
|
|
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)}
|
|
'';
|
|
};
|
|
}
|