Skip to content

WJehee/.dotfiles-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS configuration

Thanks to:

Installing

Using my custom installer image

  1. Become root sudo su
  2. Create the password for full disk encryption: echo "MY_PASSWORD" > /tmp/secret.key
  3. disko-format /PATH/TO/DISK
  4. install-flake HOSTNAME
  5. Set root passwd after being prompted

After the install has finished, do the following:

nixos-enter --root /mnt
passwd USERNAME
exit
reboot

Templates

Creating a new project is easy with templates:

  1. Create a folder with the name of your project
  2. Initialize your project with a flake.nix using one of the templates in templates/default.nix using the following command:
nix flake init -t github:wjehee/.dotfiles-nix#TEMPLATE
  1. Follow the welcome instructions

Currently available templates

  • Rust
  • Zig
  • Elixir
  • Python
  • Gleam

Installing custom packages

You can build any packages in pkgs/, by running nix build .#PACKAGE_NAME
You can install it into your profile by running nix profile .#PACKAGE_NAME

Server

These files also include the configuration for my personal web server, which can be found under nixos/rusty-server/.

Notes

Old version of rebuild command, this should work but there is some doas stuff: #31

doas nixos-rebuild switch --flake ".#{{hostname}}" &>rebuild.log || grep -C 2 --color error rebuild.log

About

My NixOS configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published