My personal-knowledge-system, with deeply integrated task tracking and long term goal planning capabilities.

feat: init flake

suri.codes 83c60df4 8185bf55

verified
+168 -1
+1
.envrc
··· 1 + use flake
+13
.gitignore
··· 1 + .direnv 2 + 3 + # Generated by Cargo 4 + # will have compiled files and executables 5 + debug 6 + target 7 + 8 + # These are backup files generated by rustfmt 9 + **/*.rs.bk 10 + 11 + # MSVC Windows builds of rustc generate these, which store debugging information 12 + *.pdb 13 +
-1
README.md
··· 4 4 task tracking and long term goal planning capabilities. 5 5 6 6 This is a continuation of my previous project, [TARS](https://github.com/suri-codes/TARS). 7 - l
+63
flake.lock
··· 1 + { 2 + "nodes": { 3 + "fenix": { 4 + "inputs": { 5 + "nixpkgs": [ 6 + "nixpkgs" 7 + ], 8 + "rust-analyzer-src": "rust-analyzer-src" 9 + }, 10 + "locked": { 11 + "lastModified": 1772348640, 12 + "narHash": "sha256-caiKs7O4khFydpKyg8O8/nmvw/NfN4fn/4spageGoig=", 13 + "rev": "47c5355eaba0b08836e720d5d545c8ea1e1783db", 14 + "revCount": 2572, 15 + "type": "tarball", 16 + "url": "https://api.flakehub.com/f/pinned/nix-community/fenix/0.1.2572%2Brev-47c5355eaba0b08836e720d5d545c8ea1e1783db/019ca881-cb35-7cd1-8b46-98117609f8b6/source.tar.gz" 17 + }, 18 + "original": { 19 + "type": "tarball", 20 + "url": "https://flakehub.com/f/nix-community/fenix/0.1" 21 + } 22 + }, 23 + "nixpkgs": { 24 + "locked": { 25 + "lastModified": 1772542754, 26 + "narHash": "sha256-WGV2hy+VIeQsYXpsLjdr4GvHv5eECMISX1zKLTedhdg=", 27 + "rev": "8c809a146a140c5c8806f13399592dbcb1bb5dc4", 28 + "revCount": 957538, 29 + "type": "tarball", 30 + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.957538%2Brev-8c809a146a140c5c8806f13399592dbcb1bb5dc4/019cb563-81c1-72cf-aec2-46679a968011/source.tar.gz" 31 + }, 32 + "original": { 33 + "type": "tarball", 34 + "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1" 35 + } 36 + }, 37 + "root": { 38 + "inputs": { 39 + "fenix": "fenix", 40 + "nixpkgs": "nixpkgs" 41 + } 42 + }, 43 + "rust-analyzer-src": { 44 + "flake": false, 45 + "locked": { 46 + "lastModified": 1772310333, 47 + "narHash": "sha256-njFwHnxYcfQINwSa+XWhenv8s8PMg/j5ID0HpIa49xM=", 48 + "owner": "rust-lang", 49 + "repo": "rust-analyzer", 50 + "rev": "a96b6a9b887008bae01839543f9ca8e1f67f4ebe", 51 + "type": "github" 52 + }, 53 + "original": { 54 + "owner": "rust-lang", 55 + "ref": "nightly", 56 + "repo": "rust-analyzer", 57 + "type": "github" 58 + } 59 + } 60 + }, 61 + "root": "root", 62 + "version": 7 63 + }
+91
flake.nix
··· 1 + { 2 + description = "An empty flake template that you can adapt to your own environment"; 3 + 4 + # Flake inputs 5 + inputs = { 6 + 7 + nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; # unstable Nixpkgs 8 + 9 + fenix = { 10 + url = "https://flakehub.com/f/nix-community/fenix/0.1"; 11 + inputs.nixpkgs.follows = "nixpkgs"; 12 + }; 13 + }; 14 + 15 + # Flake outputs 16 + outputs = 17 + { self, ... }@inputs: 18 + 19 + let 20 + # The systems supported for this flake 21 + supportedSystems = [ 22 + "x86_64-linux" # 64-bit Intel/AMD Linux 23 + "aarch64-linux" # 64-bit ARM Linux 24 + "x86_64-darwin" # 64-bit Intel macOS 25 + "aarch64-darwin" # 64-bit ARM macOS 26 + ]; 27 + 28 + # Helper to provide system-specific attributes 29 + forEachSupportedSystem = 30 + f: 31 + inputs.nixpkgs.lib.genAttrs supportedSystems ( 32 + system: 33 + f { 34 + pkgs = import inputs.nixpkgs { 35 + inherit system; 36 + overlays = [ 37 + inputs.self.overlays.default 38 + ]; 39 + }; 40 + } 41 + ); 42 + in 43 + { 44 + 45 + overlays.default = final: prev: { 46 + rustToolchain = 47 + with inputs.fenix.packages.${prev.stdenv.hostPlatform.system}; 48 + combine ( 49 + with stable; 50 + [ 51 + clippy 52 + rustc 53 + cargo 54 + rustfmt 55 + rust-src 56 + ] 57 + ); 58 + }; 59 + 60 + devShells = forEachSupportedSystem ( 61 + { pkgs }: 62 + { 63 + default = pkgs.mkShellNoCC { 64 + # The Nix packages provided in the environment 65 + # Add any you need here 66 + packages = with pkgs; [ 67 + 68 + rustToolchain 69 + openssl 70 + pkg-config 71 + cargo-deny 72 + cargo-edit 73 + cargo-watch 74 + rust-analyzer 75 + 76 + typst 77 + typstyle 78 + ]; 79 + 80 + # Set any environment variables for your dev shell 81 + env = { 82 + RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library"; 83 + }; 84 + 85 + # Add any shell logic you want executed any time the environment is activated 86 + shellHook = ""; 87 + }; 88 + } 89 + ); 90 + }; 91 + }