I have created a basic flake to debug the issue. Based on the HM manual, I should be able to modify NixOS options using osConfig.
However, I’m getting an error: The option `home-manager.users.eva.osConfig’ does not exist.
flake.nix
nixosConfigurations = {
lyra = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.eva = import ./home.nix;
}
];
};
};
home.nix
{ pkgs, config, osConfig, ... }:
{
home.username = "eva";
home.homeDirectory = "/home/eva";
home.stateVersion = "23.05";
programs.home-manager.enable = true;
home.packages = with pkgs; [
nvim
alacritty
];
osConfig.programs.hyprland.enable = true;
}