mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: update to 24.11
Reviewed-on: https://codeberg.org/leana8959/.files/pulls/1 Co-authored-by: Léana 江 <leana.jiang+git@icloud.com> Co-committed-by: Léana 江 <leana.jiang+git@icloud.com>
This commit is contained in:
parent
57ed96f0ea
commit
f6a89cba08
60 changed files with 696 additions and 752 deletions
|
|
@ -1,158 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs) nur;
|
||||
in
|
||||
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.cascadia-code # Used in tab bar
|
||||
];
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox-esr; # some options only works with firefox-esr
|
||||
# https://mozilla.github.io/policy-templates
|
||||
policies = {
|
||||
HardwareAcceleration = true;
|
||||
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 = "searxng";
|
||||
URLTemplate = "https://searxng.earth2077.fr/search?q={searchTerms}";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
profiles.leana = {
|
||||
id = 0;
|
||||
name = "leana";
|
||||
search = {
|
||||
force = true;
|
||||
default = "searxng";
|
||||
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";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
Searxng = {
|
||||
urls = [ { template = "https://searxng.earth2077.fr/search?query={searchTerms}"; } ];
|
||||
iconUpdateURL = "https://searxng.earth2077.fr/favicon.png";
|
||||
};
|
||||
Invidious = {
|
||||
urls = [ { template = "https://invidious.earth2077.fr/search?q={searchTerms}"; } ];
|
||||
definedAliases = [ "@yt" ];
|
||||
iconUpdateURL = "https://invidious.earth2077.fr/favicon-32x32.png";
|
||||
};
|
||||
Hoogle = {
|
||||
urls = [ { template = "https://hoogle.haskell.org/?hoogle={searchTerms}"; } ];
|
||||
iconUpdateURL = "https://hoogle.haskell.org/favicon.png";
|
||||
definedAliases = [ "@hg" ];
|
||||
};
|
||||
Genius = {
|
||||
urls = [ { template = "https://genius.com/search?q={searchTerms}"; } ];
|
||||
iconUpdateURL = "https://genius.com/favicon.ico";
|
||||
definedAliases = [ "@ge" ];
|
||||
};
|
||||
"NixOS Wiki" = {
|
||||
urls = [ { template = "https://nixos.wiki/index.php?search={searchTerms}"; } ];
|
||||
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||
definedAliases = [ "@nw" ];
|
||||
};
|
||||
"Wikipedia (en)".metaData.alias = "@wk";
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"layout.css.devPixelsPerPx" = 1.2;
|
||||
"browser.tabs.loadInBackground" = true;
|
||||
"browser.ctrlTab.sortByRecentlyUsed" = false;
|
||||
};
|
||||
userChrome =
|
||||
let
|
||||
onebar = pkgs.fetchFromGitea {
|
||||
domain = "git.gay";
|
||||
owner = "freeplay";
|
||||
repo = "Firefox-Onebar";
|
||||
rev = "197a5e5298985be3767da504bac153f3b75b63f7";
|
||||
hash = "sha256-+AG6dp92//zEROtKQgPPB0YCTGtHywM8AtobvguF1PM=";
|
||||
};
|
||||
in
|
||||
''
|
||||
#statuspanel-label {
|
||||
font-size: 18px !important;
|
||||
font-family: "Cascadia Code" !important;
|
||||
}
|
||||
.urlbar-input-box {
|
||||
font-size: 18px !important;
|
||||
font-family: "Cascadia Code" !important;
|
||||
}
|
||||
|
||||
${builtins.readFile "${onebar}/onebar.css"}
|
||||
'';
|
||||
|
||||
userContent = ''
|
||||
/* a css */
|
||||
'';
|
||||
extensions =
|
||||
let
|
||||
addons = nur.repos.rycee.firefox-addons;
|
||||
in
|
||||
[
|
||||
addons.ublock-origin
|
||||
addons.privacy-badger
|
||||
addons.sponsorblock
|
||||
addons.tridactyl
|
||||
addons.languagetool
|
||||
# flaky, find a better source to be fetched
|
||||
# addons.bypass-paywalls-clean
|
||||
addons.news-feed-eradicator
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -6,8 +6,8 @@ in
|
|||
|
||||
{
|
||||
imports = [
|
||||
./browser.nix
|
||||
./wm.nix
|
||||
./firefox.nix
|
||||
./gui.nix
|
||||
|
||||
# system-wide language servers, build tools, compilers
|
||||
./dev.nix
|
||||
|
|
@ -24,31 +24,28 @@ in
|
|||
pkgs.poppler_utils # pdfseparate, pdfunite
|
||||
myPkgs.easyscan
|
||||
|
||||
pkgs.deploy-rs
|
||||
myPkgs.nd
|
||||
|
||||
pkgs.ranger
|
||||
pkgs.discord
|
||||
|
||||
pkgs.fractal
|
||||
|
||||
pkgs.hacksaw
|
||||
pkgs.shotgun
|
||||
pkgs.vlc
|
||||
|
||||
pkgs.evolution
|
||||
pkgs.teams-for-linux
|
||||
pkgs.evolution
|
||||
|
||||
myPkgs.typst-mutilate
|
||||
pkgs.vlc
|
||||
pkgs.calibre
|
||||
|
||||
myPkgs.prop-solveur
|
||||
myPkgs.hbf
|
||||
|
||||
pkgs.agenix
|
||||
pkgs.lucky-commit
|
||||
];
|
||||
|
||||
programs = {
|
||||
kitty.enable = true;
|
||||
password-store.enable = true;
|
||||
feh.enable = true;
|
||||
sioyek.enable = true;
|
||||
cmus.enable = true;
|
||||
};
|
||||
|
||||
i18n.inputMethod.enabled = "fcitx5";
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,12 +6,18 @@ in
|
|||
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.jetbrains.idea-community
|
||||
pkgs.gnumake
|
||||
pkgs.cmake
|
||||
|
||||
# keyboard
|
||||
pkgs.clang-tools
|
||||
pkgs.qmk
|
||||
pkgs.wally-cli
|
||||
pkgs.iconv
|
||||
pkgs.sqlite
|
||||
|
||||
# pkgs.jetbrains.idea-community
|
||||
|
||||
# # keyboard
|
||||
# pkgs.clang-tools
|
||||
# pkgs.qmk
|
||||
# pkgs.wally-cli
|
||||
|
||||
# golang
|
||||
pkgs.go
|
||||
|
|
@ -38,22 +44,27 @@ in
|
|||
(pkgs.metals.override { jre = config.programs.java.package; })
|
||||
(pkgs.ammonite.override { jre = config.programs.java.package; })
|
||||
|
||||
pkgs.gnumake
|
||||
pkgs.cmake
|
||||
|
||||
pkgs.iconv
|
||||
pkgs.sqlite
|
||||
|
||||
# isabelle
|
||||
pkgs.isabelle
|
||||
myPkgs.isabelle-2023 # module ACF
|
||||
|
||||
# preview markdown
|
||||
pkgs.python3Packages.grip
|
||||
|
||||
# typst
|
||||
myPkgs.typst-mutilate
|
||||
|
||||
# xmonad development/configuartion
|
||||
pkgs.cabal-install
|
||||
(pkgs.haskellPackages.ghcWithPackages (self: [
|
||||
self.xmonad-contrib
|
||||
self.xmonad-extras
|
||||
]))
|
||||
pkgs.haskell-language-server
|
||||
];
|
||||
|
||||
programs.neovim.extraPackages = [
|
||||
# fish
|
||||
myPkgs.fish-lsp
|
||||
pkgs.fish-lsp
|
||||
|
||||
# golang
|
||||
pkgs.gopls
|
||||
|
|
@ -69,6 +80,8 @@ in
|
|||
pkgs.jdt-language-server
|
||||
];
|
||||
|
||||
programs.git.signing.signByDefault = true;
|
||||
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
extensions = [
|
||||
|
|
|
|||
44
nix/homeModules/named/carbon/firefox.nix
Normal file
44
nix/homeModules/named/carbon/firefox.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs) nur;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
programs.firefox = {
|
||||
|
||||
enable = true;
|
||||
|
||||
policies.SearchEngines = {
|
||||
Default = "searxng";
|
||||
Add = [
|
||||
{
|
||||
Name = "searxng";
|
||||
URLTemplate = "https://searxng.earth2077.fr/search?q={searchTerms}";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
profiles.leana = {
|
||||
settings = {
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"layout.css.devPixelsPerPx" = 1.2;
|
||||
"browser.tabs.loadInBackground" = true;
|
||||
"browser.ctrlTab.sortByRecentlyUsed" = false;
|
||||
};
|
||||
|
||||
extensions =
|
||||
let
|
||||
addons = nur.repos.rycee.firefox-addons;
|
||||
in
|
||||
[
|
||||
addons.sponsorblock
|
||||
# flaky, find a better source to be fetched
|
||||
# addons.bypass-paywalls-clean
|
||||
];
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
60
nix/homeModules/named/carbon/gui.nix
Normal file
60
nix/homeModules/named/carbon/gui.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs) myPkgs;
|
||||
in
|
||||
|
||||
{
|
||||
home.pointerCursor = {
|
||||
x11.enable = true;
|
||||
gtk.enable = true;
|
||||
name = "volantes_cursors";
|
||||
package = pkgs.volantes-cursors;
|
||||
size = 64;
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".xscreensaver".source = ./xscreensaver/.xscreensaver;
|
||||
".wallpaper".source = "${pkgs.wallpapers.nix-logo-lambda}/main.svg";
|
||||
};
|
||||
|
||||
# https://wiki.archlinux.org/title/java#Gray_window,_applications_not_resizing_with_WM,_menus_immediately_closing
|
||||
# fix all java things that don't scale with XMonad
|
||||
home.sessionVariables = {
|
||||
_JAVA_AWT_WM_NONREPARENTING = 1;
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
# Fonts
|
||||
pkgs.noto-fonts
|
||||
pkgs.noto-fonts-lgc-plus
|
||||
pkgs.noto-fonts-cjk-sans
|
||||
pkgs.noto-fonts-cjk-serif
|
||||
pkgs.noto-fonts-color-emoji
|
||||
pkgs.noto-fonts-emoji-blob-bin
|
||||
myPkgs.altiosevka-nerd-font-mono
|
||||
myPkgs.altiosevka
|
||||
pkgs.jetbrains-mono
|
||||
|
||||
# wm utilities
|
||||
pkgs.alsa-utils # used to fetch volume in xmobar
|
||||
myPkgs.xbrightness
|
||||
pkgs.xmobar
|
||||
pkgs.wired
|
||||
pkgs.dmenu
|
||||
pkgs.xclip
|
||||
pkgs.playerctl
|
||||
pkgs.hacksaw
|
||||
pkgs.shotgun
|
||||
# talk to xscreensaver
|
||||
pkgs.xscreensaver
|
||||
|
||||
# audio utilities
|
||||
pkgs.helvum
|
||||
pkgs.pavucontrol
|
||||
pkgs.easyeffects
|
||||
];
|
||||
|
||||
programs.xmobar.enable = true;
|
||||
programs.wired.enable = true;
|
||||
}
|
||||
|
|
@ -1,89 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (pkgs) myPkgs;
|
||||
|
||||
wallpapers = {
|
||||
nixos = pkgs.fetchurl {
|
||||
url = "https://c.wallhere.com/photos/49/ce/Linux_Nixos_operating_system_minimalism-2175179.jpg!d";
|
||||
hash = "sha256-RdrkvsVB6fHnyDZQ6wCGc7lUP7FoDYGvx2jfWB1WSvI=";
|
||||
};
|
||||
|
||||
sequoia = pkgs.fetchurl {
|
||||
url = "https://basicappleguy.com/s/SequoiaLight.png";
|
||||
hash = "sha256-F3vo07kdE19luHtrBO8Q+Rj0mk+UlgtOSwOVdFW8Vlk=";
|
||||
};
|
||||
|
||||
apple-pride-mac = pkgs.fetchurl {
|
||||
url = "https://basicappleguy.com/s/Pride_Mac2.png";
|
||||
hash = "sha256-PkGIlWf554Lk5e2gLDpDg+Rmb9qAniTiNvbV3/pppwA=";
|
||||
};
|
||||
|
||||
apple-nebula-ipad = pkgs.fetchurl {
|
||||
url = "https://basicappleguy.com/s/NebulaiPad.png";
|
||||
hash = "sha256-rpWxhCH7eIT7ktRAROvL56eRK0T6AsgGE+iI/CLUF3k=";
|
||||
};
|
||||
|
||||
"luz&amity_20_windz" = pkgs.fetchurl {
|
||||
url = "https://64.media.tumblr.com/a28bd2446401e30cc879a641a3038ac7/fcdeee73cdb01c35-18/s2048x3072/c6c89f6de58d26eeb9848d5f41b20ebbcec94b6d.pnj";
|
||||
hash = "sha256-isdyegUoGXZyFDCyBMCNadIv/jry82slXkjcdXpNKrY=";
|
||||
};
|
||||
|
||||
nixos-artwork-binary-black_8k = pkgs.fetchurl {
|
||||
url = "https://github.com/NixOS/nixos-artwork/blob/53ea652ec7d8af5d21fd2b79b6c49cb39078ddfb/wallpapers/nix-wallpaper-binary-black_8k.png?raw=true";
|
||||
hash = "sha256-MxEgvzWmdqMeI5GeI6Hzci6yd5iL44NDXyKQOuw+fLY=";
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
home.pointerCursor = {
|
||||
x11.enable = true;
|
||||
gtk.enable = true;
|
||||
name = "volantes_cursors";
|
||||
package = pkgs.volantes-cursors;
|
||||
size = 64;
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".xscreensaver".source = ./xscreensaver/.xscreensaver;
|
||||
".wallpaper".source = "${pkgs.wallpapers.y-combinator}/main.svg";
|
||||
};
|
||||
|
||||
# https://wiki.archlinux.org/title/java#Gray_window,_applications_not_resizing_with_WM,_menus_immediately_closing
|
||||
# fix all java things that don't scale with XMonad
|
||||
home.sessionVariables = {
|
||||
_JAVA_AWT_WM_NONREPARENTING = 1;
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
# Fonts
|
||||
pkgs.noto-fonts
|
||||
pkgs.noto-fonts-lgc-plus
|
||||
pkgs.noto-fonts-cjk-sans
|
||||
pkgs.noto-fonts-cjk-serif
|
||||
pkgs.noto-fonts-color-emoji
|
||||
pkgs.noto-fonts-emoji-blob-bin
|
||||
myPkgs.altiosevka-nerd-font-mono
|
||||
myPkgs.altiosevka
|
||||
|
||||
pkgs.xmobar
|
||||
pkgs.wired
|
||||
pkgs.jetbrains-mono
|
||||
|
||||
pkgs.dmenu
|
||||
pkgs.xclip
|
||||
pkgs.playerctl
|
||||
|
||||
pkgs.cabal-install
|
||||
(pkgs.haskellPackages.ghcWithPackages (self: [
|
||||
self.xmonad-contrib
|
||||
self.xmonad-extras
|
||||
]))
|
||||
|
||||
pkgs.haskell-language-server
|
||||
myPkgs.xbrightness
|
||||
pkgs.ranger
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue