parent
68b931aef8
commit
575cd4b8ba
@ -0,0 +1,17 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
with lib; |
||||
|
||||
{ |
||||
config = { |
||||
programs.bash.enable = true; |
||||
programs.direnv.enable = true; |
||||
|
||||
nmt.script = '' |
||||
assertFileExists home-files/.bashrc |
||||
assertFileRegex \ |
||||
home-files/.bashrc \ |
||||
'eval "\$(/nix/store/.*direnv.*/bin/direnv hook bash)"' |
||||
''; |
||||
}; |
||||
} |
@ -0,0 +1,4 @@ |
||||
{ |
||||
direnv-bash = ./bash.nix; |
||||
direnv-stdlib = ./stdlib.nix; |
||||
} |
@ -0,0 +1,19 @@ |
||||
{ config, lib, pkgs, ... }: |
||||
|
||||
with lib; |
||||
|
||||
let expectedContent = "something important"; |
||||
in { |
||||
config = { |
||||
programs.bash.enable = true; |
||||
programs.direnv.enable = true; |
||||
programs.direnv.stdlib = expectedContent; |
||||
|
||||
nmt.script = '' |
||||
assertFileExists home-files/.bashrc |
||||
assertFileRegex \ |
||||
home-files/.config/direnv/direnvrc \ |
||||
'${expectedContent}' |
||||
''; |
||||
}; |
||||
} |
Loading…
Reference in new issue