mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-03 23:49:40 +00:00
ref: merged nixos and macOS configuration
This commit is contained in:
parent
76632a9d1c
commit
fcba199e19
21 changed files with 35 additions and 12 deletions
139
nix/home/leana@nixie/browser.nix
Normal file
139
nix/home/leana@nixie/browser.nix
Normal file
|
|
@ -0,0 +1,139 @@
|
|||
{ pkgs, nur, ... }: {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox-esr;
|
||||
policies =
|
||||
{ # https://mozilla.github.io/policy-templates/#hardwareacceleration
|
||||
# some options only works with firefox-esr
|
||||
DisableFirefoxScreenshots = true;
|
||||
DisablePocket = true;
|
||||
DisplayMenuBar = "never";
|
||||
DisplayBookmarksToolbar = "never";
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
OfferToSaveLoginsDefault = false;
|
||||
PasswordManagerEnabled = false;
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
TopSites = true;
|
||||
SponsoredTopSites = false;
|
||||
Highlights = false;
|
||||
Pocket = false;
|
||||
SponsoredPocket = false;
|
||||
};
|
||||
UserMessaging = {
|
||||
ExtensionRecommendations = false;
|
||||
SkipOnboarding = true;
|
||||
};
|
||||
DNSOverHTTPS = { Enabled = true; };
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
SearchEngines = {
|
||||
Default = "searxng";
|
||||
Add = [
|
||||
{
|
||||
Name = "invidious";
|
||||
URLTemplate = "https://invidious.earth2077.fr/q={searchTerms}";
|
||||
Alias = "@yt";
|
||||
}
|
||||
{
|
||||
Name = "searxng";
|
||||
URLTemplate =
|
||||
"https://searxng.earth2077.fr/search?q={searchTerms}";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
profiles.leana = {
|
||||
id = 0;
|
||||
name = "leana";
|
||||
search = {
|
||||
force = true;
|
||||
default = "searxng";
|
||||
engines = {
|
||||
Searxng = {
|
||||
urls = [{
|
||||
template = "https://searxng.earth2077.fr/search";
|
||||
params = [{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}];
|
||||
}];
|
||||
};
|
||||
Invidious = {
|
||||
urls = [{
|
||||
template = "https://invidious.earth2077.fr/search";
|
||||
params = [{
|
||||
name = "q";
|
||||
value = "{searchTerms}";
|
||||
}];
|
||||
}];
|
||||
definedAliases = [ "@yt" ];
|
||||
};
|
||||
"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";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
"NixOS Wiki" = {
|
||||
urls = [{
|
||||
template = "https://nixos.wiki/index.php?search={searchTerms}";
|
||||
}];
|
||||
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||
updateInterval = 24 * 60 * 60 * 1000;
|
||||
definedAliases = [ "@nw" ];
|
||||
};
|
||||
"Wikipedia (en)".metaData.alias = "@wk";
|
||||
};
|
||||
};
|
||||
extraConfig =
|
||||
# FIXME: not working?
|
||||
''
|
||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
|
||||
user_pref("full-screen-api.ignore-widgets", true);
|
||||
user_pref("media.ffmpeg.vaapi.enabled", true);
|
||||
user_pref("media.rdd-vpx.enabled", true);
|
||||
user_pref("layout.css.devPixelsPerPx", 1.2);
|
||||
'';
|
||||
userChrome = ''
|
||||
#statuspanel-label {
|
||||
font-size: 18px !important;
|
||||
font-family: "Cascadia Code" !important;
|
||||
}
|
||||
.urlbar-input-box {
|
||||
font-size: 18px !important;
|
||||
font-family: "Cascadia Code" !important;
|
||||
}
|
||||
'';
|
||||
userContent = ''
|
||||
# a css
|
||||
'';
|
||||
extensions = with nur.repos.rycee.firefox-addons; [
|
||||
ublock-origin
|
||||
privacy-badger
|
||||
sponsorblock
|
||||
bitwarden
|
||||
tridactyl
|
||||
languagetool
|
||||
bypass-paywalls-clean
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
35
nix/home/leana@nixie/default.nix
Normal file
35
nix/home/leana@nixie/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, unstable, ... }: {
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
imports = [ ./dev.nix ./gui.nix ./browser.nix ];
|
||||
|
||||
home = {
|
||||
username = "leana";
|
||||
homeDirectory = "/home/leana";
|
||||
stateVersion = "23.11";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# shell and script dependencies
|
||||
fish
|
||||
figlet
|
||||
gnused
|
||||
starship
|
||||
stow
|
||||
ripgrep
|
||||
fd
|
||||
fzf
|
||||
vivid
|
||||
|
||||
# utils
|
||||
btop
|
||||
tree
|
||||
rsync
|
||||
tldr
|
||||
unstable.typst
|
||||
|
||||
# music
|
||||
cmus
|
||||
cmusfm
|
||||
];
|
||||
}
|
||||
57
nix/home/leana@nixie/dev.nix
Normal file
57
nix/home/leana@nixie/dev.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ pkgs, ... }: {
|
||||
home.packages = with pkgs; [
|
||||
# Editors and utils
|
||||
tmux
|
||||
neovim
|
||||
vim
|
||||
hyperfine
|
||||
watchexec
|
||||
tea
|
||||
tokei
|
||||
|
||||
# Generic LSPs
|
||||
vscode-langservers-extracted # HTML/CSS/JSON/ESLint
|
||||
nodePackages.bash-language-server # Bash
|
||||
marksman # Markdown
|
||||
nodePackages.pyright # Python
|
||||
taplo # TOML
|
||||
texlab # LaTeX
|
||||
typescript # TypeScript
|
||||
nodePackages.vim-language-server # Vim Script
|
||||
typst-lsp # Typst
|
||||
lua-language-server # Lua
|
||||
|
||||
# git
|
||||
git
|
||||
git-lfs
|
||||
bat
|
||||
delta
|
||||
gnupg
|
||||
|
||||
nil
|
||||
alejandra
|
||||
nixfmt
|
||||
|
||||
(python39.withPackages (ps:
|
||||
with ps; [
|
||||
beautifulsoup4
|
||||
requests
|
||||
|
||||
python-lsp-server
|
||||
rope
|
||||
pyflakes
|
||||
mccabe
|
||||
pycodestyle
|
||||
pydocstyle
|
||||
autopep8
|
||||
]))
|
||||
jdk17
|
||||
rustup
|
||||
nodejs_20
|
||||
];
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
}
|
||||
84
nix/home/leana@nixie/gui.nix
Normal file
84
nix/home/leana@nixie/gui.nix
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
{ pkgs, wired, ... }: {
|
||||
|
||||
home.pointerCursor = {
|
||||
x11.enable = true;
|
||||
gtk.enable = true;
|
||||
name = "Adwaita";
|
||||
package = pkgs.gnome.adwaita-icon-theme;
|
||||
size = 32;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# fonts
|
||||
(nerdfonts.override { fonts = [ "CascadiaCode" "JetBrainsMono" "Meslo" ]; })
|
||||
lmodern
|
||||
noto-fonts
|
||||
noto-fonts-lgc-plus
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
noto-fonts-color-emoji
|
||||
noto-fonts-emoji-blob-bin
|
||||
hanazono
|
||||
cascadia-code
|
||||
|
||||
# Window Manager related
|
||||
dmenu
|
||||
xmobar
|
||||
scrot
|
||||
xclip
|
||||
feh
|
||||
xscreensaver # TODO: why the service option won't work ?
|
||||
wired.wired
|
||||
playerctl
|
||||
|
||||
# GUI apps
|
||||
# social
|
||||
discord
|
||||
element-desktop
|
||||
|
||||
# productivity
|
||||
bitwarden
|
||||
sioyek
|
||||
thunderbird
|
||||
gnome.eog
|
||||
];
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = "CaskaydiaCove Nerd Font Mono";
|
||||
size = 15;
|
||||
};
|
||||
settings = {
|
||||
foreground = "#000000";
|
||||
background = "#ffffff";
|
||||
confirm_os_window_close = 0;
|
||||
text_composition_strategy = "1.55 0";
|
||||
};
|
||||
extraConfig = ''
|
||||
background #f8f8f8
|
||||
foreground #2a2b33
|
||||
cursor #bbbbbb
|
||||
selection_background #ececec
|
||||
color0 #000000
|
||||
color8 #000000
|
||||
color1 #de3d35
|
||||
color9 #de3d35
|
||||
color2 #3e953a
|
||||
color10 #3e953a
|
||||
color3 #d2b67b
|
||||
color11 #d2b67b
|
||||
color4 #2f5af3
|
||||
color12 #2f5af3
|
||||
color5 #950095
|
||||
color13 #a00095
|
||||
color6 #3e953a
|
||||
color14 #3e953a
|
||||
color7 #bbbbbb
|
||||
color15 #ffffff
|
||||
selection_foreground #f8f8f8
|
||||
'';
|
||||
shellIntegration.enableFishIntegration = true;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue