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