mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 12:09:46 +01:00
34 lines
657 B
Nix
34 lines
657 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
nix = {
|
||
|
package = config.lib.test.mkStubPackage {
|
||
|
version = lib.getVersion pkgs.nixStable;
|
||
|
buildScript = ''
|
||
|
target=$out/bin/nix
|
||
|
mkdir -p "$(dirname "$target")"
|
||
|
|
||
|
echo -n "true" > "$target"
|
||
|
|
||
|
chmod +x "$target"
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
settings = {
|
||
|
use-sandbox = true;
|
||
|
show-trace = true;
|
||
|
system-features = [ "big-parallel" "kvm" "recursive-nix" ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileContent \
|
||
|
home-files/.config/nix/nix.conf \
|
||
|
${./example-settings-expected.conf}
|
||
|
'';
|
||
|
};
|
||
|
}
|