mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
Compare commits
8 commits
f72f772cce
...
e54a445a14
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e54a445a14 | ||
![]() |
d5c0176815 | ||
![]() |
f2078bde2b | ||
![]() |
41e7d1efe0 | ||
![]() |
4b0016fe29 | ||
![]() |
06a9197492 | ||
![]() |
f33a8eb669 | ||
![]() |
7e98c1daa2 |
13 changed files with 107 additions and 33 deletions
|
@ -43,7 +43,6 @@ in
|
||||||
daVinci
|
daVinci
|
||||||
mpv
|
mpv
|
||||||
freetube
|
freetube
|
||||||
dissent
|
|
||||||
discordCanary
|
discordCanary
|
||||||
vesktop
|
vesktop
|
||||||
element
|
element
|
||||||
|
@ -57,13 +56,16 @@ in
|
||||||
systemMonitor
|
systemMonitor
|
||||||
usbImager
|
usbImager
|
||||||
virtManager
|
virtManager
|
||||||
# hypr
|
hypr
|
||||||
# wayland
|
wayland
|
||||||
theming
|
theming
|
||||||
polychromatic
|
polychromatic
|
||||||
dolphin
|
dolphin
|
||||||
espanso
|
espanso
|
||||||
claudeCode
|
claudeCode
|
||||||
|
jamesDsp
|
||||||
|
zoom
|
||||||
|
academic
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
11
modules/home/gui/apps/academic/default.nix
Executable file
11
modules/home/gui/apps/academic/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
let
|
||||||
|
importList =
|
||||||
|
let
|
||||||
|
content = builtins.readDir ./.;
|
||||||
|
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||||
|
in
|
||||||
|
map (name: ./. + "/${name}") dirContent;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = importList;
|
||||||
|
}
|
11
modules/home/gui/apps/academic/jabref/default.nix
Normal file
11
modules/home/gui/apps/academic/jabref/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.packages = builtins.attrValues {
|
||||||
|
inherit (pkgs)
|
||||||
|
jabref
|
||||||
|
;
|
||||||
|
};
|
||||||
|
}
|
11
modules/home/gui/apps/academic/paperlib/default.nix
Normal file
11
modules/home/gui/apps/academic/paperlib/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.packages = builtins.attrValues {
|
||||||
|
inherit (pkgs)
|
||||||
|
paperlib
|
||||||
|
;
|
||||||
|
};
|
||||||
|
}
|
11
modules/home/gui/apps/academic/zotero/default.nix
Normal file
11
modules/home/gui/apps/academic/zotero/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.packages = builtins.attrValues {
|
||||||
|
inherit (pkgs)
|
||||||
|
zotero-beta
|
||||||
|
;
|
||||||
|
};
|
||||||
|
}
|
|
@ -7,8 +7,7 @@
|
||||||
sponsorblock
|
sponsorblock
|
||||||
ublock-origin
|
ublock-origin
|
||||||
unpaywall
|
unpaywall
|
||||||
vimium
|
zotero-connector
|
||||||
side-view
|
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{ flake, ... }:
|
{ flake, osConfig, ... }:
|
||||||
let
|
let
|
||||||
inherit (flake.config.services)
|
inherit (flake.config.services) instances;
|
||||||
instances
|
inherit (flake.config.machines) devices;
|
||||||
;
|
localhost = instances.web.localhost.address0;
|
||||||
|
hostname = osConfig.networking.hostName;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"${instances.jellyfin.label}" = {
|
"${instances.jellyfin.label}" = {
|
||||||
|
@ -34,7 +35,14 @@ in
|
||||||
icon = ./icons/sx.png;
|
icon = ./icons/sx.png;
|
||||||
urls = [
|
urls = [
|
||||||
{
|
{
|
||||||
template = "https://${instances.searx.subdomain}.${instances.web.domains.url0}/search?q={searchTerms}";
|
template =
|
||||||
|
(
|
||||||
|
if hostname == devices.mars.name then
|
||||||
|
"http://${localhost}:${toString instances.searx.ports.port0}"
|
||||||
|
else
|
||||||
|
"https://${instances.searx.subdomain}.${instances.web.domains.url0}"
|
||||||
|
)
|
||||||
|
+ "/search?q={searchTerms}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ flake, ... }:
|
{ flake, osConfig, ... }:
|
||||||
let
|
let
|
||||||
configPath = ./config;
|
configPath = ./config;
|
||||||
flakedPath = configPath + /flake;
|
flakedPath = configPath + /flake;
|
||||||
|
@ -21,6 +21,7 @@ let
|
||||||
// (import (flakedPath + "/${searchEngine}") {
|
// (import (flakedPath + "/${searchEngine}") {
|
||||||
inherit
|
inherit
|
||||||
flake
|
flake
|
||||||
|
osConfig
|
||||||
;
|
;
|
||||||
})
|
})
|
||||||
) { } (builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
|
) { } (builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
|
||||||
|
@ -30,20 +31,21 @@ in
|
||||||
{
|
{
|
||||||
search = {
|
search = {
|
||||||
force = true;
|
force = true;
|
||||||
default = "Brave";
|
default = "SearXNG";
|
||||||
engines = aggregatedSearchEngines;
|
engines = aggregatedSearchEngines;
|
||||||
order = [
|
order = [
|
||||||
"AlternativeTo"
|
"AlternativeTo"
|
||||||
|
"Brave"
|
||||||
"Core Radio"
|
"Core Radio"
|
||||||
"Hackage"
|
"Hackage"
|
||||||
"Hoogle"
|
"Hoogle"
|
||||||
"Jellyfin"
|
"Jellyfin"
|
||||||
"SearXNG"
|
|
||||||
"Nix Home Manager"
|
"Nix Home Manager"
|
||||||
"Nix Options"
|
"Nix Options"
|
||||||
"Nix Packages"
|
"Nix Packages"
|
||||||
"Nix Wiki"
|
"Nix Wiki"
|
||||||
"PeerTube"
|
"PeerTube"
|
||||||
|
"SearXNG"
|
||||||
"Sci-Hub"
|
"Sci-Hub"
|
||||||
"Torrent Leech"
|
"Torrent Leech"
|
||||||
"Urban Dictionary"
|
"Urban Dictionary"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
flake,
|
flake,
|
||||||
|
osConfig,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -14,7 +15,7 @@ in
|
||||||
configPath = ./config;
|
configPath = ./config;
|
||||||
bookmarksPath = import (configPath + /bookmarks) { inherit flake; };
|
bookmarksPath = import (configPath + /bookmarks) { inherit flake; };
|
||||||
extensionsPath = import (configPath + /extensions) { inherit pkgs; };
|
extensionsPath = import (configPath + /extensions) { inherit pkgs; };
|
||||||
searchPath = import (configPath + /search) { inherit flake; };
|
searchPath = import (configPath + /search) { inherit flake osConfig; };
|
||||||
settingsPath = import (configPath + /settings);
|
settingsPath = import (configPath + /settings);
|
||||||
themesPath = import (configPath + /themes);
|
themesPath = import (configPath + /themes);
|
||||||
in
|
in
|
||||||
|
|
11
modules/home/gui/desktop/wayland/jamesDsp/default.nix
Executable file
11
modules/home/gui/desktop/wayland/jamesDsp/default.nix
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
home.packages = builtins.attrValues {
|
||||||
|
inherit (pkgs)
|
||||||
|
jamesdsp
|
||||||
|
;
|
||||||
|
};
|
||||||
|
}
|
|
@ -104,8 +104,8 @@ in
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
format-muted = " Muted";
|
format-muted = " Muted";
|
||||||
on-click = "easyeffects";
|
on-click = "easyeffects";
|
||||||
on-scroll-up = "pactl set-sink-volume alsa_output.usb-Focusrite_Scarlett_2i2_USB_Y818KFJ0C671CE-00.HiFi__Line1__sink +5% ; pactl set-sink-volume @DEFAULT_SINK@ 5%";
|
on-scroll-up = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
on-scroll-down = "pactl set-sink-volume alsa_output.usb-Focusrite_Scarlett_2i2_USB_Y818KFJ0C671CE-00.HiFi__Line1__sink -5% ; pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
on-scroll-down = "pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||||
scroll-step = 5;
|
scroll-step = 5;
|
||||||
format-icons = {
|
format-icons = {
|
||||||
headphone = "";
|
headphone = "";
|
||||||
|
|
|
@ -10,13 +10,12 @@ in
|
||||||
mullvad
|
mullvad
|
||||||
syncthing
|
syncthing
|
||||||
ollama
|
ollama
|
||||||
# hypr
|
hypr
|
||||||
|
wayland
|
||||||
searx
|
searx
|
||||||
portals
|
portals
|
||||||
xserver
|
xserver
|
||||||
flatpak
|
flatpak
|
||||||
plasma
|
|
||||||
sddm
|
|
||||||
wireGuard
|
wireGuard
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,23 +53,26 @@ in
|
||||||
mars = devices.mars;
|
mars = devices.mars;
|
||||||
deimos = devices.deimos;
|
deimos = devices.deimos;
|
||||||
deviceLogic = if hostname == mars.name then deimos else mars;
|
deviceLogic = if hostname == mars.name then deimos else mars;
|
||||||
|
|
||||||
|
vpnServers = [
|
||||||
|
"CA363"
|
||||||
|
"CA220"
|
||||||
|
"CA358"
|
||||||
|
"CA627"
|
||||||
|
];
|
||||||
|
|
||||||
|
vpnCommands = lib.concatStrings (
|
||||||
|
lib.imap0 (i: server: ''
|
||||||
|
vpn${toString i}:
|
||||||
|
sudo systemctl start wg-quick-Proton-${server}.service
|
||||||
|
|
||||||
|
'') vpnServers
|
||||||
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
text = ''
|
text = ''
|
||||||
vpn0:
|
rebuildboot:
|
||||||
sudo systemctl start wg-quick-Proton-CA363.service
|
nixos-rebuild boot --use-remote-sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
|
||||||
|
|
||||||
vpn1:
|
|
||||||
sudo systemctl start wg-quick-Proton-CA220.service
|
|
||||||
|
|
||||||
vpn2:
|
|
||||||
sudo systemctl start wg-quick-Proton-CA358.service
|
|
||||||
|
|
||||||
vpn3:
|
|
||||||
sudo systemctl start wg-quick-Proton-CA627.service
|
|
||||||
|
|
||||||
vpnoff:
|
|
||||||
sudo systemctl stop wg-quick-Proton-*.service
|
|
||||||
|
|
||||||
rebuild:
|
rebuild:
|
||||||
nixos-rebuild switch --use-remote-sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
|
nixos-rebuild switch --use-remote-sudo --flake ~/Files/Projects/dotfiles#${hostname} --show-trace
|
||||||
|
@ -85,6 +88,11 @@ in
|
||||||
|
|
||||||
${deviceLogic.name}:
|
${deviceLogic.name}:
|
||||||
ssh ${deviceLogic.ip.address0}
|
ssh ${deviceLogic.ip.address0}
|
||||||
|
|
||||||
|
vpnoff:
|
||||||
|
sudo systemctl stop wg-quick-Proton-*.service
|
||||||
|
|
||||||
|
${vpnCommands}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"./Files/Scripts/list.sh" = {
|
"./Files/Scripts/list.sh" = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue