From 80b8038cf49e43ac20f17557a0edd0ab81b25837 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 18 Jul 2023 08:11:52 +0530 Subject: overlays: initial commit --- configuration.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index 1c5601d..2b408a8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, options, ... }: let user = "sinan"; @@ -73,8 +73,25 @@ in ]; }; system.stateVersion = "23.05"; - nix.settings.experimental-features = [ "nix-command" ]; + # nix + nix = { + settings.experimental-features = [ "nix-command" ]; + nixPath = + options.nix.nixPath.default ++ + [ "nixpkgs-overlays=/etc/nixos/overlays/" ] + ; + }; + nixpkgs.overlays = with builtins; + if pathExists ./overlays then + map + (overlay: import ./overlays/${overlay}) + (attrNames (readDir ./overlays)) + else + options.nixpkgs.overlays.default + ; + + # programs programs = { adb.enable = true; bash.promptInit = '' -- cgit v1.2.3