Flakes, but it doesn't work 😞

This commit is contained in:
Charlotte Van Petegem 2020-07-21 14:04:27 +02:00
parent 50cb3fabb7
commit c59fd9a5a7
16 changed files with 206 additions and 220 deletions

View file

@ -5,21 +5,22 @@
{ path = ".local/share/direnv"; type = "cache"; }
];
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
home-manager.users.charlotte = { ... }: {
programs.direnv = {
enable = true;
enableNixDirenvIntegration = true;
enableZshIntegration = true;
config = {
global = {
strict_env = true;
};
};
stdlib = ''
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix --experimental-features 'nix-commnand flakes' print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
}
'';
};
};
}

View file

@ -1,7 +1,11 @@
{ ... }:
{ pkgs, ... }:
{
nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
package = pkgs.nixFlakes;
gc = {
automatic = true;
dates = "hourly";