Compare commits
18 commits
66300cae57
...
66869edc1a
Author | SHA1 | Date | |
---|---|---|---|
Jimbo | 66869edc1a | ||
Jimbo | cbd69206a3 | ||
Jimbo | f3d5ff594a | ||
Jimbo | d7a4ca2164 | ||
Jimbo | 018873c210 | ||
Jimbo | ca2b3d8ad3 | ||
Jimbo | 8334819de5 | ||
Jimbo | 5db5d349bf | ||
Jimbo | 0b699858fc | ||
Jimbo | 5ae5531455 | ||
Jimbo | 129e5e0d27 | ||
Jimbo | e48ac95c34 | ||
Jimbo | 978d7d37cf | ||
Jimbo | 61527d8c08 | ||
Jimbo | ff30aace39 | ||
Jimbo | c49adf9f4c | ||
Jimbo | a0447a18da | ||
Jimbo | 93541beed7 |
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1 +1 @@
|
|||
modules/extras/variables/secrets/** filter=git-crypt diff=git-crypt
|
||||
variables/secrets/** filter=git-crypt diff=git-crypt
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
home-manager.users.jimbo = {
|
||||
|
||||
};
|
||||
}
|
||||
|
|
56
modules/extras/variables/secrets/default.nix
Normal file
56
modules/extras/variables/secrets/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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 = [
|
||||
./niri
|
||||
./programs
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./autostart
|
||||
|
@ -10,12 +10,7 @@
|
|||
./theme
|
||||
];
|
||||
|
||||
options.home.niri.settings = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.home.file.".config/niri/config.kdl".text = ''
|
||||
home.file.".config/niri/config.kdl".text = ''
|
||||
${builtins.readFile config.home.niri.settings.autostart}
|
||||
${builtins.readFile config.home.niri.settings.hotkeys}
|
||||
${builtins.readFile config.home.niri.settings.inputs}
|
||||
|
|
|
@ -144,7 +144,6 @@
|
|||
${primeMod}+Shift+f { fullscreen-window; }
|
||||
|
||||
// Niri specific
|
||||
${primeMod}+r { switch-preset-column-width; }
|
||||
${primeMod}+Shift+r { reset-window-height; }
|
||||
${primeMod}+Shift+c { center-column; }
|
||||
}
|
||||
|
|
|
@ -4,24 +4,18 @@
|
|||
prefer-no-csd
|
||||
|
||||
layout {
|
||||
border {
|
||||
width 3
|
||||
active-color "#${config.look.colors.prime}"
|
||||
inactive-color "#${config.look.colors.split}"
|
||||
}
|
||||
gaps 7
|
||||
center-focused-column "never"
|
||||
default-column-width { proportion 0.5; }
|
||||
|
||||
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
|
||||
border {
|
||||
width 3
|
||||
active-color "#${config.look.colors.prime}"
|
||||
inactive-color "#${config.look.colors.split}"
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
|
|
@ -87,10 +87,11 @@
|
|||
# Clocks
|
||||
longClockModule = {
|
||||
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")
|
||||
echo "{\"text\":\" $time\",\"tooltip\":\"$date\"}"
|
||||
'';
|
||||
on-click = ''wl-copy $(date "+%Y-%m-%d-%H%M%S"); notify-send "Date copied."'';
|
||||
format = "{}";
|
||||
return-type = "json";
|
||||
interval = 1;
|
||||
|
@ -99,6 +100,7 @@
|
|||
|
||||
shortClockModule = {
|
||||
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;
|
||||
tooltip = false;
|
||||
};
|
||||
|
@ -249,7 +251,6 @@
|
|||
"bluetooth" = bluetoothModule;
|
||||
"network" = networkModule // { interface = "enp*"; };
|
||||
};
|
||||
|
||||
display2 = {
|
||||
name = "bar2";
|
||||
position = "top";
|
||||
|
@ -281,7 +282,6 @@
|
|||
"custom/vram" = vramModule;
|
||||
"custom/clock-long" = longClockModule;
|
||||
};
|
||||
|
||||
display3 = {
|
||||
name = "bar3";
|
||||
position = "top";
|
||||
|
@ -363,7 +363,6 @@
|
|||
"network" = networkModule;
|
||||
};
|
||||
};
|
||||
|
||||
style = ''
|
||||
* {
|
||||
border: 0;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
];
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
enable = config.home.desktop.enable;
|
||||
enable = config.home.sway.enable;
|
||||
package = null;
|
||||
wrapperFeatures.gtk = true;
|
||||
checkConfig = false;
|
||||
|
|
Loading…
Reference in a new issue