Skip to content

Commit

Permalink
fix nixos-shell evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
Radvendii committed Oct 6, 2022
1 parent 1805c69 commit 35bd968
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ result*
/state
*.sqlite3
__pycache__
nixos.qcow2
7 changes: 6 additions & 1 deletion examples/nixos-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ in
../packages/trustix-nix/nixos
];

nixpkgs.pkgs = import ../pkgs.nix { };
# TODO: for some reason setting nixpkgs.pkgs directly causes problems with nixos-shell
# so instead we copy over the overlays and config, but the pinned nixpkgs does not carry over here
# nixpkgs.pkgs = import ../pkgs.nix {};
nixpkgs = {
inherit (import ../pkgs.nix {}) overlays config;
};

services.trustix = {
enable = true;
Expand Down

0 comments on commit 35bd968

Please sign in to comment.