added unfree applications explicitely

This commit is contained in:
Kristian Krsnik 2023-08-26 18:49:08 +02:00
parent 0444229bb0
commit 91adefc48e
2 changed files with 17 additions and 3 deletions

View File

@ -5,8 +5,6 @@
specialArgs,
modulesPath,
}: {
nixpkgs.config.allowUnfreePredicate = _: true;
home.stateVersion = "23.05";
home.username = "kristian";
home.homeDirectory = "/home/kristian";

View File

@ -1,4 +1,20 @@
{pkgs, ...}: {
{
pkgs,
lib,
...
}: {
config.nixpkgs.config = {
allowUnfree = false;
allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"vscode"
"vscode-extension-MS-python-vscode-pylance"
"vscode-extension-github-copilot"
"osu-lazer"
];
};
config.home.packages = with pkgs; [
# Basic utils
unzip