feat: update cursor

This commit is contained in:
Jet Pham 2025-11-12 22:25:56 -08:00
parent 158b91d842
commit 2fab8c92b4
No known key found for this signature in database
5 changed files with 2860 additions and 23 deletions

2783
config/settings.yml Normal file

File diff suppressed because it is too large Load diff

View file

@ -296,6 +296,37 @@
name = "docker"; name = "docker";
}; };
# Enable SearXNG metasearch engine
services.searx = {
enable = true;
redisCreateLocally = true;
environmentFile = "/etc/searxng/searxng.env";
settings = {
server = {
bind_address = "127.0.0.1";
port = 8888;
# secret_key is set via environmentFile to avoid exposing it in nix store
};
general = {
debug = false;
instance_name = "SearXNG";
donation_url = false;
contact_url = false;
privacypolicy_url = false;
enable_metrics = false;
};
ui = {
default_locale = "en";
default_theme = "simple";
};
search = {
safe_search = 0;
autocomplete = "google";
autocomplete_min = 2;
};
};
};
# https://wiki.nixos.org/wiki/Appimage#Register_AppImage_files_as_a_binary_type_to_binfmt_misc # https://wiki.nixos.org/wiki/Appimage#Register_AppImage_files_as_a_binary_type_to_binfmt_misc
programs.appimage = { programs.appimage = {
enable = true; enable = true;
@ -324,17 +355,26 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "25.05"; # Did you read the comment? system.stateVersion = "25.05"; # Did you read the comment?
# Create SearXNG environment file with secret key
system.activationScripts.searxng-env.text = ''
mkdir -p /etc/searxng
if [ ! -f /etc/searxng/searxng.env ]; then
echo 'SEARXNG_SECRET=78db11dc49971aa8e3c378cd9d05398f9e42c2f4ca5c2cc206183bf0ace4f237' > /etc/searxng/searxng.env
chmod 600 /etc/searxng/searxng.env
fi
'';
# Set user profile picture for GNOME # Set user profile picture for GNOME
system.activationScripts.script.text = '' system.activationScripts.script.text = ''
mkdir -p /var/lib/AccountsService/{icons,users} mkdir -p /var/lib/AccountsService/{icons,users}
if [ -f /home/jet/Documents/nixos-config/cat.png ]; then
cp /home/jet/Documents/nixos-config/cat.png /var/lib/AccountsService/icons/jet cp /home/jet/Documents/nixos-config/cat.png /var/lib/AccountsService/icons/jet
echo -e "[User]\nIcon=/var/lib/AccountsService/icons/jet\n" > /var/lib/AccountsService/users/jet echo -e "[User]\nIcon=/var/lib/AccountsService/icons/jet\n" > /var/lib/AccountsService/users/jet
chown root:root /var/lib/AccountsService/users/jet chown root:root /var/lib/AccountsService/users/jet
chmod 0600 /var/lib/AccountsService/users/jet chmod 0600 /var/lib/AccountsService/users/jet
chown root:root /var/lib/AccountsService/icons/jet chown root:root /var/lib/AccountsService/icons/jet
chmod 0444 /var/lib/AccountsService/icons/jet chmod 0444 /var/lib/AccountsService/icons/jet
fi
''; '';
} }

24
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1762964643, "lastModified": 1763416652,
"narHash": "sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH+PEupBJqM=", "narHash": "sha256-8EBEEvtzQ11LCxpQHMNEBQAGtQiCu/pqP9zSovDSbNM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "827f2a23373a774a8805f84ca5344654c31f354b", "rev": "ea164b7c9ccdc2321379c2ff78fd4317b4c41312",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -28,11 +28,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1762351818, "lastModified": 1762964643,
"narHash": "sha256-0ptUDbYwxv1kk/uzEX4+NJjY2e16MaAhtzAOJ6K0TG0=", "narHash": "sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH+PEupBJqM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b959c67241cae17fc9e4ee7eaf13dfa8512477ea", "rev": "827f2a23373a774a8805f84ca5344654c31f354b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -58,11 +58,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1762844143, "lastModified": 1763283776,
"narHash": "sha256-SlybxLZ1/e4T2lb1czEtWVzDCVSTvk9WLwGhmxFmBxI=", "narHash": "sha256-Y7TDFPK4GlqrKrivOcsHG8xSGqQx3A6c+i7novT85Uk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9da7f1cf7f8a6e2a7cb3001b048546c92a8258b4", "rev": "50a96edd8d0db6cc8db57dab6bb6d6ee1f3dc49a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -88,11 +88,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1762903129, "lastModified": 1763353619,
"narHash": "sha256-4vxtwKSBiiJ950ccLo8kQvBGwyNjhglOgWI5b/sjGXY=", "narHash": "sha256-y30wSzjr7QiO4OVB/Tt7dnLRLIuK2EpaftpKeMMLGu0=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "d03a5917aef22219df1f97b6da6fe5b8039be8de", "rev": "7463345c68cfdd9e92e2d40e390b1a802b0f2add",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -37,12 +37,12 @@
(final: prev: { (final: prev: {
code-cursor = prev.code-cursor.overrideAttrs (oldAttrs: rec { code-cursor = prev.code-cursor.overrideAttrs (oldAttrs: rec {
pname = "cursor"; pname = "cursor";
version = "2.0.64"; version = "2.0.77";
src = prev.appimageTools.extract { src = prev.appimageTools.extract {
inherit pname version; inherit pname version;
src = prev.fetchurl { src = prev.fetchurl {
url = "https://downloads.cursor.com/production/25412918da7e74b2686b25d62da1f01cfcd27683/linux/x64/Cursor-2.0.64-x86_64.AppImage"; url = "https://downloads.cursor.com/production/ba90f2f88e4911312761abab9492c42442117cfe/linux/x64/Cursor-2.0.77-x86_64.AppImage";
hash = "sha256-zT9GhdwGDWZJQl+WpV2txbmp3/tJRtL6ds1UZQoKNzA="; hash = "sha256-/r7cmjgFhec7fEKUfFKw3vUoB9LJB2P/646cMeRKp/0=";
}; };
}; };
sourceRoot = "${pname}-${version}-extracted/usr/share/cursor"; sourceRoot = "${pname}-${version}-extracted/usr/share/cursor";

View file

@ -234,6 +234,20 @@
"zen.theme.border-radius" = 0; "zen.theme.border-radius" = 0;
"zen.theme.content-element-separation" = 0; "zen.theme.content-element-separation" = 0;
}; };
# Add SearXNG as default search engine
SearchEngines = {
Default = "SearXNG";
Add = [
{
Name = "SearXNG";
URLTemplate = "http://127.0.0.1:8888/search?q={searchTerms}";
Method = "GET";
IconURL = "http://127.0.0.1:8888/static/themes/simple/img/searxng.png";
Alias = "sx";
Description = "SearXNG - Privacy-respecting metasearch engine";
}
];
};
}; };
}; };