Closed aleeusgr closed 1 year ago
Adding a flake changed my channel to unstable.
I just scrolled through it, and the environment.systemPackages contains a lot of stuff thats better suited in a project based shell, rather than installed globally
Hello! How do I setup my home manager in a flake?
I got flake.nix
from here
and home.nix
here
I get an error:
09:01 $ sudo nixos-rebuild switch --flake .
error: flake 'git+file:///home/alex/workshop/nix-things' does not provide attribute 'packages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild', 'legacyPackages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild' or 'nixosConfigurations."nixos".config.system.build.nixos-rebuild'
What should I change? Thank you
My code: https://github.com/aleeusgr/nix-things/tree/home
Nobbz:
The flake has the "hostname" system as its output, though your machines hostname is "nixos", so you have to change one
I want to have functionality similar to this repo: https://github.com/harryprayiv/nix-config but I want to build it bottom up.
needed to change https://github.com/aleeusgr/nix-things/blob/b5ed3889f1bb15217e7106b8e77c5f1b628a6461/flake.nix#L9
Separate configs into system, home and per-project. https://nixos.wiki/wiki/Home_Manager https://gvolpe.com/blog/nix-flakes/
Set Up GitHub CI