Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: nix run home-manager/master -- init --switch does not create flake.nix #6702

Open
2 tasks done
kamransoomro84 opened this issue Mar 25, 2025 · 1 comment
Open
2 tasks done
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@kamransoomro84
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

I am following the Home Manager standalone install instructions using flakes on Linux. I installed nix using the determinate installer. After running nix run home-manager/master -- init --switch, I have the ~/.config/home-manager directory with a home.nix file, but no flake.nix. I'm not sure if I'm doing anything wrong?

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.1.0-25-amd64, Debian GNU/Linux, 12 (bookworm), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Determinate Nix 3.0.0) 2.26.3`
 - nixpkgs: `/nix/store/mphw46pqiq3x60wq22zna385dw56h2ib-source`
@kamransoomro84 kamransoomro84 added bug triage Issues or feature request that have not been triaged yet labels Mar 25, 2025
@sechmann
Copy link

sechmann commented Mar 25, 2025

I'm experiencing the same issue, i see we both use Determinate Nix.
no flake.nix generated (seems like it's not even attempting to generate it)

home.nix

{ config, pkgs, ... }:

{
  home.username = "vegar";
  home.homeDirectory = "/home/vegar";
  home.stateVersion = "24.11";
  programs.home-manager.enable = true;
}
$ nix run home-manager/master -- init --switch
The file /home/vegar/.config/home-manager/home.nix already exists, leaving it unchanged...

Creating initial Home Manager generation...

/nix/store/sc647xgz3vnnyr8m6ml6g7b98jdgb8bw-home-manager-generation
Starting Home Manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Creating new profile generation
Activating installPackages
installing 'home-manager-path'
Activating linkGeneration
Creating home file links in /home/vegar
Activating onFilesChange
Activating reloadSystemd

There are 192 unread and relevant news items.
Read them by running the command "home-manager news".

All done! The home-manager tool should now be installed and you can edit

    /home/vegar/.config/home-manager/home.nix

to configure Home Manager. Run 'man home-configuration.nix' to
see all available options.

For reference i first installed home-manager using the standalone method with the channel method. Later i removed that and tried to install it with flakes.

System information

 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.0-53-generic, Ubuntu, 24.04.2 LTS (Noble Numbat), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Determinate Nix 3.0.0) 2.26.3`
 - nixpkgs: `/nix/store/mphw46pqiq3x60wq22zna385dw56h2ib-source`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

5 participants