🚚 (neodymium/system) move allowed unfree packages from home to system

This commit is contained in:
Laureηt 2023-06-19 20:51:00 +02:00
parent 1815bf6ea1
commit c66cbd96b4
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
2 changed files with 12 additions and 9 deletions

View file

@ -1,11 +1,4 @@
{ pkgs, lib, ... }: { { pkgs, ... }: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"vscode-insiders"
"vscode-extension-github-copilot"
"vscode-extension-ms-vsliveshare-vsliveshare"
];
services.mpris-proxy.enable = true; # media keys services.mpris-proxy.enable = true; # media keys
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -1,4 +1,4 @@
{ ... }: { { lib, ... }: {
# restrict nix command to sudoers # restrict nix command to sudoers
nix.settings.allowed-users = [ "@wheel" ]; nix.settings.allowed-users = [ "@wheel" ];
@ -15,9 +15,19 @@
options = "--delete-older-than 30d"; options = "--delete-older-than 30d";
}; };
# binary caches
nix.settings = { nix.settings = {
substituters = [ "https://hyprland.cachix.org" ]; substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = trusted-public-keys =
[ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ]; [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
}; };
# list of allowed unfree packages
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"vscode"
"vscode-extension-github-copilot"
"vscode-extension-github-copilot-chat"
"vscode-extension-ms-vsliveshare-vsliveshare"
];
} }