I havent used nixos much but I dont understand why people use home manager instead of just the configuration.nix.

Is the only reason using it to not have system wide package installed? Does it have other usecases too?

  • kuerbiskernoel@feddit.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    38 minutes ago

    Home manager also has a module for most popular software so you can directly configure them in nix, like

    programs.yazi = { enable = true;

    config = { Some stuff };

    Also stuff like enablefishintegration = true; };

    Often more convenient than writing dotfiles and referring to them.

  • nous@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 hours ago

    It does things the system nix cannot: manage your users config. I use it instead of a dotfile manager as it combines that with being able to install packages.

  • kybean@pawb.social
    link
    fedilink
    English
    arrow-up
    6
    ·
    7 hours ago

    I don’t have to use sudo (and thus type in my password) when I want to install programs/modify app configs when I use home-manager bc it’s per-user. The system config modifies the entire system even if the only changes affect a single user, so will always require using sudo to make the changes

  • [object Object]@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    ·
    7 hours ago

    You can use it in other Linux distros that has nix package support. Also user level isolation, and you know stuff you’re installing aren’t going to change something deep in the system.

  • Nibodhika@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 hours ago

    My work laptop is Ubuntu, I can’t change the OS but I can have the exact same user packages and config across all of my systems with it.

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 hours ago

    My main PC uses Mint instead of NixOS. Likewise, when I was working those PCs used Mint/Ubuntu. It’s nice being able to have my config on those systems.