marleyos/modules/home/base/nix/default.nix

32 lines
579 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
2024-11-15 18:39:38 -08:00
{
config = {
nix = {
package = pkgs.lix;
2024-11-15 18:39:38 -08:00
# Enable flakes.
settings.experimental-features = [
"nix-command"
"flakes"
];
# Disable that annoying "git tree is dirty" warning.
extraOptions = ''
warn-dirty = false
'';
# Garbage collection.
gc.automatic = true;
};
nixpkgs.config.import = "${config.xdg.configHome}/nixpkgs/config.nix";
xdg.configFile."nixpkgs/config.nix".text = # nix
''
{
allowUnfree = true;
}
'';
2024-11-15 18:39:38 -08:00
};
}