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