mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
realized I was inheriting nipkgs in my nixosSystems
added ways to use different branches of nixpkgs made unfree packages have to specified switched to nix master branch moved sxhkd from a seperate flake switched spotify and maim versions because both are broken on nixos-unstable right now moved afk-cmds from local to remote added flake-utils for easier devShell decleration switched my mom's laptop to stable branch
This commit is contained in:
parent
0132cde3f7
commit
dc2db4a9bc
45 changed files with 449 additions and 1878 deletions
21
modules/unfree.nix
Normal file
21
modules/unfree.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
_: {
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
allowed = config.nixpkgs.allowedUnfree;
|
||||
in {
|
||||
options.nixpkgs = {
|
||||
allowedUnfree = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.string;
|
||||
default = [];
|
||||
description = ''
|
||||
Allows for unfree packages by their name.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (allowed != []) {nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) allowed;})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue