Archived
0
0
Fork 0

fix nixos-rebuild & home-manager errors

This commit is contained in:
Daryl Ronningen 2023-01-04 00:48:44 -08:00
parent 4b2e515cb2
commit 2dff1f5da7
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -71,13 +71,15 @@
};
};
};
pkgs = import nixpkgs {
overlays = [nur.overlay (utils.lib.genPkgOverlay neovim "neovim")];
};
pkgsForSystem = system:
import nixpkgs {
overlays = [nur.overlay (utils.lib.genPkgOverlay neovim "neovim")];
inherit system;
};
in {
nixosConfigurations = {
skynet = nixpkgs.lib.nixosSystem {
inherit pkgs;
pkgs = pkgsForSystem "x86_64-linux";
system = "x86_64-linux";
modules =
modules.nixos.common
@ -93,7 +95,7 @@
};
wsl = nixpkgs.lib.nixosSystem {
inherit pkgs;
pkgs = pkgsForSystem "x86_64-linux";
system = "x86_64-linux";
modules = [
nixos-wsl.nixosModules.wsl
@ -105,15 +107,24 @@
};
homeConfigurations.relms = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = modules.home.common ++ modules.home.dev ++ modules.home.gui;
pkgs = pkgsForSystem "x86_64-linux";
modules =
modules.home.common
++ modules.home.dev
++ modules.home.gui
++ [
{
home = {
homeDirectory = "/home/relms";
username = "relms";
};
}
];
};
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
inherit pkgs;
pkgs = pkgsForSystem "aarch64-linux";
system = "aarch64-linux";
modules = [./devices/pixel/base.nix];
};