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

View file

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