Skip to content

siphc/nixos-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to replicate the system configuration starting from a fresh NixOS installation:

  1. install git: sudo nano /etc/nixos/configuration.nix => sudo nixos-rebuild switch
  2. clone repository: cd ~ ; git clone https://github.com/siphc/nixos-configuration.git (note that you won't have ssh by this stage!)
  3. download source code of required packages (dwm, st, slstatus) and copy configuration files over (TODO: this task is automate-able, so we can write a shell script that accomplishes this)
  4. change users.users.* and "nixos-config=* in nix.nixPath to your own username, of course.
  5. IMPORTANT: change system.stateVersion to your own version AS OF TIME OF INSTALL as described in /etc/nixos/configuration.nix.
  6. nixos-rebuild switch -I nixos-config=/home/[USER]/nixos-configuration/configuration.nix
  7. ensure screenshot scripts function properly: cd ~ ; mkdir -p Pictures/Screenshots
  8. configure lf: ~/nixos-configuration/initsetup.sh
  9. copy .bashrc out of this directory to your $HOME.
  10. fix PATH by symlinking to ./bin from ~/.local/bin
  11. reboot.

Steps to upgrade nixpkgs channels: I don't trust system.autoUpgrade.enable, so we have to do this manually twice a year.

  1. sudo nix-channel --add https://channels.nixos.org/channel-name nixos, change channel-name to a desirable channel, like nixos-25.11 or nixos-unstable.
  2. sudo nixos-rebuild switch --upgrade Both commands have to be ran with sudo to make sure that the channel is correctly set in the configuration file (as channels are set per user). Pretty sure this recompiles firefox like 4 times, so you'll need to wait a bit.

TODO: All three suckless packages can be added as Git submodules... Will get to that the next time I have to reinstall my system.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published