My NixOS configs.
Find a file
2024-11-12 18:03:28 -05:00
hosts Rename some hostnames 2024-11-12 04:25:51 -05:00
modules Generalize and move configs 2024-11-12 18:03:28 -05:00
overlays Alright this ain't finished cause of the home stuff but I don't wanna lose what I've done. Impermanence, disko, lots of changes. TODO: add modularity to home. 2024-11-02 17:19:40 -04:00
variables Rename some hostnames 2024-11-12 04:25:51 -05:00
.gitattributes What a clusterfuck 2024-10-09 03:36:08 -04:00
.gitignore Remove unnecessary imports and upgrade to Nvidia 565 2024-10-28 17:06:52 -04:00
flake.lock Remove qtbittorrent because of an RCE bug, prepare more for enable by module for server 2024-11-08 16:57:56 -05:00
flake.nix Rename some hostnames 2024-11-12 04:25:51 -05:00
LICENSE Initial commit 2024-07-30 08:49:49 -04:00
local.key.asc Please. 2024-08-25 00:07:41 -04:00
preview.png Update preview image 2024-09-13 02:10:21 -04:00
README.md Alright this ain't finished cause of the home stuff but I don't wanna lose what I've done. Impermanence, disko, lots of changes. TODO: add modularity to home. 2024-11-02 17:19:40 -04:00

Jimbo's Nix Systems

Thanks for taking a look at my Nix* flake! While this is primarily organized for my own use, you may find each individual service or config useful to read, reference, learn from, and adapt for your own systems.

Installation

Installing this flake is best done from an existing system. A minimal install is fastest, but is up to you. After installing NixOS, backup your hardware-config.nix file, and adapt it to fit the format of /hosts, adjusting for your specific system.

An initial install will can be done with nixos-rebuild switch --flake /etc/nixos/.#host, where host is a hostname defined in this flake. You may also have to enable "experimental" features with a flag, such as nix-command and flakes.

Home-Manager is handled separately from the system, despite being in the same folder. A rebuild of a user's home is done with home-manager switch --flake /etc/nixos/.#user@host, as defined under homeConfigurations in the flake.

Usage

My config uses these tools:
Sway - Window manager / Desktop
ZSH - Primary shell
Foot - Terminal emulator
Rofi - App launcher and menu system

I have defined shell aliases in ZSH for rebuilding different parts of Nix, they are as follows:
flakedate - Update the flake.lock, which renews the sources of nixpkgs. This is needed to update the system.
sysswitch - Switch the system profile.
homeswitch = Switch the user's home-manager profile.
nixswitch = Switch both user and system profile.
nixdate = Same as before, but updating flake.nix before doing so. This is essentially a full system update.

My server's config heavily references a git-crypt protected secrets file. These will have to be adapted and rewritten if anyone is to use my config directly.
For my use, unlocking secrets can be done with this command:
gpg --pinentry-mode loopback --decrypt local.key.asc | git-crypt unlock -

Credits

Without the help of heavy inspiration, I would not have been able to learn and get up and running nearly as quickly. My most heavily borrowed configs are as follows:
CloudyChris' nix-starter-configs fork, the very initial base of my conversion to flakes.
WillPower3309's personal flake for being a pleasure in the SwayFX Discord and having a really nice flake.nix file I borrowed from.
Jules Sommer's minimal flake for giving me a good basis for writing individual files and repeatedly helping me throughout the entire process.

Made with love ❤️

image