Configuration files for NixOS + Home Manager.
Find a file
♥ Minnie ♥ fe95e44a07
feat: add support for flatpak in NixOS configuration
Added the necessary configurations and dependencies to enable Flatpak in the Fuchsia module.
This includes enabling the xdg portal for default settings and adding the flatpak service.
2025-02-23 18:26:58 +08:00
assets add scrot 2024-01-18 22:58:01 +08:00
home-manager/sajenim chore: migrate xmonad + xmobar to there own flake 2025-02-23 18:24:25 +08:00
modules fmt: alejandra 2024-08-08 09:02:42 +08:00
nixos feat: add support for flatpak in NixOS configuration 2025-02-23 18:26:58 +08:00
overlays fix: lw5xl install process, add: HP Deskjet 2800 2024-09-02 21:28:55 +08:00
pkgs chore: migrate xmonad + xmobar to there own flake 2025-02-23 18:24:25 +08:00
.gitignore Update .gitignore 2024-07-26 08:49:06 +08:00
flake.lock chore: flake.lock 2025-02-18 08:57:47 +08:00
flake.nix chore: migrate xmonad + xmobar to there own flake 2025-02-23 18:24:25 +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

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