Sample nix-based user config for our server.
-
Fork this repo under your own name
-
Setup
sshon the server:mkdir ~/.ssh && chmod 700 ~/.ssh- Copy your
~/.ssh/id_rsa.pubto the server as~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys- Copy your private key:
~/.ssh/id_rsato the server as~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
-
Clone your fork of this repo somewhere on the server, with
sshprotocol -
In
flake.nix, change these based on your user config:# change these yourself homeDirectory = "/home/physicist"; username = "physicist";
-
In
profiles/git/default.nix, change:user.name = "Physicist"; user.email = "lhcb@physics.umd.edu";
-
If you want to install new packages, change
flake.nix:home.packages = with pkgs; [ # ... # define additional packages here # you can search the package names on https://search.nixos.org/packages ];
-
nix develop -c home-switch -
chsh $(which zsh) -
Logout and re-login. Enjoy!