Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2026-05-03 00:00:08 +02:00
8 changed files with 71 additions and 25 deletions

View File

@@ -9,6 +9,7 @@
./system-modules/cache.nix ./system-modules/cache.nix
./system-modules/calendar.nix ./system-modules/calendar.nix
./system-modules/dm.nix ./system-modules/dm.nix
./system-modules/davfs.nix
./system-modules/docker.nix ./system-modules/docker.nix
./system-modules/fcitx5.nix ./system-modules/fcitx5.nix
./system-modules/fonts.nix ./system-modules/fonts.nix

View File

@@ -27,15 +27,15 @@
}, },
"NxNORTH": { "NxNORTH": {
"base": { "base": {
"foreground": "#d7e3f3", "foreground": "#dbe7ef",
"background": "#050b13" "background": "#070d11"
}, },
"to_alter": { "to_alter": {
"accent": "#6291cf", "accent": "#72a2bf",
"secondary": "#5f5fd2", "secondary": "#fc3535",
"tertiary": "#999999", "tertiary": "#83ae8a",
"special": "#cf9f61", "special": "#bf8f71",
"weird": "#c461cf" "weird": "#a871bf"
} }
}, },
"NxDCS": { "NxDCS": {

View File

@@ -2,27 +2,29 @@
v = "nxc"; v = "nxc";
user = "lennart"; user = "lennart";
domain = hyper.domain; domain = hyper.domain;
calendars = [ calendars = let
bs = "https://n.${domain}/remote.php/dav/calendars/lennart";
in [
{ {
name = "Preservation"; name = "Preservation";
primary = true; primary = true;
url = "https://${v}.${domain}/${user}/calendars/preservation/"; url = "${bs}/preservation/";
color = "#dddddd"; color = "#dddddd";
} }
{ {
name = "Effort"; name = "Effort";
url = "https://${v}.${domain}/${user}/calendars/effort/"; url = "${bs}/effort/";
color = "#dd2222"; color = "#dd2222";
} }
{ {
name = "Experience"; name = "Experience";
url = "https://${v}.${domain}/${user}/calendars/experience/"; url = "${bs}/experience/";
color = "#2222dd"; color = "#2222dd";
} }
{ {
name = "Leisure"; name = "Leisure";
# name = "Exposure"; # name = "Exposure";
url = "https://${v}.${domain}/${user}/calendars/leisure/"; url = "${bs}/leisure/";
# url = "https://${v}.${domain}/${user}/exposure/"; # url = "https://${v}.${domain}/${user}/exposure/";
color = "#22aa22"; color = "#22aa22";
} }
@@ -32,11 +34,11 @@
# color = "#8800CC"; # color = "#8800CC";
# } # }
# { # {
{ # {
name = "Family"; # name = "Family";
url = "https://${v}.${domain}/shared/calendars/family/"; # url = "${bs}/family/";
color = "#dddd22"; # color = "#dddd22";
} # }
{ {
name = "Sleep as Android"; name = "Sleep as Android";
url = secrets.calendar.sleep-as-android-url; url = secrets.calendar.sleep-as-android-url;
@@ -79,7 +81,7 @@ in {
inherit primary; inherit primary;
remote = { remote = {
inherit url name; inherit url name;
userName = hyper.user; # my globally set username userName = user;
}; };
}; };
in lib.attrsets.mergeAttrsList ( in lib.attrsets.mergeAttrsList (
@@ -99,7 +101,7 @@ in {
"calendar.registry.${to_safe_name calendar.name}.name" = name; "calendar.registry.${to_safe_name calendar.name}.name" = name;
"calendar.registry.${to_safe_name calendar.name}.type" = type; "calendar.registry.${to_safe_name calendar.name}.type" = type;
"calendar.registry.${to_safe_name calendar.name}.uri" = url; "calendar.registry.${to_safe_name calendar.name}.uri" = url;
"calendar.registry.${to_safe_name calendar.name}.username" = hyper.user; "calendar.registry.${to_safe_name calendar.name}.username" = user;
"calendar.registry.${to_safe_name calendar.name}.readOnly" = read-only; "calendar.registry.${to_safe_name calendar.name}.readOnly" = read-only;
}) calendars }) calendars
) // { ) // {

View File

@@ -52,7 +52,7 @@ in {
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
unstable.chatterino2 unstable.chatterino2
streamlink unstable.streamlink
# mpv # mpv
]; ];
file = { file = {

View File

@@ -31,6 +31,29 @@ in /* css */ ''
} }
} }
@-moz-document url-prefix("https://n.nx2.site/") {
:root, [data-theme-dark] {
--color-main-background: #00000055;
--color-main-background-rgb: 0,0,0;
--color-primary-element-light: #550000;
}
.app-navigation, .app-content {
background: rgba(0,0,0,0.8) !important;
backdrop-filter: blur(5px) !important;
}
.files-list__row-head, .files-list__tfoot {
background: rgba(0,0,0,0.5) !important;
}
.fc-day-today {
background: #ff000055 !important;
}
.files-list__thead {
background: transparent !important;
}
}
@-moz-document domain(reddit.com) { @-moz-document domain(reddit.com) {
header { header {
background-color: rgba(${f background},${builtins.toString rice.transparency}) !important; background-color: rgba(${f background},${builtins.toString rice.transparency}) !important;
@@ -231,6 +254,7 @@ in /* css */ ''
border: ${toString rice.border-width}px solid ${border} !important; border: ${toString rice.border-width}px solid ${border} !important;
} }
} }
'' ''
# @-moz-document domain(chatgpt.com) { # @-moz-document domain(chatgpt.com) {
# body, html , .bg-token-sidebar-surface-primary { # body, html , .bg-token-sidebar-surface-primary {

19
system-modules/davfs.nix Normal file
View File

@@ -0,0 +1,19 @@
{ pkgs, ... }@all: with all; let
# user = "lennart";
in {
services.davfs2 = {
enable = true;
settings = {
globalSection = {
use_locks = true;
};
sections = {
"${hyper.home}/webdav" = {
gui_optimize = true;
};
};
};
};
users.users."${hyper.user}".extraGroups = [ "davfs2" ];
}

View File

@@ -18,8 +18,8 @@
package = pkgs.ly; package = pkgs.ly;
settings = with rice.color; let h = rice.lib.nohash; in { settings = with rice.color; let h = rice.lib.nohash; in {
allow_empty_password = false; allow_empty_password = false;
# animation = "matrix"; animation = "matrix";
animation = "gameoflife"; # animation = "gameoflife";
animation_timeout_sec = 0; # forever animation_timeout_sec = 0; # forever
asterisk = "*"; asterisk = "*";
auth_fails = 10; auth_fails = 10;

View File

@@ -3,12 +3,12 @@
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
substituters = [ substituters = [
"https://cache.nixos.org/" "https://cache.nixos.org/"
"https://cache.nixos-cuda.org" # "https://cache.nixos-cuda.org"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" # "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
]; ];
}; };
} }