Fetch User Keys - simple tool for fetching SSH keys from various sources
1{
2 description = "Description for the project";
3
4 inputs = {
5 flake-parts.url = "github:hercules-ci/flake-parts";
6 nixpkgs.url = "flake:nixpkgs";
7 devenv.url = "github:cachix/devenv";
8 };
9
10 nixConfig = {
11 extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
12 extra-substituters = "https://devenv.cachix.org";
13 };
14
15 outputs = inputs @ {flake-parts, ...}:
16 flake-parts.lib.mkFlake {inherit inputs;} {
17 imports = [
18 inputs.devenv.flakeModule
19 ];
20
21 flake = {
22 };
23
24 systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
25
26 perSystem = {
27 self',
28 inputs',
29 pkgs,
30 ...
31 }: {
32 formatter = pkgs.alejandra;
33
34 packages = {
35 default = self'.packages.fuk;
36
37 fuk = pkgs.callPackage ./nix/fuk.nix {};
38 };
39
40 devenv.shells.default = {
41 languages.rust.enable = true;
42
43 packages =
44 [
45 pkgs.scdoc
46 pkgs.cargo-nextest
47 pkgs.cargo-outdated
48 pkgs.reuse
49 ]
50 ++ pkgs.lib.lists.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk; [
51 frameworks.Foundation
52 frameworks.CoreFoundation
53 frameworks.SystemConfiguration
54 frameworks.Security
55 pkgs.libiconv
56 ]);
57 };
58 };
59 };
60}