My NixOS flake made with snowfall.
-
Apollo: Homeserver
- Running the following services on a tailscale network
- Audiobookshelf
- Calibre / Calibre Web
- Firefly III
- Immich
- Jellyfin
- Nextcloud
- Mealie
- Wanderer
- Running the following services on a tailscale network
-
Ares: Workstation (AMD Ryzen 7 5800X, NVIDIA RTX 3070)
- Dual boot with Windows
-
Athena: Lenovo Yoga Pro 7X Slim Nvidia
- Used for development
- Enable flakes in nixos. By adding the following lines to
/etc/nixos/config.nix
.
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
};
- Add git to your nixos configuration.
systemPackages = with pkgs; [
git
];
- Rebuild nixos by running
sudo nixos-rebuild switch
. - Clone repo
git clone [email protected]:wueestry/nixos-config.git
. Enter into repo by runningcd nixos-config
. - Copy own hardware file into repo
sudo cp /etc/nixos/hardware-configuration.nix ~/nixos-config/systems/{computer architecture}/{desired config}/hardware.nix
. - Build flakes by running
sudo nixos-rebuild boot --flake .#{desired config}
. - Optional: Update nixpkgs by running
nix flake update
and then rebuild system as described in step 6.
- Add your own nixos config into the directory
systems/{computer architecture}/{config name}/default.nix
. - Add your hardware config to
systems/{computer architecture}/{config name}/hardware.nix
. - Add your home manager config into the directory
homes/{computer architecture}/{user}@{config name}
. - Optional: Add specific nixos-hardware package to the
flake.nix
file. Similar to:
systems.hosts.athena.modules = with inputs; [
nixos-hardware.nixosModules.lenovo-yoga-7-14ARH7-nvidia
];
After a fresh install, the user home directory is completly empty. In order to generate the Documents, Downloads, eg. subfolders run
nix-shell -p xdg-user-dirs
xdg-user-dirs-update
Thanks to the work of the following projects which inspired this configuration: