Add nix-your-shell so I can use fish in nix shells

This commit is contained in:
BuyMyMojo 2025-03-29 21:42:27 +11:00
parent ddfda9d813
commit 30765ff3c4
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
2 changed files with 21 additions and 1 deletions

View file

@ -7,6 +7,7 @@
pkgs,
unstable,
inputs,
nix-your-shell,
...
}:
@ -15,6 +16,10 @@
# in
{
nixpkgs.overlays = [
nix-your-shell.overlays.default
];
nix.settings.experimental-features = [
"nix-command"
"flakes"
@ -143,7 +148,13 @@
programs.firefox.enable = true;
programs.thunderbird.enable = true;
programs.fish.enable = true;
programs.fish = {
enable = true;
interactiveShellInit = ''
nix-your-shell fish | source
'';
};
programs.gpu-screen-recorder = {
enable = true;

View file

@ -10,12 +10,19 @@
# CPU microcode updater
ucodenix.url = "github:e-tho/ucodenix";
nix-your-shell = {
url = "github:MercuryTechnologies/nix-your-shell";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
unstable,
nix-your-shell,
...
}@inputs:
let
@ -35,6 +42,8 @@
inherit system;
config.allowUnfree = true;
};
inherit nix-your-shell;
};
modules = [
./configuration.nix