No description
Find a file
Jakob Lechner 4335d95baf
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/aa99c2f4e9847cbb7e46fac0844ea1eb164b3b3a' (2023-12-15)
  → 'github:nix-community/home-manager/0c2353d5d930c3d93724df6858aef064a31b3c00' (2023-12-20)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/cf28ee258fd5f9a52de6b9865cdb93a1f96d09b7' (2023-12-12)
  → 'github:nixos/nixpkgs/d65bceaee0fb1e64363f7871bc43dc1c6ecad99f' (2023-12-20)
• Updated input 'nixpkgsMaster':
    'github:NixOS/nixpkgs/b77e9f0eccfd52600c5f815615e30cb29815972c' (2023-12-17)
  → 'github:NixOS/nixpkgs/bfbfb344598544058481e254b9f0f174d05b5e6a' (2023-12-22)
• Updated input 'nur':
    'github:nix-community/NUR/47e505f4e877fb5d469764f8e0d48f1bfcdfde55' (2023-12-17)
  → 'github:nix-community/NUR/0856012664025f0362a8d25bdf0463702b0c9e82' (2023-12-22)
• Updated input 'poetry2nix':
    'github:nix-community/poetry2nix/9d9d434528404a22fb0c8283fea1ea3a7410ff80' (2023-12-14)
  → 'github:nix-community/poetry2nix/b76e91da74ad7af0bc397561a59a19fcbc2ad488' (2023-12-20)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/21f2b8f123a1601fef3cf6bbbdf5171257290a77' (2023-12-17)
  → 'github:Mic92/sops-nix/f7db64b88dabc95e4f7bee20455f418e7ab805d4' (2023-12-18)
2023-12-22 02:25:08 +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 supersonic-wayland 2023-12-12 13:11:32 +00:00
hosts Add washing machine 2023-12-22 02:20:36 +00:00
modules Add matrix module 2023-12-17 23:44:41 +00:00
pkgs Add home-assistant 2023-12-17 19:22:29 +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-22 02:25:08 +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