yep, more dotfiles

feat: add dotfile shell and custom shell template for quick use

+1
.envrc
···
···
+
use flake
+1 -1
Justfile
···
nixos-rebuild build --show-trace
check: build
-
@ls result && unlink result
# TODO: custom rekey entry to rekey every secret avoiding to retype it everytime
···
nixos-rebuild build --show-trace
check: build
+
@unlink result
# TODO: custom rekey entry to rekey every secret avoiding to retype it everytime
+115 -7
flake.lock
···
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
···
"type": "github"
}
},
"nix-colors": {
"inputs": {
"base16-schemes": "base16-schemes",
···
},
"nixpkgs": {
"locked": {
-
"lastModified": 1702645756,
-
"narHash": "sha256-qKI6OR3TYJYQB3Q8mAZ+DG4o/BR9ptcv9UnRV2hzljc=",
-
"owner": "nixos",
"repo": "nixpkgs",
-
"rev": "40c3c94c241286dd2243ea34d3aef8a488f9e4d0",
"type": "github"
},
"original": {
-
"owner": "nixos",
-
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
···
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1702312524,
···
"type": "github"
}
},
"radicle": {
"inputs": {
"advisory-db": "advisory-db",
···
"disko": "disko",
"git-leave": "git-leave",
"home-manager": "home-manager",
"nix-colors": "nix-colors",
"nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware",
-
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable",
"radicle": "radicle"
}
···
"type": "github"
}
},
+
"flake-compat": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1650374568,
+
"narHash": "sha256-Z+s0J8/r907g149rllvwhb4pKi8Wam5ij0st8PwAh+E=",
+
"owner": "edolstra",
+
"repo": "flake-compat",
+
"rev": "b4a34015c698c7793d592d66adbab377907a2be8",
+
"type": "github"
+
},
+
"original": {
+
"owner": "edolstra",
+
"repo": "flake-compat",
+
"type": "github"
+
}
+
},
"flake-utils": {
"inputs": {
"systems": "systems"
···
"type": "github"
}
},
+
"lowdown-src": {
+
"flake": false,
+
"locked": {
+
"lastModified": 1633514407,
+
"narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=",
+
"owner": "kristapsdz",
+
"repo": "lowdown",
+
"rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8",
+
"type": "github"
+
},
+
"original": {
+
"owner": "kristapsdz",
+
"repo": "lowdown",
+
"type": "github"
+
}
+
},
+
"mind": {
+
"inputs": {
+
"flake-compat": "flake-compat",
+
"nix": "nix",
+
"nixpkgs": [
+
"nixpkgs"
+
]
+
},
+
"locked": {
+
"lastModified": 1678421112,
+
"narHash": "sha256-4yGyH0FcYzfOjCv2JyAuwfOto4hQNT/qTkaoshFLjFk=",
+
"owner": "sayanarijit",
+
"repo": "mind",
+
"rev": "2a3dbaec9f521008b283ed95355079aa3c832a39",
+
"type": "github"
+
},
+
"original": {
+
"owner": "sayanarijit",
+
"repo": "mind",
+
"type": "github"
+
}
+
},
+
"nix": {
+
"inputs": {
+
"lowdown-src": "lowdown-src",
+
"nixpkgs": "nixpkgs",
+
"nixpkgs-regression": "nixpkgs-regression"
+
},
+
"locked": {
+
"lastModified": 1668617373,
+
"narHash": "sha256-KOEVzzZpCEGZXRC6WPXeBJj/XLmgQikwwnUMKwG0rLk=",
+
"owner": "domenkozar",
+
"repo": "nix",
+
"rev": "c17cf5429f7abb1f92fad715dd577004aca837d0",
+
"type": "github"
+
},
+
"original": {
+
"owner": "domenkozar",
+
"ref": "relaxed-flakes",
+
"repo": "nix",
+
"type": "github"
+
}
+
},
"nix-colors": {
"inputs": {
"base16-schemes": "base16-schemes",
···
},
"nixpkgs": {
"locked": {
+
"lastModified": 1657693803,
+
"narHash": "sha256-G++2CJ9u0E7NNTAi9n5G8TdDmGJXcIjkJ3NF8cetQB8=",
+
"owner": "NixOS",
"repo": "nixpkgs",
+
"rev": "365e1b3a859281cf11b94f87231adeabbdd878a2",
"type": "github"
},
"original": {
+
"owner": "NixOS",
+
"ref": "nixos-22.05-small",
"repo": "nixpkgs",
"type": "github"
}
···
"type": "github"
}
},
+
"nixpkgs-regression": {
+
"locked": {
+
"lastModified": 1643052045,
+
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
+
"owner": "NixOS",
+
"repo": "nixpkgs",
+
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
+
"type": "github"
+
},
+
"original": {
+
"owner": "NixOS",
+
"repo": "nixpkgs",
+
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
+
"type": "github"
+
}
+
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1702312524,
···
"type": "github"
}
},
+
"nixpkgs_2": {
+
"locked": {
+
"lastModified": 1702645756,
+
"narHash": "sha256-qKI6OR3TYJYQB3Q8mAZ+DG4o/BR9ptcv9UnRV2hzljc=",
+
"owner": "nixos",
+
"repo": "nixpkgs",
+
"rev": "40c3c94c241286dd2243ea34d3aef8a488f9e4d0",
+
"type": "github"
+
},
+
"original": {
+
"owner": "nixos",
+
"ref": "nixos-23.11",
+
"repo": "nixpkgs",
+
"type": "github"
+
}
+
},
"radicle": {
"inputs": {
"advisory-db": "advisory-db",
···
"disko": "disko",
"git-leave": "git-leave",
"home-manager": "home-manager",
+
"mind": "mind",
"nix-colors": "nix-colors",
"nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware",
+
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable",
"radicle": "radicle"
}
+4
flake.nix
···
git-leave.url = "github:mrnossiom/git-leave";
git-leave.inputs.nixpkgs.follows = "nixpkgs";
radicle.url = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5";
radicle.inputs.nixpkgs.follows = "nixpkgs";
};
···
packages = forAllSystems (system: import ./pkgs pkgs.${system});
apps = forAllSystems (system: import ./apps pkgs.${system});
overlays = import ./overlays (nixpkgs // { inherit self; });
nixosModules = import ./modules/nixos;
···
git-leave.url = "github:mrnossiom/git-leave";
git-leave.inputs.nixpkgs.follows = "nixpkgs";
+
mind.url = "github:sayanarijit/mind";
+
mind.inputs.nixpkgs.follows = "nixpkgs";
+
radicle.url = "git+https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5";
radicle.inputs.nixpkgs.follows = "nixpkgs";
};
···
packages = forAllSystems (system: import ./pkgs pkgs.${system});
apps = forAllSystems (system: import ./apps pkgs.${system});
+
devShells = forAllSystems (system: import ./shells.nix pkgs.${system});
overlays = import ./overlays (nixpkgs // { inherit self; });
nixosModules = import ./modules/nixos;
+20
shells.nix
···
···
+
{ self, lib, system, ... }@pkgs:
+
+
with lib;
+
+
let
+
inherit (self.outputs) packages;
+
+
allSelfPackages = mapAttrsToList (_: value: value) packages.${system};
+
+
mkPackageShell = packages: pkgs.mkShellNoCC { inherit packages; };
+
+
in
+
{
+
# Import packages of this flake along with useful tools for managing dotfiles
+
default = mkPackageShell (allSelfPackages ++ [ ]);
+
+
# Add presets that I can quicky use
+
+
rust = mkPackageShell (with pkgs; [ cargo ]);
+
}