mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
whitelist for nonfree packages
This commit is contained in:
parent
61419b3559
commit
80b5a14c5e
|
@ -38,6 +38,7 @@ in {
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
|
#jack.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -90,6 +91,14 @@ in {
|
||||||
"electron-12.2.3"
|
"electron-12.2.3"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
my.allowUnfreePackages = [
|
||||||
|
"insync"
|
||||||
|
"insync-pkg"
|
||||||
|
|
||||||
|
"rider"
|
||||||
|
"pycharm-professional"
|
||||||
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
fontconfig.defaultFonts.monospace = ["FiraCode Nerd Font"];
|
fontconfig.defaultFonts.monospace = ["FiraCode Nerd Font"];
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
|
|
|
@ -42,5 +42,11 @@ in {
|
||||||
dedicatedServer.openFirewall = true;
|
dedicatedServer.openFirewall = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
my.allowUnfreePackages = [
|
||||||
|
"steam"
|
||||||
|
"steam-original"
|
||||||
|
"steam-run"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,27 @@
|
||||||
{config, ...}: let
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
unstable-commit-sha = "f5892ddac112a1e9b3612c39af1b72987ee5783a";
|
unstable-commit-sha = "f5892ddac112a1e9b3612c39af1b72987ee5783a";
|
||||||
in {
|
in {
|
||||||
|
options.my.allowUnfreePackages = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [];
|
||||||
|
example = ["steam"];
|
||||||
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
|
||||||
|
|
||||||
# make nixos-unstable availiable as 'pkgs.unstable'
|
# make nixos-unstable availiable as 'pkgs.unstable'
|
||||||
packageOverrides = pkgs: {
|
packageOverrides = pkgs: {
|
||||||
unstable = import (fetchTarball "https://github.com/nixos/nixpkgs/tarball/${unstable-commit-sha}") {
|
unstable = import (fetchTarball "https://github.com/nixos/nixpkgs/tarball/${unstable-commit-sha}") {
|
||||||
config = config.nixpkgs.config;
|
config = config.nixpkgs.config;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/197325#issuecomment-1579420085
|
||||||
|
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.my.allowUnfreePackages;
|
||||||
};
|
};
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
|
|
Loading…
Reference in a new issue