Skip to content

Kieran's opinionated (and probably slightly dumb) nix config

Notifications You must be signed in to change notification settings

taciturnaxolotl/dots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kieran's Dots

spotify with cava next to it

Caution

These dots are highly prone to change / breakage. I am not a nix os expert (this is my first time touching nix), so I'm not sure if this will work or not. I'm just trying to get my dots up on github. If you have any suggestions, please let me know.

The layout

/etc/nixos
├── home-manager - all the config's that use home manager and stored centraly here
│   ├── app - any apps that have home manager configs like neovim get a file here
│   ├── dots - any config files that need to be symlinked go here eg my hyprland config
│   ├── machines - the different machines by hostname
│   │   └── moonlark - my framework laptop
│   └── wm - window manager config; honestly it could probly be moved to app/hyprland
│       └── hyprland - hyprland config
├── moonlark - the files pertaining to my moonlark machine that aren't home manager related
└── secrets - any secrets that are encrypted with agenix go here

10 directories

Installation

I have absolutely no idea I kinda understand now?

  1. Install NixOS via the official guide
  2. sudo -i
  3. Enable git with sed -i 's/^{$/{\n programs.git.enable = true;/' /etc/nixos/configuration.nix and then run nixos-rebuild switch
  4. Download the disk config with curl https://github.com/kcoderhtml/dots/raw/master/moonlark/disk-config.nix -o /tmp/disk-config.nix
  5. Run disko with nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/disk-config.nix
  6. Mount disk with mount | grep /mnt and then cd /mnt/etc/nixos
  7. Clone this repo to your /mnt/etc/nixos folder with git clone https://github.com/kcoderhtml/dots.git .
  8. Add your ssh private key to /mtn/etc/ssh/id_rsa
  9. install the flake: nixos-install --flake .#moonlark --no-root-passwd
  10. Once it finishes run nix install and then reboot
nixos-install
reboot
  1. Pray to the nix gods that it works 🙏
  2. If it worked then you should be able to login with the user kierank and the password lolzthisaintsecure!
  3. Change the password with passwd kierank
  4. Move the config to your local directory with mkdir ~/etc; sudo mv /etc/nixos ~/etc
  5. Link the config back to /etc/nixos with sudo ln -s ~/etc/nixos /etc
  6. Change the config permissions: sudo chown -R $(id -un):users ~/etc/nixos, sudo chown kierank -R ~/etc/nixos, and sudo chown kierank -R ~/etc/nixos/.*
  7. Setup the fingerprint reader with sudo fprintd-enroll -f right-index-finger kierank and then verify it worked with sudo fprintd-verify kierank (you may need to swipe your finger across the fingerprint sensor instead of simply laying it there)

Screenshots

I've stuck the rest of the screenshots in a spoiler to preserve space

the github page of this repo nautilus file manager neofetch

Credits

Thanks a bunch to the following people for their dots, configs, and general inspiration which i've shamelessly stolen from:

About

Kieran's opinionated (and probably slightly dumb) nix config

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project