os/shared/home/nix/default.nix

21 lines
374 B
Nix
Raw Normal View History

2023-05-23 17:38:19 +02:00
{ lib, pkgs, config, ... }:
(lib.mkIf (!config.isNixos) {
nix = {
enable = true;
package = pkgs.nix;
settings = {
experimental-features = [ "nix-command" "flakes" ];
};
};
nixpkgs.config = import ./nix-config.nix;
nixpkgs.overlays = [
(import ../../overlay.nix)
];
xdg.configFile."nixpkgs/config.nix".source = ./nix-config.nix;
})