feat: sydpkgs overlay
This commit is contained in:
12
modules/home/sydpkgs.nix
Normal file
12
modules/home/sydpkgs.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
|
||||
let cfg = config.sydnix.sydpkgs;
|
||||
in {
|
||||
options.sydnix.sydpkgs = {
|
||||
overlay.enable = lib.mkEnableOption "the Sydpkgs overlay";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.overlay.enable {
|
||||
nixpkgs.overlays = [ inputs.sydpkgs.overlays.default ];
|
||||
};
|
||||
}
|
||||
12
modules/nixos/sydpkgs.nix
Normal file
12
modules/nixos/sydpkgs.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, pkgs, sydpkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.sydpkgs;
|
||||
in {
|
||||
options.sydnix.sydpkgs = {
|
||||
overlay.enable = lib.mkEnableOption "the Sydpkgs overlay";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.overlay.enable {
|
||||
nixpkgs.overlays = [ sydpkgs.overlays.default ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user