2023-09-19 00:17:43 +00:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
nix.settings = {
|
|
|
|
allowed-users = [ "@wheel" ];
|
|
|
|
substituters = [
|
|
|
|
"https://mirrors.ustc.edu.cn/nix-channels/store"
|
|
|
|
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
|
|
|
|
"https://mirror.sjtu.edu.cn/nix-channels/store"
|
|
|
|
|
2023-09-26 23:40:21 +00:00
|
|
|
# TODO: actually figure out what is Cachix
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://berberman.cachix.org"
|
2023-09-19 00:17:43 +00:00
|
|
|
"https://hyprland.cachix.org"
|
2023-09-26 23:40:21 +00:00
|
|
|
"https://cache.garnix.io"
|
2023-09-19 00:17:43 +00:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
2023-09-26 23:40:21 +00:00
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"berberman.cachix.org-1:UHGhodNXVruGzWrwJ12B1grPK/6Qnrx2c3TjKueQPds="
|
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
|
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
2023-09-19 00:17:43 +00:00
|
|
|
];
|
|
|
|
use-xdg-base-directories = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
documentation = {
|
|
|
|
doc.enable = false;
|
|
|
|
info.enable = false;
|
|
|
|
nixos.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
#nix.useSandbox = false;
|
|
|
|
|
|
|
|
system = {
|
|
|
|
# Copy the NixOS configuration file and link it from the resulting system
|
|
|
|
# (/run/current-system/configuration.nix). This is useful in case you
|
|
|
|
# accidentally delete configuration.nix.
|
|
|
|
|
|
|
|
# Does not work with flake based configurations
|
2023-10-05 10:09:04 +00:00
|
|
|
#copySystemConfiguration = true;
|
2023-09-19 00:17:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
# on your system were taken. It's perfectly fine and recommended to leave
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
|
|
|
# TLDR: leave it alone
|
|
|
|
stateVersion = "23.05";
|
|
|
|
};
|
|
|
|
}
|