home: move nix substituter to machine level nix conf

This commit is contained in:
xinyangli 2023-11-24 20:49:18 +08:00
parent c804a493c2
commit cb5a5794bd
2 changed files with 7 additions and 12 deletions

View file

@ -6,13 +6,6 @@
./vim.nix
];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
substituters = "https://mirrors.ustc.edu.cn/nix-channels/store https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store";
};
home.packages = with pkgs; [
dig
du-dust # du + rust

View file

@ -101,8 +101,6 @@
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
services.intune.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages = [
@ -188,7 +186,7 @@
config.nur.repos.xddxdd.wechat-uos
# Password manager
keepassxc
bitwarden
# Browser
firefox
@ -213,15 +211,19 @@
# Use mirror for binary cache
nix.settings.substituters = [
"https://mirrors.bfsu.edu.cn/nix-channels/store"
"https://mirrors.ustc.edu.cn/nix-channels/store"
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nix.settings.trusted-users = [ "xin" "root" ];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
trusted-users = [ "xin" "root" ];
};
nix.extraOptions = ''
!include "${config.sops.secrets.github_public_token.path}"
'';