diff options
author | Minijackson <minijackson@riseup.net> | 2021-06-18 12:09:38 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-06-18 12:09:38 +0200 |
commit | 1212373b88e7a4f5449f8d8e16124bb75a841a46 (patch) | |
tree | 4f94fdb68dfeb68fc3a38d7bf4ddd6f55f38ea14 /common | |
parent | b378e341a0296b69dbb01714a6710c4eca7c4f55 (diff) | |
download | nixos-config-reborn-1212373b88e7a4f5449f8d8e16124bb75a841a46.tar.gz nixos-config-reborn-1212373b88e7a4f5449f8d8e16124bb75a841a46.zip |
firefox: re-enable betterttv, fix unfree packages in hydra
Diffstat (limited to 'common')
-rw-r--r-- | common/default.nix | 9 | ||||
-rw-r--r-- | common/unfree.nix | 15 |
2 files changed, 22 insertions, 2 deletions
diff --git a/common/default.nix b/common/default.nix index c2caaaf..b94f0dc 100644 --- a/common/default.nix +++ b/common/default.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | inputs: | 1 | inputs: |
2 | 2 | ||
3 | { config, ... }: | 3 | { config, lib, ... }: |
4 | 4 | ||
5 | { | 5 | { |
6 | imports = [ | 6 | imports = [ |
@@ -10,13 +10,18 @@ inputs: | |||
10 | (import ./ssh.nix inputs) | 10 | (import ./ssh.nix inputs) |
11 | (import ./theme.nix inputs) | 11 | (import ./theme.nix inputs) |
12 | (import ./tinc.nix inputs) | 12 | (import ./tinc.nix inputs) |
13 | (import ./unfree.nix inputs) | ||
13 | (import ./vim.nix inputs) | 14 | (import ./vim.nix inputs) |
14 | (import ./zram.nix inputs) | 15 | (import ./zram.nix inputs) |
15 | ]; | 16 | ]; |
16 | 17 | ||
17 | nixpkgs.overlays = [ | 18 | nixpkgs.overlays = [ |
18 | (final: prev: { | 19 | (final: prev: { |
19 | unstable = inputs.nixpkgs-unstable.legacyPackages.${config.nixpkgs.system}; | 20 | # Inheriting config allows adding unfree package using the option |
21 | # nixpkgs.config.allowUnfreePredicate | ||
22 | unstable = import inputs.nixpkgs-unstable { | ||
23 | inherit (config.nixpkgs) system config; | ||
24 | }; | ||
20 | }) | 25 | }) |
21 | inputs.nur.overlay | 26 | inputs.nur.overlay |
22 | ]; | 27 | ]; |
diff --git a/common/unfree.nix b/common/unfree.nix new file mode 100644 index 0000000..b07b151 --- /dev/null +++ b/common/unfree.nix | |||
@@ -0,0 +1,15 @@ | |||
1 | inputs: | ||
2 | |||
3 | { lib, ... }: | ||
4 | |||
5 | { | ||
6 | # List accepted unfree packages in a common place, since somehow the merge | ||
7 | # operation of this attribute is broken | ||
8 | nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | ||
9 | "betterttv" | ||
10 | |||
11 | "steam" | ||
12 | "steam-original" | ||
13 | "steam-runtime" | ||
14 | ]; | ||
15 | } | ||