From 570871787f44502a99209f908be6ca91a58f3671 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Sat, 28 Mar 2026 13:14:22 +0000 Subject: [PATCH] --- common.nix | 27 --------------------------- services/omnisearch.nix | 4 +++- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/common.nix b/common.nix index dffa2e5..b95dd5c 100644 --- a/common.nix +++ b/common.nix @@ -64,35 +64,10 @@ # Enable network-manager networking.networkmanager.enable = true; networking.nameservers = [ "1.1.1.1" "9.9.9.9" ]; - #networking.nftables.enable = true; # Shell aliases environment.shellAliases = { update = "sudo nixos-rebuild switch --flake github:ediblerope/nixos-config --refresh --no-write-lock-file"; - #update = '' - # CHANNEL=$(sudo nix-channel --list | grep "^nixos " | awk '{print $2}') - # if [[ "$CHANNEL" != *"nixos-unstable"* ]]; then - # echo "Switching to nixos-unstable channel..." - # sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos - # sudo nix-channel --update - # fi - # - # # Add nix-flatpak channel if not present - # if ! sudo nix-channel --list | grep -q "nix-flatpak"; then - # echo "Adding nix-flatpak channel..." - # sudo nix-channel --add https://github.com/gmodena/nix-flatpak/archive/main.tar.gz nix-flatpak - # fi - # - # sudo nix-channel --update - # echo "Cleaning Flatpak state cache..." - # sudo rm -f /nix/var/nix/gcroots/flatpak-state.json - # sudo nixos-rebuild switch --upgrade --option tarball-ttl 0 - # - # # Manually reapply wallpaper settings - # dconf write /org/gnome/desktop/background/picture-uri "'file://''${HOME}/.local/share/backgrounds/wallpaper.png'" - # dconf write /org/gnome/desktop/background/picture-uri-dark "'file://''${HOME}/.local/share/backgrounds/wallpaper.png'" - # dconf write /org/gnome/desktop/background/picture-options "'zoom'" - #''; clean = "sudo nix-collect-garbage -d"; ll = "ls -alh"; clear = "command clear && fastfetch --config /etc/fastfetch/config.jsonc"; @@ -104,7 +79,5 @@ git localsend onlyoffice-desktopeditors - #adwaita-icon-theme - #mission-center ]; } diff --git a/services/omnisearch.nix b/services/omnisearch.nix index 27135ff..d8df6f5 100644 --- a/services/omnisearch.nix +++ b/services/omnisearch.nix @@ -1,5 +1,7 @@ #omnisearch.nix { ... }: { - services.omnisearch.enable = true; + config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") { + services.omnisearch.enable = true; + } } \ No newline at end of file