Compare commits

..

18 commits

Author SHA1 Message Date
Jimbo 66869edc1a Add privacy module to waybar, fix pcmanfm against a config 2024-12-05 03:59:12 -05:00
Jimbo cbd69206a3 Add back more functions from Sway into Niri, add a standard naming scheme 2024-12-04 02:54:40 -05:00
Jimbo f3d5ff594a 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 d7a4ca2164 Add Niri, a scrolling tiling window manager. 2024-12-03 16:50:23 -05:00
Jimbo 018873c210 Add back hover color on tabbar in firefox 2024-12-02 00:37:14 -05:00
Jimbo ca2b3d8ad3 Fix broken CSS theme introduced with Firefox 133 2024-12-02 00:25:14 -05:00
Jimbo 8334819de5 Force amdgpu driver on Redmond 2024-12-01 20:22:19 -05:00
Jimbo 5db5d349bf Add autoupgrade 2024-12-01 20:10:31 -05:00
Jimbo 0b699858fc Standardize networking, add more Librewolf configs, standardize synatxing for Waybar, generalize app usage 2024-12-01 01:44:12 -05:00
Jimbo 5ae5531455 Variablize username in home, add more protections to Firefox/Librewolf's config 2024-11-29 13:53:06 -05:00
Jimbo 129e5e0d27 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 e48ac95c34 Figure out openconnect later 2024-11-24 21:25:03 -05:00
Jimbo 978d7d37cf God idk how to organize this but this feels good I guess 2024-11-24 20:48:02 -05:00
Jimbo 61527d8c08 Move systemd boot services into boot 2024-11-24 20:46:35 -05:00
Jimbo ff30aace39 Move firmware to devices 2024-11-24 20:44:28 -05:00
Jimbo c49adf9f4c More Redmond changes 2024-11-24 20:32:40 -05:00
Jimbo a0447a18da Generalize and split up more files 2024-11-24 20:02:09 -05:00
Jimbo 93541beed7 Move variables to more convenient folder 2024-11-24 16:53:49 -05:00
9 changed files with 93 additions and 29 deletions

2
.gitattributes vendored
View file

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

View file

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

View file

@ -0,0 +1,56 @@
{ 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,5 +1,25 @@
{ ... }: { 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, lib, ... }: { config, ... }:
{ {
imports = [ imports = [
./autostart ./autostart
@ -10,12 +10,7 @@
./theme ./theme
]; ];
options.home.niri.settings = lib.mkOption { home.file.".config/niri/config.kdl".text = ''
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,7 +144,6 @@
${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,24 +4,18 @@
prefer-no-csd prefer-no-csd
layout { layout {
border { gaps 7
width 3 center-focused-column "never"
active-color "#${config.look.colors.prime}" default-column-width { proportion 0.5; }
inactive-color "#${config.look.colors.split}"
}
focus-ring { focus-ring {
off off
} }
gaps 7 border {
center-focused-column "never" width 3
default-column-width { proportion 0.5; } active-color "#${config.look.colors.prime}"
inactive-color "#${config.look.colors.split}"
preset-column-widths {
proportion 0.33333
proportion 0.5
proportion 0.66667
} }
} }
''; '';

View file

@ -87,10 +87,11 @@
# Clocks # Clocks
longClockModule = { longClockModule = {
exec = pkgs.writeScript "longClock" '' exec = pkgs.writeScript "longClock" ''
time=$(date +'%a %b %-d %-I:%M:%S%p') time=$(date +'%a %b %d %l:%M:%S%p' | tr -s ' ')
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;
@ -99,6 +100,7 @@
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;
}; };
@ -249,7 +251,6 @@
"bluetooth" = bluetoothModule; "bluetooth" = bluetoothModule;
"network" = networkModule // { interface = "enp*"; }; "network" = networkModule // { interface = "enp*"; };
}; };
display2 = { display2 = {
name = "bar2"; name = "bar2";
position = "top"; position = "top";
@ -281,7 +282,6 @@
"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,7 +363,6 @@
"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.desktop.enable; enable = config.home.sway.enable;
package = null; package = null;
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
checkConfig = false; checkConfig = false;