mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-05-02 11:49:33 +00:00
~
This commit is contained in:
parent
fea9f7203e
commit
69bea24303
11 changed files with 93 additions and 53 deletions
|
@ -30,6 +30,7 @@
|
||||||
catppuccin-gh-file-explorer
|
catppuccin-gh-file-explorer
|
||||||
indie-wiki-buddy
|
indie-wiki-buddy
|
||||||
privacy-badger
|
privacy-badger
|
||||||
|
simple-tab-groups
|
||||||
stylus
|
stylus
|
||||||
tabliss
|
tabliss
|
||||||
ublock-origin
|
ublock-origin
|
||||||
|
@ -57,9 +58,11 @@
|
||||||
label = "Wikipedia";
|
label = "Wikipedia";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
"browser.startup.page" = 3;
|
||||||
"datareporting.healthreport.uploadEnabled" = false;
|
"datareporting.healthreport.uploadEnabled" = false;
|
||||||
"font.name.monospace.x-western" = "Fira Code";
|
"font.name.monospace.x-western" = "Fira Code";
|
||||||
"layout.css.prefers-color-scheme.content-override" = 0;
|
"layout.css.prefers-color-scheme.content-override" = 0;
|
||||||
|
"svg.context-properties.content.enabled" = true;
|
||||||
};
|
};
|
||||||
bookmarks = [
|
bookmarks = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
left = [
|
left = [
|
||||||
{
|
{
|
||||||
# https://codeberg.org/dnkl/yambar/issues/53#issuecomment-264088
|
# 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 = {
|
script = {
|
||||||
path = "${pkgs.playerctl}/bin/playerctl";
|
path = "${pkgs.playerctl}/bin/playerctl";
|
||||||
args = [
|
args = [
|
||||||
|
@ -20,9 +25,9 @@
|
||||||
"metadata"
|
"metadata"
|
||||||
"--format"
|
"--format"
|
||||||
''
|
''
|
||||||
status|string|{{status}}
|
status|string|{{status}}
|
||||||
artist|string|{{artist}}
|
artist|string|{{artist}}
|
||||||
title|string|{{title}}
|
title|string|{{title}}
|
||||||
''
|
''
|
||||||
];
|
];
|
||||||
content.map.conditions = {
|
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 = [
|
right = [
|
||||||
{
|
{
|
||||||
battery = {
|
battery = {
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
just # Handy way to save and run project-specific commands
|
just # Handy way to save and run project-specific commands
|
||||||
meson # Open source, fast and friendly build system made in Python
|
meson # Open source, fast and friendly build system made in Python
|
||||||
nodejs_23 # Event-driven I/O framework for the V8 JavaScript engine
|
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
|
pnpm # Fast, disk space efficient package manager for JavaScript
|
||||||
python313 # High-level dynamically-typed programming language
|
python313 # High-level dynamically-typed programming language
|
||||||
vala # Compiler for GObject type system
|
vala # Compiler for GObject type system
|
||||||
wxwabbitemu #!Cross-platform TI-8x emulator based on Wabbitemu
|
|
||||||
## language servers
|
## language servers
|
||||||
mesonlsp # Meson
|
mesonlsp # Meson
|
||||||
nil # Nix
|
nil # Nix
|
||||||
|
|
|
@ -4,11 +4,13 @@
|
||||||
inputs.raspberry-pi-nix.nixosModules.sd-image
|
inputs.raspberry-pi-nix.nixosModules.sd-image
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../base.nix
|
../base.nix
|
||||||
../../docker
|
../../modules/docker
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Packet forwarding
|
||||||
boot.kernel.sysctl = {
|
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 = [
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
|
@ -31,28 +33,30 @@
|
||||||
hostapd = {
|
hostapd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
radios.wlan0 = {
|
radios.wlan0 = {
|
||||||
band = "2g";
|
band = "5g";
|
||||||
channel = 7;
|
channel = 32;
|
||||||
countryCode = "US";
|
countryCode = "US";
|
||||||
networks.wlan0 = {
|
networks.wlan0 = {
|
||||||
authentication = {
|
authentication = {
|
||||||
mode = "wpa2-sha256";
|
mode = "wpa2-sha1";
|
||||||
wpaPassword = "techcat8";
|
wpaPassword = "techcat8";
|
||||||
};
|
};
|
||||||
|
bssid = "6e:00:6a:7c:f4:db";
|
||||||
logLevel = 1;
|
logLevel = 1;
|
||||||
|
settings.bridge = "br0";
|
||||||
ssid = "near";
|
ssid = "near";
|
||||||
};
|
};
|
||||||
settings = {
|
wifi4.capabilities = [ "HT40+" "SHORT-GI-20" "SHORT-GI-40" "MAX-AMSDU-3839" "DSSS_CCK-40" ];
|
||||||
ht_capab = lib.mkForce "[HT40][SHORT-GI-20]";
|
wifi5 = {
|
||||||
|
capabilities = [ "MAX-MPDU-3895" "SHORT-GI-80" "SU-BEAMFORMEE" ];
|
||||||
|
operatingChannelWidth = "80";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
# bridges.br0 = {
|
bridges.br0.interfaces = [ "end0" ];
|
||||||
# interfaces = [ "end0" "wlan0" ];
|
|
||||||
# };
|
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [ 22 ];
|
allowedTCPPorts = [ 22 ];
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
|
@ -60,20 +64,17 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
interfaces = {
|
interfaces = {
|
||||||
# br0 = {
|
br0 = {
|
||||||
# ipv4.addresses = [
|
# ipv4.addresses = [
|
||||||
# {
|
# {
|
||||||
# address = "10.0.0.2";
|
# address = "10.0.0.2";
|
||||||
# prefixLength = 24;
|
# prefixLength = 24;
|
||||||
# }
|
# }
|
||||||
# ];
|
# ];
|
||||||
# };
|
macAddress = "2c:cf:67:04:a4:b8";
|
||||||
end0.useDHCP = true;
|
};
|
||||||
wlan0.useDHCP = true;
|
end0.macAddress = "2c:cf:67:04:a4:b8";
|
||||||
};
|
};
|
||||||
networkmanager.unmanaged = [ "interface-name:wlan*" ];
|
|
||||||
useDHCP = false;
|
|
||||||
wireless.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc."wpa_supplicant.conf".text = "";
|
environment.etc."wpa_supplicant.conf".text = "";
|
||||||
|
|
23
nixos/pkgs/vasm-psi-x/default.nix
Normal file
23
nixos/pkgs/vasm-psi-x/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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
24
scripts/arvelie.py
Executable 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)
|
Loading…
Add table
Add a link
Reference in a new issue