Compare commits

..

19 commits

Author SHA1 Message Date
Jimbo 66300cae57 Add more Niri hotkeys 2024-12-05 14:40:12 -05:00
Jimbo 032439e4dc Add privacy module to waybar, fix pcmanfm against a config 2024-12-05 03:59:12 -05:00
Jimbo 8d1271c017 Add back more functions from Sway into Niri, add a standard naming scheme 2024-12-04 02:54:40 -05:00
Jimbo ac4da6559d Add tuigreet in place of direct login to sway, fix startup issue with mpd calling nfs mount before existing network 2024-12-04 00:46:02 -05:00
Jimbo b3d9d2f396 Add Niri, a scrolling tiling window manager. 2024-12-03 16:50:23 -05:00
Jimbo 325c176464 Add back hover color on tabbar in firefox 2024-12-02 00:37:14 -05:00
Jimbo 99d26740dd Fix broken CSS theme introduced with Firefox 133 2024-12-02 00:25:14 -05:00
Jimbo dc2a40eda1 Force amdgpu driver on Redmond 2024-12-01 20:22:19 -05:00
Jimbo 18bb13226c Add autoupgrade 2024-12-01 20:10:31 -05:00
Jimbo 0042da23be Standardize networking, add more Librewolf configs, standardize synatxing for Waybar, generalize app usage 2024-12-01 01:44:12 -05:00
Jimbo f4acc6c10d Variablize username in home, add more protections to Firefox/Librewolf's config 2024-11-29 13:53:06 -05:00
Jimbo 137a9ab6d9 Mostly security changes, add nouveau as a boot option, simplify settings and prepare for home-manager options 2024-11-29 01:50:47 -05:00
Jimbo 6021f46c20 Figure out openconnect later 2024-11-24 21:25:03 -05:00
Jimbo 4e21106824 God idk how to organize this but this feels good I guess 2024-11-24 20:48:02 -05:00
Jimbo d1124e6f93 Move systemd boot services into boot 2024-11-24 20:46:35 -05:00
Jimbo 88dabef080 Move firmware to devices 2024-11-24 20:44:28 -05:00
Jimbo 007ad9fce9 More Redmond changes 2024-11-24 20:32:40 -05:00
Jimbo 13d24f42ea Generalize and split up more files 2024-11-24 20:02:09 -05:00
Jimbo 9c03712908 Move variables to more convenient folder 2024-11-24 16:53:49 -05:00
9 changed files with 29 additions and 93 deletions

2
.gitattributes vendored
View file

