nix: fix stable options
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
3d78606a56
commit
8820846d31
2 changed files with 23 additions and 15 deletions
|
@ -10,15 +10,21 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# https://github.com/direnv/direnv
|
# https://github.com/direnv/direnv
|
||||||
programs.direnv = {
|
programs.direnv =
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
loadInNixShell = false; # nix develop
|
loadInNixShell = false; # nix develop
|
||||||
|
}
|
||||||
|
// optionalAttrs (versionAtLeast version "24.11") {
|
||||||
silent = true;
|
silent = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${config.custom.username} = {
|
home-manager.users.${config.custom.username} = {
|
||||||
programs.direnv = {
|
programs.direnv =
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
}
|
||||||
|
// optionalAttrs (versionAtLeast version "24.11") {
|
||||||
silent = true;
|
silent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -23,9 +23,11 @@ in {
|
||||||
services = {
|
services = {
|
||||||
gvfs.enable = true; # Trash dependency
|
gvfs.enable = true; # Trash dependency
|
||||||
|
|
||||||
gnome = {
|
gnome =
|
||||||
|
{
|
||||||
sushi.enable = true; # Quick preview with spacebar
|
sushi.enable = true; # Quick preview with spacebar
|
||||||
|
}
|
||||||
|
// optionalAttrs (versionAtLeast version "24.11") {
|
||||||
# File indexing
|
# File indexing
|
||||||
localsearch.enable = cfg.index;
|
localsearch.enable = cfg.index;
|
||||||
tinysparql.enable = cfg.index;
|
tinysparql.enable = cfg.index;
|
||||||
|
|
Loading…
Reference in a new issue