nixpkgs-config.nix: share config.nix for nix-* and home-manager
authorTomas Zeman <tomas@functionals.cz>
Fri, 10 Jul 2020 16:35:43 +0200
changeset 14 30c184da8c38
parent 13 21b163f36071
child 15 070c8c2a6a62
nixpkgs-config.nix: share config.nix for nix-* and home-manager
.hgignore
home.nix
nixpkgs-config.nix
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Fri Jul 10 16:35:43 2020 +0200
@@ -0,0 +1,2 @@
+syntax: glob
+config.nix
--- a/home.nix	Fri Jun 26 12:01:11 2020 +0200
+++ b/home.nix	Fri Jul 10 16:35:43 2020 +0200
@@ -29,6 +29,8 @@
     pkgs.ghostscript
   ];
 
+  nixpkgs.config = import ./nixpkgs-config.nix;
+
   programs.bash = {
     enable = true;
     enableAutojump = true;
@@ -63,6 +65,8 @@
     verbose = true;
   };
 
+  xdg.configFile."nixpkgs/config.nix".source = ./nixpkgs-config.nix;
+
   # This value determines the Home Manager release that your
   # configuration is compatible with. This helps avoid breakage
   # when a new Home Manager release introduces backwards
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nixpkgs-config.nix	Fri Jul 10 16:35:43 2020 +0200
@@ -0,0 +1,9 @@
+{
+  allowUnfree = true;
+  permittedInsecurePackages = [
+    "openssl-1.0.2u"
+    "postgresql-9.3.25"
+  ];
+
+}
+