@ -1 +1 @@
variables/secrets/** filter=git-crypt diff=git-crypt modules/extras/variables/secrets/** filter=git-crypt diff=git-crypt

View file

@ -1,6 +1,5 @@
{ ... }: { ... }:
{ {
home-manager.users.jimbo = { home-manager.users.jimbo = {
}; };
} }

View file

@ -1,56 +0,0 @@
{ lib, config, ... }:
{
options.secrets = lib.mkOption {
type = lib.types.attrs;
default = {};
};
config.secrets = {
# User passwords, generated with 'mkpasswd -m sha-512'
jimboAccPass = "$6$gYpE.pG/zPXgin06$2kydjDfd0K62Dhf9P0PFvJhRNz6xIC/bHYaf/XYqyKcLyZNzPQpy8uy9tCRcSYlj1wwBhzVtTRyItwajOHCEj0";
# Cloudflare API key
flareApiKey = "ICUi1Zj0e_boCkeUJbXP9dJusv_qX_zhKWQGPcFe";
# Wireguard keys, generated with the wg command
wgServerPriv = "WHxxi53Yp8NRZhT+BQnvC62BckOeG1x2SOvkWlm0tGo=";
wgClientPriv = "MK9j0eYlgv+MZ9sSYO6C3lfqScpLPwcBqEckJ7o7tU4=";
# Icecast, plaintext
castAdminPass = "Gw9P8tW$omeq#reZA$b^jDy9VN";
castSourcePass = "KkFDeM0SHIL*s6!d4x*a4b#bcq";
# Photoprism, plaintext
prismAdminPass = "gr3SkIqSBjDmypyxU!Zj9*CJ4X";
# Matrix secrets
matrixSecret = "bea7db528a95d8225c5fe6bf92614816fe9d31496b510dff78b1608cfb36f82a";
coturnSecret = "@OvhK7r4wu!71d9dcmQ$Z6PkqA#LP0niyJHLTiMVJFILo7@6ks3wwmjWJ*zDBV43";
# Pixelfed secret, must be 32 characters long
pixelfedKey = ''APP_KEY=W9qein6055k9GdvwGbdJ6WxQ71Lr51cQ'';
# Transmission credentials, plaintext
transmissionCredFile = ''
{
"rpc-username": "jimbo",
"rpc-password": "w%QbIEZhoi4jh*j*PKaZLkKk96"
}
'';
# Email cleartext passwords
noreplyPassword = "5mpEp3P^n6A%r3fznJA5";
# Email account hashes, generated with 'mkpasswd -m bcrypt'
noreplyMailHash = "$2b$05$7VibcFKXy5Ff9sUMh3KWBeSXkInXNeaADa71Md/swt5RCk5s7UnM2";
jimboMailHash = "$2a$12$vHeFInRpfp.lpfR/k8ptNecs3ztKjkRTr9hae0DP8yEN1ZHKM2sxe";
lunaMailHash = "$2y$10$ksBfmuuojCWnzFqpBDoE/OoGZyqfP.Luo2il7wWcqHemHgqhpQdi6";
cornMailHash = "$2b$05$qpG1aOA2tv3zLjzwh8/kyO3zZ8BZxvXcav0ioX7Y3Tps0tyhE/c7q";
tinyMailHash = "$2a$12$beq/ZO3hRz5mmGe9Cvvx8u/sNJcjVHlQQ5axv8IBmdJav60n7fuK6";
# IPs
jimIP = "99.247.177.43";
lunaIP = "71.87.124.226";
cornIP = "24.66.98.13";
};
}

View file

@ -1,25 +1,5 @@
{ lib, ... }: { ... }:
{ {
options.home = {
sway.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable SwayWM";
};
niri = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable SwayWM";
};
settings = lib.mkOption {
type = lib.types.attrs;
default = {};
};
};
};
imports = [ imports = [
./niri ./niri
./programs ./programs

View file

@ -1,4 +1,4 @@
{ config, ... }: { config, lib, ... }:
{ {
imports = [ imports = [
./autostart ./autostart
@ -10,7 +10,12 @@
./theme ./theme
]; ];
home.file.".config/niri/config.kdl".text = '' options.home.niri.settings = lib.mkOption {
type = lib.types.attrs;
default = {};
};
config.home.file.".config/niri/config.kdl".text = ''
${builtins.readFile config.home.niri.settings.autostart} ${builtins.readFile config.home.niri.settings.autostart}
${builtins.readFile config.home.niri.settings.hotkeys} ${builtins.readFile config.home.niri.settings.hotkeys}
${builtins.readFile config.home.niri.settings.inputs} ${builtins.readFile config.home.niri.settings.inputs}

View file

@ -144,6 +144,7 @@
${primeMod}+Shift+f { fullscreen-window; } ${primeMod}+Shift+f { fullscreen-window; }
// Niri specific // Niri specific
${primeMod}+r { switch-preset-column-width; }
${primeMod}+Shift+r { reset-window-height; } ${primeMod}+Shift+r { reset-window-height; }
${primeMod}+Shift+c { center-column; } ${primeMod}+Shift+c { center-column; }
} }

View file

@ -4,19 +4,25 @@
prefer-no-csd prefer-no-csd
layout { layout {
gaps 7
center-focused-column "never"
default-column-width { proportion 0.5; }
focus-ring {
off
}
border { border {
width 3 width 3
active-color "#${config.look.colors.prime}" active-color "#${config.look.colors.prime}"
inactive-color "#${config.look.colors.split}" inactive-color "#${config.look.colors.split}"
} }
focus-ring {
off
}
gaps 7
center-focused-column "never"
default-column-width { proportion 0.5; }
preset-column-widths {
proportion 0.33333
proportion 0.5
proportion 0.66667
}
} }
''; '';
} }

View file

@ -87,11 +87,10 @@
# Clocks # Clocks
longClockModule = { longClockModule = {
exec = pkgs.writeScript "longClock" '' exec = pkgs.writeScript "longClock" ''
time=$(date +'%a %b %d %l:%M:%S%p' | tr -s ' ') time=$(date +'%a %b %-d %-I:%M:%S%p')
date=$(date "+%Y-%m-%d") date=$(date "+%Y-%m-%d")
echo "{\"text\":\" $time\",\"tooltip\":\"$date\"}" echo "{\"text\":\" $time\",\"tooltip\":\"$date\"}"
''; '';
on-click = ''wl-copy $(date "+%Y-%m-%d-%H%M%S"); notify-send "Date copied."'';
format = "{}"; format = "{}";
return-type = "json"; return-type = "json";
interval = 1; interval = 1;
@ -100,7 +99,6 @@
shortClockModule = { shortClockModule = {
exec = "echo ' '$(date +'%l:%M%p' | sed 's/^ //')"; exec = "echo ' '$(date +'%l:%M%p' | sed 's/^ //')";
on-click = ''wl-copy $(date "+%Y-%m-%d-%H%M%S"); notify-send "Date copied."'';
interval = 60; interval = 60;
tooltip = false; tooltip = false;
}; };
@ -251,6 +249,7 @@
"bluetooth" = bluetoothModule; "bluetooth" = bluetoothModule;
"network" = networkModule // { interface = "enp*"; }; "network" = networkModule // { interface = "enp*"; };
}; };
display2 = { display2 = {
name = "bar2"; name = "bar2";
position = "top"; position = "top";
@ -282,6 +281,7 @@
"custom/vram" = vramModule; "custom/vram" = vramModule;
"custom/clock-long" = longClockModule; "custom/clock-long" = longClockModule;
}; };
display3 = { display3 = {
name = "bar3"; name = "bar3";
position = "top"; position = "top";
@ -363,6 +363,7 @@
"network" = networkModule; "network" = networkModule;
}; };
}; };
style = '' style = ''
* { * {
border: 0; border: 0;

View file

@ -11,7 +11,7 @@
]; ];
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = config.home.sway.enable; enable = config.home.desktop.enable;
package = null; package = null;
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
checkConfig = false; checkConfig = false;