1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-03-12 23:43:27 +00:00
This commit is contained in:
Rae 5e 2025-03-10 23:34:04 -04:00
parent fea9f7203e
commit 69bea24303
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
11 changed files with 93 additions and 53 deletions

View file

@ -30,6 +30,7 @@
catppuccin-gh-file-explorer
indie-wiki-buddy
privacy-badger
simple-tab-groups
stylus
tabliss
ublock-origin
@ -57,9 +58,11 @@
label = "Wikipedia";
}
];
"browser.startup.page" = 3;
"datareporting.healthreport.uploadEnabled" = false;
"font.name.monospace.x-western" = "Fira Code";
"layout.css.prefers-color-scheme.content-override" = 0;
"svg.context-properties.content.enabled" = true;
};
bookmarks = [
{

View file

@ -13,6 +13,11 @@
left = [
{
# https://codeberg.org/dnkl/yambar/issues/53#issuecomment-264088
# nixos ONLY ignores indentations in strings if they're spaces. stupid fucking piece of shit.
# "Supporting tabs is wrong" MY ASS. supporting tabs is right. i can understand if you use
# spaces but if you actively call them "outlawed" (yaml) and make them seem impractical or strange
# then im sorry but i am going to smite you with the wrath of GOD. FUCK!!
# i refuse to concede. i will simply not indent the offending line at all. dickweeds
script = {
path = "${pkgs.playerctl}/bin/playerctl";
args = [
@ -20,9 +25,9 @@
"metadata"
"--format"
''
status|string|{{status}}
artist|string|{{artist}}
title|string|{{title}}
status|string|{{status}}
artist|string|{{artist}}
title|string|{{title}}
''
];
content.map.conditions = {
@ -39,6 +44,16 @@
};
}
];
center = [
{
script = {
path = builtins.toString ../../scripts/arvelie.py;
args = [ "-y" ];
poll-interval = 30 * 1000; # TODO maybe try to see if you can sync this with the changing of the day...
content.string.text = "{date}";
};
}
];
right = [
{
battery = {

View file

@ -16,10 +16,10 @@
just # Handy way to save and run project-specific commands
meson # Open source, fast and friendly build system made in Python
nodejs_23 # Event-driven I/O framework for the V8 JavaScript engine
nurl # Command-line tool to generate Nix fetcher calls from repository URLs
pnpm # Fast, disk space efficient package manager for JavaScript
python313 # High-level dynamically-typed programming language
vala # Compiler for GObject type system
wxwabbitemu #!Cross-platform TI-8x emulator based on Wabbitemu
## language servers
mesonlsp # Meson
nil # Nix

View file

@ -4,11 +4,13 @@
inputs.raspberry-pi-nix.nixosModules.sd-image
./hardware-configuration.nix
../base.nix
../../docker
../../modules/docker
];
# Packet forwarding
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = true;
"net.ipv6.conf.all.forwarding" = 1;
"net.ipv4.conf.all.forwarding" = 1;
};
users.users.root.openssh.authorizedKeys.keys = [
@ -31,28 +33,30 @@
hostapd = {
enable = true;
radios.wlan0 = {
band = "2g";
channel = 7;
band = "5g";
channel = 32;
countryCode = "US";
networks.wlan0 = {
authentication = {
mode = "wpa2-sha256";
mode = "wpa2-sha1";
wpaPassword = "techcat8";
};
bssid = "6e:00:6a:7c:f4:db";
logLevel = 1;
settings.bridge = "br0";
ssid = "near";
};
settings = {
ht_capab = lib.mkForce "[HT40][SHORT-GI-20]";
wifi4.capabilities = [ "HT40+" "SHORT-GI-20" "SHORT-GI-40" "MAX-AMSDU-3839" "DSSS_CCK-40" ];
wifi5 = {
capabilities = [ "MAX-MPDU-3895" "SHORT-GI-80" "SU-BEAMFORMEE" ];
operatingChannelWidth = "80";
};
};
};
};
networking = {
# bridges.br0 = {
# interfaces = [ "end0" "wlan0" ];
# };
bridges.br0.interfaces = [ "end0" ];
firewall = {
allowedTCPPorts = [ 22 ];
extraCommands = ''
@ -60,20 +64,17 @@
'';
};
interfaces = {
# br0 = {
# ipv4.addresses = [
# {
# address = "10.0.0.2";
# prefixLength = 24;
# }
# ];
# };
end0.useDHCP = true;
wlan0.useDHCP = true;
br0 = {
# ipv4.addresses = [
# {
# address = "10.0.0.2";
# prefixLength = 24;
# }
# ];
macAddress = "2c:cf:67:04:a4:b8";
};
end0.macAddress = "2c:cf:67:04:a4:b8";
};
networkmanager.unmanaged = [ "interface-name:wlan*" ];
useDHCP = false;
wireless.enable = true;
};
environment.etc."wpa_supplicant.conf".text = "";

View file

@ -0,0 +1,23 @@
# TODO
with import <nixpkgs> {};
stdenv.mkDerivation rec {
pname = "vasm-psi-x-m68k";
version = "1.1.2";
src = fetchFromGitHub {
owner = "NaotoNTP";
repo = "vasm-psi-x";
rev = "v${version}";
hash = "sha256-JuJoh99Dr1wDFbvpD28tgxyG/JH6B6NANoTVZnjhqf0=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DVASM_CPU=m68k" "-DVASM_SYNTAX=psi-x" ];
meta = with lib; {
description = "Portable and retargetable assembler (Motorola 68000)";
homepage = "https://github.com/NaotoNTP/vasm-psi-x";
license = licenses.free;
};
}

View file

@ -1,26 +0,0 @@
{ stdenv, fetchFromGitHub, cmake, wxGTK32, lib }: stdenv.mkDerivation {
pname = "wxwabbitemu";
version = "0.1.0";
src = fetchFromGitHub {
owner = "alberthdev";
repo = "wxwabbitemu";
rev = "7b9ef9d3109355c053d83ae6be67cd75dd6ca8dc";
sha256 = "035qlnk385qkkvwfhfd76cf70h5z2yhw0dzbay3pydx1qskn40dj";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
wxGTK32
];
meta = with lib; {
description = "Cross-platform TI-8x emulator based on Wabbitemu";
homepage = "https://github.com/alberthdev/wxwabbitemu";
license = licenses.gpl2;
platform = platforms.linux;
};
}

24
scripts/arvelie.py Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env python3
from datetime import datetime
from sys import argv
from time import sleep
months = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")
inception = 2024 # 30 nov 24 21:37
now = datetime.now().timetuple()
day = now.tm_yday
month = day // 14
if month >= 26:
month = "+"
else:
month = months[month]
out = str(now.tm_year - inception).zfill(2) + month + str(day % 14 - 1).zfill(2)
try:
_ = argv.index("-y")
print("date|string|" + out + "\n")
except ValueError:
print(out)