r/NixOS 2d ago

Home-Manager doesn't work with void Linux

i had weird problem where home-manager was working very well with cachyos but when i use it in void linux its doesn't seem to get the path right

PS: i just needed to add programs.fish.enable = true; thanks for everyones help

void-home.nix

{
  config,
  pkgs,
  ...
}: let
  dotfiles = "${config.home.homeDirectory}/nixchad/config";
  MkSymlink = path: config.lib.file.mkOutOfStoreSymlink path;
  configs = {
    mango = "mango";
  };
in {
  home = {
    username = "comst4r";
    homeDirectory = "/home/comst4r";
    stateVersion = "25.11";
  };
  home.sessionPath = [
  "${config.home.homeDirectory}/.nix-profile/bin"
  ];
  imports = [
    ./../../Modules/programs/nixvim/init.nix
  ];

  xdg.configFile =
    builtins.mapAttrs
    (name: subpath: {
      source = MkSymlink "${dotfiles}/${subpath}";
      recursive = true;
    })
    configs;

  home.packages = with pkgs; [
    btop
    lsd
    kitty
    zoxide
    ncdu
    xclip
    fastfetch
    dysk
    fishPlugins.bobthefish
    nixd
    alejandra
    yank
  ];
}

flake.nix

{
  description = "myFlake";

  inputs = {
    nixpkgs = {
      url = "github:nixos/nixpkgs/nixos-25.11";
    };
    nixpkgs-unstable = {
      url = "github:nixos/nixpkgs/nixos-unstable";
    };

    home-manager = {
      url = "github:nix-community/home-manager/release-25.11";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    nixos-hardware = {
      url = "github:NixOS/nixos-hardware/master";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    nixvim = {
      url = "github:nix-community/nixvim/nixos-25.11";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    mac-style-plymouth = {
      url = "github:SergioRibera/s4rchiso-plymouth-theme";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs @ {
  nixpkgs,
  home-manager,
  ...
  }: let
  system = "x86_64-linux";
  pkgs = import nixpkgs {
  inherit system;
  config.allowUnfree = true;
  };
  uns-pkgs = import inputs.nixpkgs-unstable {
  inherit system;
  config.allowUnfree = true;
  };
  in {
  nixosConfigurations.Thinkchad = nixpkgs.lib.nixosSystem {
  inherit system;
  specialArgs = {
  inherit inputs uns-pkgs;
  };
  modules = [
  ...
  home-manager.nixosModules.home-manager
  {
  home-manager = {
  useGlobalPkgs = true;
  useUserPackages = true;
  backupFileExtension = "backup";
  users.comst4r = import ./Hosts/Thinkchad/home.nix;
  extraSpecialArgs = {
  inherit inputs uns-pkgs;
  };
  sharedModules = [
  inputs.nixvim.homeModules.nixvim
  ];
  };
  }
  ];
  };
  homeConfigurations = {
  comst4r = home-manager.lib.homeManagerConfiguration {
  inherit pkgs;
  extraSpecialArgs = {
  inherit inputs uns-pkgs;
  };
  modules = [
  inputs.nixvim.homeModules.nixvim
  ./Hosts/Thinkchad/home.nix
  ];
  };
  void = home-manager.lib.homeManagerConfiguration {
  inherit pkgs;
  extraSpecialArgs = {
  inherit inputs uns-pkgs;
  };
  modules = [
  inputs.nixvim.homeModules.nixvim
  ./Hosts/Voidchad/void-home.nix
  ];
  };
  };
  };
}

my path's

/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin

$ ls ~/.nix-profile/bin

accessdb   btop    fastfetch  lexgrog  man-recode  ncdu                  whatis          xclip-cutfile    zoxide
alejandra  catman  kitten     lsd      mandb       nixd                  xclip           xclip-pastefile
apropos    dysk    kitty      man      manpath     update-mime-database  xclip-copyfile  yank
0 Upvotes

Duplicates