Configuration files for NixOS + Home Manager.
Find a file
jasmine a6fa8866ac
feat(fuchsia): implement backup strategy with explicit home paths
Add snapper and borgbackup for fuchsia home directory backups:

Snapper Configuration:
- Hourly snapshots of /home/sajenim
- Retention: 24 hourly, 7 daily, 4 weekly, 12 monthly
- Stored in nested .snapshots subvolume

Borgbackup Onsite:
- Backup to viridian over SSH (local network)
- Target: ssh://viridian/srv/borg-repo/fuchsia
- Hourly backups, unencrypted, deduplicated
- Same retention as snapper

Borgbackup Offsite:
- Backup to borgbase (internet)
- Target: li9kg944@li9kg944.repo.borgbase.com:repo
- Daily backups, encrypted (repokey-blake2), deduplicated
- Retention: 7 daily, 4 weekly, 12 monthly

Explicit Home Paths (valuable user data only):
- Documents, Pictures, Videos, Music, Downloads, Academics, Notes
- Dotfiles: .ssh, .gnupg

System Persist Data:
- SSH host keys, machine-id, nixos state
- Bluetooth, NetworkManager configurations

Intentionally Excluded:
- .config (managed declaratively via home-manager)
- .repositories (cloneable from GitHub)
- .cache and build artifacts

Treats viridian as central backup server, maintaining 3-2-1 strategy
(3 copies, 2 locations, 1 offsite).

chore(viridian): remove unused inputs parameter from borgbackup offsite
2025-10-07 19:14:11 +08:00
assets rotate monitor, bump xmonad 2025-06-19 09:48:43 +08:00
home-manager/sajenim refactor(desktop): remove discord import 2025-10-05 16:45:25 +08:00
modules fmt: alejandra 2024-08-08 09:02:42 +08:00
nixos feat(fuchsia): implement backup strategy with explicit home paths 2025-10-07 19:14:11 +08:00
overlays chore: fix unfree 2025-06-19 09:08:29 +08:00
pkgs chore: migrate xmonad + xmobar to there own flake 2025-02-23 18:24:25 +08:00
.envrc setup just 2025-03-23 20:41:04 +08:00
.gitignore Update .gitignore 2024-07-26 08:49:06 +08:00
.mcp.json Revert "chore: remove .mcp.json to enable on-demand only" 2025-10-04 16:17:35 +08:00
CLAUDE.md refactor(wezterm): remove unused pane rotation keybinds 2025-10-05 10:53:54 +08:00
flake.lock chore: update flake inputs 2025-10-05 16:42:05 +08:00
flake.nix chore: add claude-code flake input 2025-09-30 16:11:13 +08:00
justfile setup just 2025-03-23 20:41:04 +08:00
LICENSE Create LICENSE 2023-07-07 23:52:30 +00:00
README.md Update README.md 2024-08-05 09:34:17 +08:00
shell.nix setup just 2025-03-23 20:41:04 +08:00

NixOS & Home-Manager Configuration

My NixOS and Home-Manager config files. Based upon Misterio77's starter configs.

This repo is often neglected and doesn't necesarrily follow best practices.
I recommend only using this repo for inspiration and instead use this boilerplate

Preview

screenshot

Features

  • Opt-in persistance with ephermeral btrfs.
  • Secrets managed with agenix and rekeyed with yubikey.
  • Standalone nixvim configuration for neovim.
  • Custom haskell packages for xmonad & xmobar.
  • Declarative minecraft server with nix-minecraft.
  • Borgbackup of mutable service/container data.
  • Media server with typical *arr stack.
  • FQDN with private DNS for all internal services.
  • Crowdsecurity for all public services.

Installation

# Prepare disks, create an EFI System partition and Linux Filesystem partition
fdisk /dev/nvme0n1

# Create our filesystems
mkfs.fat -F32 -n ESP /dev/nvme0n1p1
mkfs.btrfs -L ${hostname} /dev/nvme0n1p2
    
# Create our subvolumes
mount /dev/nvme0n1p2 /mnt/btrfs
btrfs subvolume create /mnt/btrfs/{root,nix,persist,swap}
umount /mnt/btrfs

# Prepare for installation
mount -o compress=zstd,subvol={root,nix,persist,swap} /dev/nvme0n1p2 /mnt/{nix,persist,swap}
mount /dev/nvme0n1p1 /mnt/boot

# Clone the configuration files and enter repo
git clone https://github.com/sajenim/dotfiles.nix.git && cd dotfiles.nix

# Install our system configuration
nixos-install --flake .#hostname

FAQ

  • What is nix?
    Nix is a tool that takes a unique approach to package management and system configuration.
  • Nix benefits
    Nix is reproducible, declarative and reliable.
  • Why flakes?
    Flakes allow you to specify your code's dependencies (e.g. remote Git repositories) in a declarative way, simply by listing them inside a flake.nix file.

Credit

Boilerplate

Other Configs