home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

nixos-config.nix (592B)


      1 { pkgs, inputs }:
      2 let
      3   inherit (inputs.sops-nix.packages."x86_64-linux") sops-import-keys-hook;
      4 in
      5 pkgs.mkShell
      6 {
      7   name = "NixOS config";
      8   sopsPGPKeyDirs = [ "./secrets/keys" ];
      9   nativeBuildInputs = [
     10     inputs.sops-nix.packages."x86_64-linux".sops-import-keys-hook
     11   ];
     12   buildInputs = with pkgs; [
     13     cachix
     14     git
     15     nixpkgs-fmt
     16     sops
     17     yq-go
     18   ];
     19   shellHook = ''
     20     test -f .secrets && source .secrets || echo "no secrets"
     21     export QEMU_OPTS="-m 8096 -cpu host"
     22     export PATH="${builtins.toString ./.}/bin:$PATH"
     23     export REPO_ROOT="${builtins.toString ./.}"
     24   '';
     25 }