liminalOS/modules/linux/core/default.nix

71 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-08-24 03:52:55 -07:00
{
inputs,
pkgs,
2024-11-04 11:57:01 -08:00
config,
...
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 = {
optimise.automatic = true;
2024-11-04 11:57:01 -08:00
# 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-11-10 20:29:37 -08:00
settings = {
experimental-features = [
"nix-command"
"flakes"
];
substituters = [
"https://cache.nixos.org"
"https://zen-browser.cachix.org"
];
trusted-public-keys = [
"hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
"zen-browser.cachix.org-1:z/QLGrEkiBYF/7zoHX1Hpuv0B26QrmbVBSy9yDD2tSs="
];
};
};
2024-11-04 11:57:01 -08:00
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/youwen/.config/liminalOS";
};
2024-09-29 01:51:24 -07:00
# Enable CUPS to print documents.
services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
2024-08-24 03:52:55 -07:00
}