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