home-manager/home-manager
Kamal Al Marhubi e7eba9cc46
home-manager: refine flake URI lookup
Depending on DHCP settings you might end up with different output from
running `hostname`. Eg, your local hostname is `mylaptop`, and your
home router is configured with a local domain of `.hoome.arpa`. In
this case:

    $ hostname
    mylaptop.home.arpa
    $ hostname -s
    mylaptop

If you then go to cafe which has its router configured with `.lan` as
its local domain. Then, if your DHCP settings accept the local domain
from the router,

    $ hostname
    myalaptop.lan
    $ hostname -s
    mylaptop

With the pre-existing behaviour, if you had a
`"me@mylaptop.home.arpa"` entry in `outputs.homeConfigurations`,
running `home-manager switch` would fail:

    $ home-manager switch
    error: flake 'git+file:///home/me/.config/nixpkgs' does not provide
    attribute 'packages.aarch64-darwin.homeConfigurations."me".activationPackage',
    'legacyPackages.aarch64-darwin.homeConfigurations."me".activationPackage'
    or 'homeConfigurations."me".activationPackage'

After this commit, you can put configuration in a `"me@mylaptop"`
entry in `outputs.homeConfigurations`, and everything will work on
either network.
2022-12-19 15:12:44 +01:00
..
po Translate using Weblate (Dutch) 2022-11-21 16:35:25 +01:00
completion.bash completion.*: add flake-related arguments 2022-02-15 22:47:41 +01:00
completion.fish completion.*: add flake-related arguments 2022-02-15 22:47:41 +01:00
completion.zsh completion.*: add flake-related arguments 2022-02-15 22:47:41 +01:00
default.nix home-manager: use hostname from Nixpkgs 2022-12-05 23:45:07 +01:00
home-manager home-manager: refine flake URI lookup 2022-12-19 15:12:44 +01:00
home-manager.nix format: update and remove exceptions (#3029) 2022-06-16 14:13:06 +02:00
install.nix home-manager: update stable version to 22.11 2022-12-02 11:49:58 +01:00