First rewrite for the home-manager unstable overlay

This commit is contained in:
Andreas Zweili 2023-06-28 09:32:13 +02:00
parent 42e9b468c0
commit 9f83f97492
1 changed files with 18 additions and 6 deletions

View File

@ -33,6 +33,23 @@
mksdImage = host: (self.nixosConfigurations.${host}.extendModules {
modules = [ "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" ];
}).config.system.build.sdImage;
# required for home-manager only setup {
overlay-unstable = final: prev: {
unstable = import inputs.nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
pkgs = import inputs.nixpkgs {
system = "x86_64-linux";
config = {
allowUnfree = true;
};
overlays = [
overlay-unstable
];
};
# }
in
{
images = {
@ -114,12 +131,7 @@
};
homeConfigurations = {
"zweili@co-ws-con4" = home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs {
system = "x86_64-linux";
config = {
allowUnfree = true;
};
};
inherit pkgs;
modules = [
"${inputs.self}/home-manager/profiles/work-wsl.nix"
];