refactor: flake.nix looks nicer

This commit is contained in:
Mohammad Rafiq 2025-03-26 20:40:46 +08:00
parent 65655e8391
commit 71a947e285
No known key found for this signature in database
3 changed files with 50 additions and 227 deletions

View file

@ -1,4 +1,9 @@
{ pkgs, osConfig, ... }:
{
pkgs,
osConfig,
type,
...
}:
{
programs.zsh = {
enable = true;
@ -14,6 +19,7 @@
bindkey '^H' backward-kill-word
# Set Cargo Registry Token
export CARGO_REGISTRY_TOKEN="$(cat ${osConfig.sops.secrets.cargo_api_key.path})"
export SYSTEM_TYPE="${type}"
'';
# TODO: Look into whether we need to add the history attribute
profileExtra = # bash