[NixOS] Disable nix overlay for jay-lenovo-wsl

This commit is contained in:
Kat Huang 2023-08-22 06:57:30 +00:00
parent d626450f7d
commit 7395f52529
2 changed files with 36 additions and 27 deletions

View File

@ -4,6 +4,7 @@
../configuration.nix ../configuration.nix
]; ];
imalison.nixOverlay.enable = false;
modules.wsl.enable = true; modules.wsl.enable = true;
networking.hostName = "jay-lenovo-wsl"; networking.hostName = "jay-lenovo-wsl";

View File

@ -1,36 +1,44 @@
{ inputs, specialArgs, config, ... }: { inputs, specialArgs, config, lib, ... }:
{ {
imports = [ imports = [
inputs.home-manager.nixosModule inputs.home-manager.nixosModule
]; ];
home-manager.extraSpecialArgs = {
nixos = { options = {
inherit specialArgs config; imalison.nixOverlay.enable = lib.mkOption {
default = true;
type = lib.types.bool;
}; };
}; };
home-manager.useGlobalPkgs = true; config = {
home-manager.useUserPackages = true; home-manager.extraSpecialArgs = {
nixos = {
nix = { inherit specialArgs config;
extraOptions = '' };
experimental-features = nix-command flakes
'';
registry.nixpkgs.flake = inputs.nixpkgs;
settings = {
keep-outputs = true;
keep-derivations = true;
}; };
channel.enable = false; home-manager.useGlobalPkgs = true;
nixPath = [ home-manager.useUserPackages = true;
"nixpkgs=${inputs.nixpkgs.outPath}"
]; nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
registry.nixpkgs.flake = inputs.nixpkgs;
settings = {
keep-outputs = true;
keep-derivations = true;
};
channel.enable = false;
nixPath = [
"nixpkgs=${inputs.nixpkgs.outPath}"
];
};
nixpkgs.overlays = [
(import ./overlay.nix)
] ++ (if config.imalison.nixOverlay.enable then [ inputs.nix.overlays.default ] else []);
# Allow all the things
nixpkgs.config.allowUnfree = true;
}; };
nixpkgs.overlays = with inputs; [
nix.overlays.default
(import ./overlay.nix)
];
# Allow all the things
nixpkgs.config.allowUnfree = true;
} }