mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-30 20:23:53 -08:00
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
environment.systemPackages = [
|
|
inputs.viminal.packages.${pkgs.system}.default
|
|
];
|
|
|
|
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)}
|
|
'';
|
|
};
|
|
|
|
programs.nh = {
|
|
enable = true;
|
|
clean.enable = true;
|
|
clean.extraArgs = "--keep-since 4d --keep 3";
|
|
flake = "/home/youwen/.config/liminalOS";
|
|
};
|
|
# Enable CUPS to print documents.
|
|
services.printing.enable = true;
|
|
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
}
|