No description
Find a file
Jakob Lechner 6ac1a099fd
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/0c2353d5d930c3d93724df6858aef064a31b3c00' (2023-12-20)
  → 'github:nix-community/home-manager/d5824a76bc6bb93d1dce9ebbbcb09a9b6abcc224' (2023-12-23)
• Updated input 'nix-pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/007a45d064c1c32d04e1b8a0de5ef00984c419bc' (2023-12-13)
  → 'github:cachix/pre-commit-hooks.nix/7f35ec30d16b38fe0eed8005933f418d1a4693ee' (2023-12-24)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/d65bceaee0fb1e64363f7871bc43dc1c6ecad99f' (2023-12-20)
  → 'github:nixos/nixpkgs/0b3d618173114c64ab666f557504d6982665d328' (2023-12-21)
• Updated input 'nixpkgsMaster':
    'github:NixOS/nixpkgs/bfbfb344598544058481e254b9f0f174d05b5e6a' (2023-12-22)
  → 'github:NixOS/nixpkgs/904b22f4024a67b196eda237e8b7cdd2fd4fe7ee' (2023-12-25)
• Updated input 'nur':
    'github:nix-community/NUR/0856012664025f0362a8d25bdf0463702b0c9e82' (2023-12-22)
  → 'github:nix-community/NUR/5942503289336c3f00348f16dea95e54e4b43b42' (2023-12-25)
• Updated input 'poetry2nix':
    'github:nix-community/poetry2nix/b76e91da74ad7af0bc397561a59a19fcbc2ad488' (2023-12-20)
  → 'github:nix-community/poetry2nix/528d500ea826383cc126a9be1e633fc92b19ce5d' (2023-12-25)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/f7db64b88dabc95e4f7bee20455f418e7ab805d4' (2023-12-18)
  → 'github:Mic92/sops-nix/e523e89763ff45f0a6cf15bcb1092636b1da9ed3' (2023-12-24)
• Updated input 'sops-nix/nixpkgs-stable':
    'github:NixOS/nixpkgs/a19a71d1ee93226fd71984359552affbc1cd3dc3' (2023-12-17)
  → 'github:NixOS/nixpkgs/7790e078f8979a9fcd543f9a47427eeaba38f268' (2023-12-23)
2023-12-26 00:05:03 +00:00
.git-crypt Add 1 git-crypt collaborator 2023-11-08 23:38:48 +00:00
custom-utils Add port attrset 2023-11-22 14:55:28 +00:00
home-manager Add adb 2023-12-24 14:02:54 +00:00
hosts Add mautrix bridges 2023-12-23 20:22:29 +00:00
modules Add adb 2023-12-24 14:02:54 +00:00
pkgs Catch MaxRetryError 2023-12-24 16:16:24 +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
.gitattributes Add custom voicemail greeting 2023-11-22 14:55:29 +00:00
.gitignore Ignore qcow2 files (QEMU disk images) 2023-02-23 19:41:15 +00:00
.sops.yaml Reinstall weinturm-pretix-prod on aarch64 2023-11-08 23:41:04 +00:00
flake.lock flake.lock: Update 2023-12-26 00:05:03 +00:00
flake.nix Add poetry2nix 2023-12-02 12:23:58 +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