No description
Find a file
Jakob Lechner 0c76c3cd9d
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/0cf4274b5d06325bd16dbf879a30981bc283e58a' (2023-02-19)
  → 'github:nixos/nixpkgs/a3d745e701c337e65ef467d5a9400d9336a303a1' (2023-02-21)
• Updated input 'nixpkgsMaster':
    'github:NixOS/nixpkgs/65a2ffba207a43c13ab8eff94986199bb90048f4' (2023-02-20)
  → 'github:NixOS/nixpkgs/a31c3d5e095427c1b99422028dd2d63db0669ed9' (2023-02-23)
• Updated input 'nur':
    'github:nix-community/NUR/28e77afbd298625bdbf8df61461f947b4d7bd189' (2023-02-20)
  → 'github:nix-community/NUR/6f0cb9a86feecb84a8bd6ebe4690eaba4523255c' (2023-02-23)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/1da7257baa1d6801c45d9d3dedae7ce79c0e6498' (2023-02-19)
  → 'github:Mic92/sops-nix/2c5828439d718a6cddd9a511997d9ac7626a4aff' (2023-02-21)
2023-02-23 19:41:18 +00:00
home-manager Add exception for 22.11 system state version 2023-02-23 19:41:17 +00:00
hosts Enable zram on aluminium 2023-02-17 18:18:51 +00:00
modules Add pretix module 2023-02-23 19:41:16 +00:00
pkgs Add pretix module 2023-02-23 19:41:16 +00:00
.editorconfig Add config for .nix files 2022-04-27 11:02:38 +00:00
.envrc Use flakes 2021-11-17 09:33:48 +00:00
.gitignore Ignore qcow2 files (QEMU disk images) 2023-02-23 19:41:15 +00:00
.sops.yaml Add host aluminium 2022-11-15 21:30:28 +00:00
flake.lock flake.lock: Update 2023-02-23 19:41:18 +00:00
flake.nix Use nixos-22.11 branch 2023-02-18 23:11:08 +00:00
justfile Add fwupdmgr commands 2022-06-08 11:45:45 +00:00
README.md Add sops instructions 2023-02-23 19:41:15 +00:00

home-manager

https://github.com/nix-community/home-manager

For a systematic overview of Home Manager and its available options, please see

Install a new host

This installs nixos on host somehost:

nix-shell -p nixUnstable --run 'nixos-install --flake https://gitlab.jalr.de/jalr/nixos-configuration#somehost --no-channel-copy'

setting up sops

Get the host key and convert it.

ssh-keyscan -t ed25519 $host | ssh-to-age

Then add the key to .sops.yaml

If the key changed, you might want to run

sops updatekeys hosts/$host/secrets.yaml

nix repl

start an interactive environment for evaluating Nix expressions

$ nix repl

nix-repl> a=builtins.getFlake (toString ./.)
$ nix repl

nix-repl> :lf .#

Import GPG public key

gpg --card-edit
gpg/card> fetch