Skip to content

Commit

Permalink
feat: profiles.common.nix.shell - add nix search pager alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehmanator committed Mar 5, 2024
1 parent 0e55d79 commit 7d373c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion profiles/common/nix/shell.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
imports = [ ./utils ];

# TODO: Remove pkgs that are imported elsewhere
environment.shellAliases = {
# --- Nix-Command ---
n = "nix";
ns = "nix search nixpkgs | ${lib.getExe pkgs.bat} --plain --color=always";

n-build = "nix build";
nb = "nix build";
Expand Down
6 changes: 3 additions & 3 deletions users/sam/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#trusted-substituters = [ "https://lehmanator.cachix.org/" ];
# TODO: Public key here

extraOptions = ''
!include /run/user/1000/secrets/github-token
'';
#extraOptions = ''
# !include /run/user/1000/secrets/github-token
#'';
};

sops.secrets.github-token = { };
Expand Down

0 comments on commit 7d373c2

Please sign in to comment.