[NixOS] Set NIX_PATH so that nixpkgs is always what we last built with
This commit is contained in:
parent
dcd57e5f8e
commit
7fc65965c5
2
dotfiles/config/autorandr/postswitch
Executable file → Normal file
2
dotfiles/config/autorandr/postswitch
Executable file → Normal file
@ -1 +1 @@
|
|||||||
|
systemctl --user restart random-background
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
function find_store_path_gc_roots {
|
function find_store_path_gc_roots {
|
||||||
store_path="$(realpath $1)"
|
store_path="$(realpath $1)"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, options, lib, ... }:
|
{ config, pkgs, options, lib, inputs, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
@ -46,6 +46,11 @@ with lib;
|
|||||||
shellAliases = {
|
shellAliases = {
|
||||||
df_ssh = "TERM='xterm-256color ssh -o StrictHostKeyChecking=no'";
|
df_ssh = "TERM='xterm-256color ssh -o StrictHostKeyChecking=no'";
|
||||||
};
|
};
|
||||||
|
variables = {
|
||||||
|
ROFI_SYSTEMD_TERM = "alacritty -e";
|
||||||
|
NIXPKGS_GIT_REV = "${inputs.nixpkgs.rev}";
|
||||||
|
NIXPKGS_SOURCE = "${inputs.nixpkgs.outPath}";
|
||||||
|
};
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
vterm_printf(){
|
vterm_printf(){
|
||||||
if [ -n "$TMUX" ] && ([ "''${TERM%%-*}" = "tmux" ] || [ "''${TERM%%-*}" = "screen" ] ); then
|
if [ -n "$TMUX" ] && ([ "''${TERM%%-*}" = "tmux" ] || [ "''${TERM%%-*}" = "screen" ] ); then
|
||||||
@ -66,10 +71,8 @@ with lib;
|
|||||||
export STARSHIP_INSIDE_EMACS="yes"
|
export STARSHIP_INSIDE_EMACS="yes"
|
||||||
'';
|
'';
|
||||||
extraInit = ''
|
extraInit = ''
|
||||||
export ROFI_SYSTEMD_TERM="alacritty -e"
|
export NIX_PATH="nixpkgs=${inputs.nixpkgs.outPath}:$NIX_PATH";
|
||||||
export PATH="${libDir}/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:${libDir}/bin:${libDir}/functions:$PATH";
|
||||||
export PATH="${libDir}/functions:$PATH"
|
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user