diff options
author | sinanmohd <sinan@firemail.cc> | 2023-07-18 08:11:52 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-07-18 15:12:56 +0530 |
commit | 4040aab8d1c99bf4dddbd39fb62778bac8b59606 (patch) | |
tree | e7c1866ec5956f39e0a3b0b36195c8f69dc379a7 /configuration.nix | |
parent | 3cef7beb464ffc10f45b3126119adedf807998aa (diff) |
overlays: initial commit
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 21 |
1 files changed, 19 insertions, 2 deletions
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 = '' |