2023-06-27 19:47:05 +00:00
|
|
|
{
|
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-unstable,
|
|
|
|
...
|
|
|
|
}: {
|
2022-12-20 13:33:20 +00:00
|
|
|
time.timeZone = "Europe/Berlin";
|
2022-07-22 20:42:05 +00:00
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
boot.loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/".options = ["compress=zstd"];
|
|
|
|
"/nix".options = ["compress=zstd" "noatime"];
|
|
|
|
"/persist".options = ["compress=zstd"];
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
networkmanager.enable = true;
|
|
|
|
nameservers = ["1.1.1.1"];
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
2023-05-02 11:50:13 +00:00
|
|
|
registry = {
|
|
|
|
nixpkgs.flake = nixpkgs;
|
|
|
|
nixpkgs-unstable.flake = nixpkgs-unstable;
|
|
|
|
};
|
2022-12-02 16:55:53 +00:00
|
|
|
settings = {
|
|
|
|
auto-optimise-store = true;
|
|
|
|
trusted-users = ["root" "buffet"];
|
|
|
|
};
|
2022-07-22 20:42:05 +00:00
|
|
|
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
2022-08-15 12:47:29 +00:00
|
|
|
options = "--delete-older-than 30d";
|
2022-07-22 20:42:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|