1
Fork 0
Modular NixOS configuration.
Find a file
2025-01-18 01:59:23 +01:00
hosts stuff 2025-01-16 21:37:52 +01:00
lib More configuration progression 2025-01-11 02:00:28 +01:00
modules moar progress 2025-01-15 00:27:29 +01:00
.gitattributes kde: Add sddm background and persist more stuff 2024-08-28 22:41:29 +02:00
.gitignore Moar progress 2025-01-12 02:57:46 +01:00
flake.lock More configuration progression 2025-01-11 02:00:28 +01:00
flake.nix More configuration progression 2025-01-11 02:00:28 +01:00
install.sh stuff 2025-01-18 01:59:23 +01:00
README.md stuff 2025-01-18 01:59:23 +01:00
shell.nix moar progress 2025-01-15 00:27:29 +01:00

dotnix

Prerequisites

You need to prepare a couple things before installation due to the way secrets are managed.

Prepare secrets repo

  1. Ensure all required dependencies are present
# If you're already using Nix you can simply run this
nix-shell -p sops age
  1. Initialize your secrets repo. You can do this anywhere on your system except this repository.
mkdir secrets
cd secrets
git init
  1. Create your gitignore. You want this to make sure that you do not accidentally push your private key.
echo "keys.txt" > .gitignore
  1. Generate your private key.
age-keygen -o ./keys.txt
  1. Create your sops configuration file
cat <<EOF > .sops.yaml
keys:
  - &master $(age-keygen -y ./keys.txt)
creation_rules:
  - path_regex: .*\.(yaml|json|env|ini)$
    key_groups:
    - age:
      - *master
EOF

?. Update the submodule to use your repo

git submodule set-url -- secrets <ssh uri to your repository>