mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-02-12 04:22:07 +00:00
~
This commit is contained in:
parent
573bf2337f
commit
25f2cc1a6e
4 changed files with 103 additions and 96 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "24.11";
|
stateVersion = "24.11";
|
||||||
|
@ -26,85 +26,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
firefox = {
|
|
||||||
enable = true;
|
|
||||||
profiles.default = {
|
|
||||||
isDefault = true;
|
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
||||||
canvasblocker
|
|
||||||
catppuccin-gh-file-explorer
|
|
||||||
privacy-badger
|
|
||||||
stylus
|
|
||||||
ublock-origin
|
|
||||||
violentmonkey
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
"browser.newtabpage.activity-stream.default.sites" = "https://en.wikipedia.org/";
|
|
||||||
"browser.newtabpage.activity-stream.discoverystream.enabled" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
|
|
||||||
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "";
|
|
||||||
"browser.newtabpage.activity-stream.newtabWallpapers.wallpaper" = "dark-beach";
|
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
||||||
"browser.newtabpage.activity-stream.telemetry" = false;
|
|
||||||
"browser.newtabpage.activity-stream.topSitesRows" = 2;
|
|
||||||
"browser.newtabpage.pinned" = [
|
|
||||||
{
|
|
||||||
url = "https://discord.com/app/";
|
|
||||||
label = "Discord";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
url = "https://pikidiary.lol/";
|
|
||||||
label = "PikiDiary";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
url = "https://en.wikipedia.org/";
|
|
||||||
label = "Wikipedia";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
"datareporting.healthreport.uploadEnabled" = false;
|
|
||||||
"font.name.monospace.x-western" = "Fira Code";
|
|
||||||
"layout.css.prefers-color-scheme.content-override" = 0;
|
|
||||||
};
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "NixOS search";
|
|
||||||
url = "https://search.nixos.org/packages";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Home Manager search";
|
|
||||||
url = "https://home-manager-options.extranix.com/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "NUR search";
|
|
||||||
url = "https://nur.nix-community.org/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "NixOS wiki";
|
|
||||||
url = "https://nixos.wiki/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
search = {
|
|
||||||
default = "DuckDuckGo";
|
|
||||||
engines = {
|
|
||||||
"Nix packages" = {
|
|
||||||
urls = [{
|
|
||||||
template = "https://search.nixos.org/packages";
|
|
||||||
params = [
|
|
||||||
{ name = "type"; value = "packages"; }
|
|
||||||
{ name = "query"; value = "{searchTerms}"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
|
||||||
};
|
|
||||||
|
|
||||||
"Bing".metaData.hidden = true;
|
|
||||||
};
|
|
||||||
order = [ "DuckDuckGo" "Nix packages" ];
|
|
||||||
force = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "roxwize";
|
userName = "roxwize";
|
||||||
|
@ -115,22 +36,6 @@
|
||||||
font.name = "Fira Code";
|
font.name = "Fira Code";
|
||||||
themeFile = "mayukai";
|
themeFile = "mayukai";
|
||||||
};
|
};
|
||||||
neovim = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
vimAlias = true;
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
|
||||||
vim-just
|
|
||||||
vim-sleuth
|
|
||||||
vim-wakatime
|
|
||||||
];
|
|
||||||
extraLuaConfig = ''
|
|
||||||
vim.opt.tabstop = 4
|
|
||||||
vim.opt.softtabstop = 4
|
|
||||||
vim.opt.shiftwidth = 4
|
|
||||||
vim.opt.expandtab = true
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -2,5 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./base.nix
|
./base.nix
|
||||||
|
./firefox.nix
|
||||||
|
./neovim.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
82
nixos/home/firefox.nix
Normal file
82
nixos/home/firefox.nix
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
profiles.default = {
|
||||||
|
isDefault = true;
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
canvasblocker
|
||||||
|
catppuccin-gh-file-explorer
|
||||||
|
privacy-badger
|
||||||
|
stylus
|
||||||
|
ublock-origin
|
||||||
|
violentmonkey
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
"browser.newtabpage.activity-stream.default.sites" = "https://en.wikipedia.org/";
|
||||||
|
"browser.newtabpage.activity-stream.discoverystream.enabled" = false;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
|
||||||
|
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "";
|
||||||
|
"browser.newtabpage.activity-stream.newtabWallpapers.wallpaper" = "dark-beach";
|
||||||
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||||
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
|
"browser.newtabpage.activity-stream.telemetry" = false;
|
||||||
|
"browser.newtabpage.activity-stream.topSitesRows" = 2;
|
||||||
|
"browser.newtabpage.pinned" = [
|
||||||
|
{
|
||||||
|
url = "https://discord.com/app/";
|
||||||
|
label = "Discord";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "https://pikidiary.lol/";
|
||||||
|
label = "PikiDiary";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
url = "https://en.wikipedia.org/";
|
||||||
|
label = "Wikipedia";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
"datareporting.healthreport.uploadEnabled" = false;
|
||||||
|
"font.name.monospace.x-western" = "Fira Code";
|
||||||
|
"layout.css.prefers-color-scheme.content-override" = 0;
|
||||||
|
};
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "NixOS search";
|
||||||
|
url = "https://search.nixos.org/packages";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Home Manager search";
|
||||||
|
url = "https://home-manager-options.extranix.com/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "NUR search";
|
||||||
|
url = "https://nur.nix-community.org/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "NixOS wiki";
|
||||||
|
url = "https://nixos.wiki/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
search = {
|
||||||
|
default = "DuckDuckGo";
|
||||||
|
engines = {
|
||||||
|
"Nix packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Bing".metaData.hidden = true;
|
||||||
|
"Google".metaData.hidden = true;
|
||||||
|
};
|
||||||
|
order = [ "DuckDuckGo" "Nix packages" ];
|
||||||
|
force = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
18
nixos/home/neovim.nix
Normal file
18
nixos/home/neovim.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
vimAlias = true;
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
vim-just
|
||||||
|
vim-sleuth
|
||||||
|
vim-wakatime
|
||||||
|
];
|
||||||
|
extraLuaConfig = ''
|
||||||
|
vim.opt.tabstop = 4
|
||||||
|
vim.opt.softtabstop = 4
|
||||||
|
vim.opt.shiftwidth = 4
|
||||||
|
vim.opt.expandtab = true
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue