1
0
Fork 0
No description
  • Shell 47.6%
  • Nix 38.3%
  • Lua 12.4%
  • Vim Script 1.7%
Find a file
2026-02-12 09:02:09 +01:00
.dotter disable snap 2025-03-12 11:31:25 +01:00
ansible add more aliases 2024-10-05 12:29:02 +02:00
astronvim
bat/themes
fish/conf.d add multiple envs for packages 2026-01-05 15:15:02 +01:00
halig
kitty
nix wip 2026-02-12 09:02:09 +01:00
utils disable snap 2025-03-12 11:31:25 +01:00
v2 wip 2026-02-12 09:02:09 +01:00
v22 wip 2026-02-12 09:02:09 +01:00
.gitignore
7tv_settings_TWITCH-3_6_2025.json disable snap 2025-03-12 11:31:25 +01:00
allowed_signers
atuin.toml add atuin config 2024-09-13 13:06:19 +02:00
freetds.conf
gamemode.ini
gitconfig
greenclip.toml
ideavim
k9smocha.yaml
mangohud.conf
README.md wip 2026-02-12 09:02:09 +01:00
resticprofile.schema.json add resticprofile 2024-12-19 17:24:30 +01:00
resticprofile.toml add flake 2024-12-29 15:02:11 +01:00
sshconfig update flake 2025-06-26 12:57:36 +02:00
timewarrior.cfg
tmux.conf
topgrade.toml update flake 2025-01-31 10:37:03 +01:00
vimrc update arch and debian package list 2024-09-16 09:01:56 +02:00

dots

This repository contains my dotfiles and a Nix flake that supports multiple hosts (machines) with a shared base and per-host configuration.

Nix Configuration

The Nix configuration is located in the nix/ directory. It uses a shared Home Manager configuration for all hosts, while allowing host-specific NixOS or package settings.

Structure

  • nix/flake.nix: Entry point, defines hosts and helpers.
  • nix/home/: Shared Home Manager configuration (packages, shell, GNOME settings).
  • nix/hosts/: Host-specific NixOS configurations.

Adding New Hosts

NixOS Hosts

  1. Create a directory in nix/hosts/<hostname>/.
  2. Add configuration.nix, hardware-configuration.nix, and packages.nix there.
  3. Add the host to nixosConfigurations in nix/flake.nix:
    limgrave = mkNixos "limgrave" [
      nix-snapd.nixosModules.default
      autofirma-nix.nixosModules.default
    ];
    

Non-NixOS Hosts (e.g., Ubuntu)

  1. Add the host to homeConfigurations in nix/flake.nix:
    "catalin@ubuntu" = mkHome "ubuntu" "catalin" [ ];
    
    Note: mkHome takes hostname, username, and additional modules.

Building and Applying

NixOS

Run from the root of the repository:

sudo nixos-rebuild switch --flake .#hostname

Non-NixOS (Home Manager)

Run from the root of the repository:

home-manager switch --flake ./nix#user@hostname