this is a basic flake definitions containing my basic configuration for my:
- home-manager
- linuxwork: linux machine
- homepi: raspberry pi
- darwin: macos
- Install Nix and then install home-manager. You should be
able to run the
home-manager
program in a shell.
- linux or rapsberry pi:
nix build .#homeConfigurations.<hostname>.activationPackage
- macos: ``` $ nix build .#darwinConfigurations.mbp2023.system $ ./result/sw/bin/darwin-rebuild switch --flake .
# Dotfiles
## Usage
### hm
```shell
$ home-manager switch
$ home-manager switch --flake .#linuxwork
flake activation on linux
nix build .#homeConfigurations.linux.activationPackage
result/activate
update the flake
$ nix flake update
update a single input, exemple nixpkgs-unstable
$ nix flake lock --update-input nixpkgs-unstable
- copy
nixpkgs/modules/iterm/com.googlecode.iterm2.plist
to~/Library/Preferences/com.googlecode.iterm2
nix-env -iA nixpkgs.<package>
nix search nixpkgs <package>
nix flake update
# Apply the updates
sudo nixos-rebuild switch --flake .#??? <== put output
nix repl
> :lf . # load flake
- upgrade and add ghostty