Repository containing my dotfiles
configuration, managed via home manager. The original intention is not to configure a full NixOS system, but my daily machine, which runs Ubuntu. In the future I may try to use NixOS as daily computer system.
- git
- curl
sudo apt install --yes git curl
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
After installing nix
reopen the terminal for reloading the PATH
variable.
Create a symbolic link called home.nix
to the machine it is installed.
ln -s juno.nix home.nix
Create a symbolic link from the ~/.config
folder to this repository.
ln -s ~/Projects/nix-conf ~/.config/home-manager
Then activate the configuration with
home-manager switch
For using the Fish shell managed by Home Manager together with the other goodies, setup your favorite terminal emulator to start the following command:
/home/user/.nix-profile/bin/tmux new-session -A
Cheatsheet with key bindings for tmux and neovim.
Despite what says here or here, the only way I found to make it work is letting it fail the first time and then use the Hash calculated by Nix.
{
name = "fish-autovenv";
src = pkgs.fetchFromGitHub {
owner = "mmartinortiz";
repo = "fish-autovenv";
rev = "1.0.0";
sha256 = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
}
error: hash mismatch in fixed-output derivation '/nix/store/yldav2adi4kr8ypfx0swsvgvzsc6wkfk-source.drv':
specified: sha256-zBB5Ow4FfzhM8QXRT0E174ZHessf1OU57K8co+ReuFw=
got: sha256-f6ib/XcgnKGYbhfZca0PMScbHgZP2nMqF5hEbyG0Afo= # Use this one.