Skip to content
1 change: 1 addition & 0 deletions hosts/luna/users/shorty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ with lib;
slurp.enable = true;
steam.enable = true;
sops.enable = true;
syncthing.enable = true;
swappy.enable = true;
stylix.enable = true;
vscode.enable = true;
Expand Down
34 changes: 23 additions & 11 deletions modules/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,65 +99,77 @@ with lib;
"google".metaData.alias = "@g";
"wikipedia (en)".metaData.alias = "@w";

"archlinux" = {
"Arch Linux Wiki" = {
urls = [ { template = "https://wiki.archlinux.org/index.php?search={searchTerms}"; } ];
icon = "https://wiki.archlinux.org/favicon.ico";
definedAliases = [ "@a" ];
};

"github" = {
"Github" = {
urls = [ { template = "https://github.com/search?q={searchTerms}"; } ];
icon = "https://github.githubassets.com/favicons/favicon.svg";
definedAliases = [ "@gh" ];
};

"reddit" = {
"Reddit" = {
urls = [ { template = "https://reddit.com/search?q={searchTerms}"; } ];
icon = "https://www.redditstatic.com/shreddit/assets/favicon/192x192.png";
definedAliases = [ "@r" ];
};

"mynixos" = {
"MyNixOS" = {
urls = [ { template = "https://mynixos.com/search?q={searchTerms}"; } ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@n" ];
};

"wiki.nixos" = {
"NixOS Wiki" = {
urls = [ { template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; } ];
icon = "https://wiki.nixos.org/favicon.png";
icon = "https://wiki.nixos.org/nixos.png";
definedAliases = [ "@nw" ];
};

"php.net" = {
"PHP" = {
urls = [ { template = "https://php.net/{searchTerms}"; } ];
icon = "https://www.php.net/favicon-196x196.png?v=2";
definedAliases = [ "@php" ];
};

"protondb" = {
"ProtonDB" = {
urls = [ { template = "https://protondb.com/search?q={searchTerms}"; } ];
icon = "https://protondb.com/sites/protondb/images/favicon-32x32.png";
definedAliases = [ "@p" ];
};

"youtube" = {
"YouTube" = {
urls = [ { template = "https://youtube.com/results?search_query={searchTerms}"; } ];
icon = "https://youtube.com/img/favicon_144.png";
definedAliases = [ "@yt" ];
};

"music.youtube" = {
"YouTube Music" = {
urls = [ { template = "https://music.youtube.com/search?q={searchTerms}"; } ];
icon = "https://music.youtube.com/img/favicon_144.png";
definedAliases = [ "@ytm" ];
};

"rt" = {
"Rotten Tomatoes" = {
urls = [ { template = "https://www.rottentomatoes.com/search?search={searchTerms}"; } ];
icon = "https://editorial.rottentomatoes.com/wp-content/uploads/2022/05/favicon.png?w=32";
definedAliases = [ "@rt" ];
};

"Sonarr" = {
urls = [ { template = "https://sonarr.99linesofcode.nl/add/new?term={searchTerms}"; } ];
icon = "https://sonarr.99linesofcode.nl/Content/Images/Icons/favicon-32x32.png";
definedAliases = [ "@sonarr" ];
};

"Radarr" = {
urls = [ { template = "https://radarr.99linesofcode.nl/add/new?term={searchTerms}"; } ];
icon = "https://radarr.99linesofcode.nl/Content/Images/Icons/favicon-32x32.png";
definedAliases = [ "@radarr" ];
};
};
};
settings = {
Expand Down
4 changes: 2 additions & 2 deletions modules/google-drive.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ with lib;
home.google-drive.enable = mkEnableOption "Google Drive";
};

config = mkIf cfg.enable {
systemd.user.services = mkIf config.home.rclone.enable {
config = mkIf (config.home.rclone.enable && cfg.enable) {
systemd.user.services = {
gdrive = {
Unit = {
Description = "rclone: Remote FUSE filesystem for Google Drive";
Expand Down
8 changes: 4 additions & 4 deletions modules/nvim/neo-tree.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
};
filesystem = {
bindToCwd = false;
followCurrentFile = {
follow_current_file = {
enabled = true;
};
filteredItems = {
hideDotfiles = false;
hideGitignored = false;
filtered_items = {
hide_dotfiles = false;
hide_gitignored = false;
};
};
sources = [
Expand Down
12 changes: 6 additions & 6 deletions modules/nvim/treesitter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,29 @@
};
move = {
enable = true;
gotoNextStart = {
goto_next_start = {
"]m" = "@function.outer";
"]]" = "@class.outer";
};
gotoNextEnd = {
goto_next_end = {
"]M" = "@function.outer";
"][" = "@class.outer";
};
gotoPreviousStart = {
goto_previous_start = {
"[m" = "@function.outer";
"[[" = "@class.outer";
};
gotoPreviousEnd = {
goto_previous_end = {
"[M" = "@function.outer";
"[]" = "@class.outer";
};
};
swap = {
enable = true;
swapNext = {
swap_next = {
"<leader>a" = "@parameters.inner";
};
swapPrevious = {
swap_previous = {
"<leader>A" = "@parameter.outer";
};
};
Expand Down
43 changes: 43 additions & 0 deletions modules/syncthing.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
config,
lib,
specialArgs,
...
}:

let
inherit (specialArgs) username;
cfg = config.home.syncthing;
in
with lib;
{
options.home.syncthing = {
enable = mkEnableOption "syncthing";
};

config = mkIf cfg.enable {
services.syncthing = {
enable = true;
settings = {
options.urAccepted = -1; # do not submit anonymous usage data
devices = {
"note" = {
id = "4CYUMEQ-DYNLFQ6-ASNQ7MX-TB6WRBA-4JPEOHJ-C5YA27Q-PVQ72CQ-AUU77Q6";
};
"boox" = {
id = "O7JFX2O-SXQ2PGL-JGEPNM4-L42XPWW-A45NXOO-SSFRFJK-UIAGCC7-C5MRBQP";
};
};
folders = {
"Obsidian" = mkIf (config.home.google-drive.enable && config.home.obsidian.enable) {
path = "/home/${username}/Documents/Google Drive/Obsidian";
devices = [
"note"
"boox"
];
};
};
};
};
};
}