Compare commits
13
Commits
1ed9bcc538
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eebe9e75d1 | ||
|
|
dc6fdcfa02 | ||
|
|
3917792670 | ||
|
|
c618246ac9 | ||
|
|
63a58c0079 | ||
|
|
35a679865c | ||
|
|
ff57b5ba5b | ||
|
|
d3a636750c | ||
|
|
4bd467458e | ||
|
|
0a7ac1b1ca | ||
|
|
34b3f57709 | ||
|
|
4a0b4ad9c9 | ||
|
|
15f7b2feed |
@@ -1,13 +1,13 @@
|
||||
profile docked {
|
||||
# Center 4K monitor
|
||||
output DP-6 {
|
||||
output "Dell Inc. DELL S3221QS 9Y4W6N3" {
|
||||
mode 3840x2160@60.000
|
||||
position 1920,120
|
||||
scale 1.25
|
||||
}
|
||||
|
||||
# Right 1080p monitor (rotated left)
|
||||
output DP-7 {
|
||||
output "Dell Inc. DELL U2417H XVNNT6B1890L" {
|
||||
mode 1920x1080@60.000
|
||||
position 3072,0
|
||||
transform 90
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
font=monospace 12
|
||||
background-color=#000000e6
|
||||
text-color=#eeeeeeff
|
||||
border-color=#eeeeeeff
|
||||
border-size=3
|
||||
default-timeout=10000
|
||||
|
||||
[urgency=low]
|
||||
background-color=#1a1a1ae6
|
||||
text-color=#999999ff
|
||||
border-color=#444444ff
|
||||
default-timeout=5000
|
||||
|
||||
[urgency=normal]
|
||||
background-color=#000000e6
|
||||
text-color=#eeeeeeff
|
||||
border-color=#eeeeeeff
|
||||
default-timeout=10000
|
||||
|
||||
[urgency=critical]
|
||||
background-color=#4d0000e6
|
||||
text-color=#ffffffff
|
||||
border-color=#ff0000ff
|
||||
border-size=5
|
||||
default-timeout=0
|
||||
@@ -231,8 +231,12 @@ layout {
|
||||
// See the binds section below for more spawn examples.
|
||||
|
||||
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||
spawn-at-startup "kanshi"
|
||||
spawn-at-startup "waybar"
|
||||
spawn-sh-at-startup "kanshi"
|
||||
spawn-sh-at-startup "awww-daemon"
|
||||
spawn-at-startup "mako"
|
||||
spawn-sh-at-startup "polkit-gnome-authentication-agent-1"
|
||||
spawn-at-startup "xwayland-satellite"
|
||||
|
||||
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
|
||||
// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"
|
||||
@@ -279,6 +283,13 @@ animations {
|
||||
clip-to-geometry true
|
||||
}
|
||||
|
||||
// Turn off hot corners
|
||||
gestures {
|
||||
hot-corners {
|
||||
off;
|
||||
}
|
||||
}
|
||||
|
||||
binds {
|
||||
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||
// in the end. To find an XKB name for a particular key, you may use a program
|
||||
@@ -297,15 +308,15 @@ binds {
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+Return hotkey-overlay-title="Open a Terminal: alacritty" { spawn "alacritty"; }
|
||||
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||
Mod+Shift+B { spawn "blueman-manager"; }
|
||||
Mod+Shift+D { spawn "vesktop"; }
|
||||
Mod+Shift+E hotkey-overlay-title="Run an Application: emacs" { spawn "emacsclient" "-c"; }
|
||||
Mod+Shift+F hotkey-overlay-title="Run an Application: brave" { spawn "brave"; }
|
||||
Mod+Shift+M { spawn "proton-mail"; }
|
||||
Mod+Shift+P { spawn "rofi-rbw"; }
|
||||
Mod+Shift+S { spawn-sh "flameshot gui"; }
|
||||
Mod+Shift+T { spawn "thunar"; }
|
||||
Mod+Shift+X hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||
Mod+Shift+X hotkey-overlay-title="Lock the Screen: swaylock" {
|
||||
spawn "sh" "-c" "loginctl lock-session; swaylock -f; niri msg action power-off-monitors";
|
||||
}
|
||||
|
||||
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
|
||||
// Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.
|
||||
@@ -516,7 +527,7 @@ binds {
|
||||
// Toggle tabbed column display mode.
|
||||
// Windows in this column will appear as vertical tabs,
|
||||
// rather than stacked on top of each other.
|
||||
Mod+E { toggle-column-tabbed-display; }
|
||||
Mod+T { toggle-column-tabbed-display; }
|
||||
|
||||
// Actions to switch layouts.
|
||||
// Note: if you uncomment these, make sure you do NOT have
|
||||
@@ -542,8 +553,4 @@ binds {
|
||||
|
||||
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||
Ctrl+Alt+Delete { quit; }
|
||||
|
||||
// Powers off the monitors. To turn them back on, do any input like
|
||||
// moving the mouse or pressing any other key.
|
||||
Mod+Shift+P { power-off-monitors; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
selector = fuzzel
|
||||
clipboarder = wl-copy
|
||||
typer = wtype
|
||||
clear-after = 30
|
||||
prompt = "🔑 "
|
||||
action = copy
|
||||
target = password
|
||||
+1
-1
Submodule bash-scripts updated: e0bc08ea9a...1151d5aa9e
+1
-1
@@ -40,7 +40,7 @@
|
||||
host = "0.0.0.0";
|
||||
openFirewall = true;
|
||||
# Make sure this path is created and has the permissions of ollama:ollama.
|
||||
models = "/mnt/storage/models";
|
||||
modelsDir = "/mnt/storage/models";
|
||||
environmentVariables = {
|
||||
OLLAMA_CONTEXT_LENGTH = "8192";
|
||||
};
|
||||
|
||||
+25
-2
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, inputs, ... }: {
|
||||
{ pkgs, ... }: {
|
||||
|
||||
imports = [ ./shared.nix ];
|
||||
|
||||
@@ -22,10 +22,32 @@
|
||||
# Enable niri window manager.
|
||||
programs.niri.enable = true;
|
||||
|
||||
# XDG Desktop Portals (used for wayland screen sharing, file pickets, etc.)
|
||||
# Display manager for graphical login
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.tuigreet}/bin/tuigreet --time --remember --cmd niri";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Suppress greetd's default virtual terminal log spam.
|
||||
systemd.services.greetd.serviceConfig.LogStandardStream = "journal";
|
||||
|
||||
# XDG Desktop Portals (used for wayland screen sharing, file pickers, etc.)
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
config = {
|
||||
common = {
|
||||
default = [ "wlr" "gtk" ];
|
||||
"org.freedesktop.impl.portal.Settings" = [ "gtk" ];
|
||||
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Configure keymap
|
||||
@@ -37,6 +59,7 @@
|
||||
|
||||
# List packages to be installed for headful systems
|
||||
environment.systemPackages = with pkgs; [
|
||||
awww
|
||||
fuzzel
|
||||
waybar
|
||||
kanshi
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
http_port = 3000;
|
||||
domain = "grafana.randomctf.lan";
|
||||
};
|
||||
# Legacy default secret key, kept so existing datasource secrets
|
||||
# in the database remain decryptable.
|
||||
settings.security.secret_key = "SW2YcwTIb9zpOOhoPsMm";
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
|
||||
@@ -148,6 +148,29 @@
|
||||
'';
|
||||
};
|
||||
|
||||
# Actual
|
||||
"actual.randomctf.lan" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
extraConfig = ''
|
||||
access_log /var/log/nginx/access.actual.log;
|
||||
'';
|
||||
|
||||
locations."/".extraConfig = ''
|
||||
allow 127.0.0.1;
|
||||
allow 10.0.0.0/8;
|
||||
allow 172.16.0.0/12;
|
||||
allow 192.168.0.0/16;
|
||||
allow 100.64.0.0/10;
|
||||
allow 24.130.12.156;
|
||||
deny all;
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_pass https://localhost:5006/;
|
||||
'';
|
||||
};
|
||||
|
||||
# Kiwix
|
||||
"kiwix.randomctf.com" = {
|
||||
enableACME = true;
|
||||
|
||||
+2
-3
@@ -54,11 +54,10 @@
|
||||
|
||||
# Enable bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
# System Packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
pinentry-gtk2
|
||||
pinentry-gnome3
|
||||
protonmail-bridge
|
||||
pass
|
||||
|
||||
@@ -79,7 +78,7 @@
|
||||
path = with pkgs; [
|
||||
pass
|
||||
gnupg
|
||||
pinentry-gtk2
|
||||
pinentry-gnome3
|
||||
];
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@
|
||||
# Setup Pinentry
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-gtk2;
|
||||
pinentryPackage = pkgs.pinentry-gnome3;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
|
||||
Generated
+15
-15
@@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1781981105,
|
||||
"narHash": "sha256-/1nNBbA7PrSQpTc9Qazkhl4kIPg+TNl0CjxS3UQJKlw=",
|
||||
"lastModified": 1788642154,
|
||||
"narHash": "sha256-sPpQFVaFTDqO/4vvCAhuAhqTgqN/ygu+9eJcs5eB0js=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "7bfff44b465909f69a442701293bc0badcf476dc",
|
||||
"rev": "fd0956c99c41ae3c13a73a638f1f7e963aebc4ab",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -28,11 +28,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1782134359,
|
||||
"narHash": "sha256-dh0RDcJ17Rubgk3hGTugYmTu6rnUPfRu5vA7MA1Pdo0=",
|
||||
"lastModified": 1788651960,
|
||||
"narHash": "sha256-v9wJd32eZ2bvhBzVOd7TIjLQd011P7nwOhjKtWlci5I=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "979bfee6e1a7996fc395270d54c9b59e88762494",
|
||||
"rev": "2c0350c759688177331b8f5242311fae8877bdb3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -48,11 +48,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1782030356,
|
||||
"narHash": "sha256-h4WpMr455AfRub0FXBaon6Vcpe0waUyJ4GivIW6oyd4=",
|
||||
"lastModified": 1788680125,
|
||||
"narHash": "sha256-amGSoDobwmp4CFvCn841ws2iuitus+HUJdD/gKgsrJA=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"rev": "3017088b49efd404f78e3b104f553b97e4af786b",
|
||||
"rev": "116ad1c2adb642405ef8916f6a94c8626f971344",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -63,11 +63,11 @@
|
||||
},
|
||||
"nix-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1781577229,
|
||||
"narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=",
|
||||
"lastModified": 1788614874,
|
||||
"narHash": "sha256-7QYjT2vHLuX9Z1pdxHXDKCbh1CR3D/2rywB9Tx0MPRg=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "567a49d1913ce81ac6e9582e3553dd90a955875f",
|
||||
"rev": "c043004d1c6985732bcc1cbc5a9c9aecbbb4e0f0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -79,11 +79,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1782134769,
|
||||
"narHash": "sha256-Dxq6CN42CeUcIReDgcKz322t0HvUl3j4nlYpIGwYjtE=",
|
||||
"lastModified": 1788797584,
|
||||
"narHash": "sha256-APhAHYS9dgOtYJC0+fGKLhCPflfv96jYBVbz55TpGNw=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e19832a27f7760bef9296d968c25e24765e8a679",
|
||||
"rev": "b279e6203ee1bf865290fb789e804d83a1e81718",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
+11
-2
@@ -15,11 +15,18 @@
|
||||
./modules/zsh.nix
|
||||
];
|
||||
|
||||
services.emacs.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Password manager
|
||||
rbw
|
||||
wtype
|
||||
rofi-rbw
|
||||
|
||||
# Notifications
|
||||
mako
|
||||
libnotify
|
||||
polkit_gnome
|
||||
|
||||
# Other
|
||||
wireguard-tools
|
||||
];
|
||||
|
||||
@@ -28,5 +35,7 @@
|
||||
".config/niri/config.kdl".source = ../assets/.config/niri/config.kdl;
|
||||
".config/fuzzel/fuzzel.ini".source = ../assets/.config/fuzzel/fuzzel.ini;
|
||||
".config/alacritty/alacritty.toml".source = ../assets/.config/alacritty/alacritty.toml;
|
||||
".config/rofi-rbw.rc".source = ../assets/.config/rofi-rbw.rc;
|
||||
".config/mako/config".source = ../assets/.config/mako/config;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
# Other
|
||||
python3
|
||||
ansible
|
||||
jujutsu
|
||||
];
|
||||
|
||||
# To prevent sysroot errors in rust-analyzer
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
programs = {
|
||||
emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs30;
|
||||
package = pkgs.emacs;
|
||||
extraPackages = epkgs: with epkgs; [
|
||||
mu4e
|
||||
vterm
|
||||
@@ -37,4 +37,9 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.emacs = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,13 +36,27 @@
|
||||
|
||||
gtk = let
|
||||
theme = {
|
||||
name = "Materia-dark";
|
||||
package = pkgs.materia-theme;
|
||||
name = "Colloid-Dark";
|
||||
package = pkgs.colloid-gtk-theme;
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
in {
|
||||
enable = true;
|
||||
inherit theme;
|
||||
gtk4.theme = theme;
|
||||
inherit theme iconTheme;
|
||||
gtk4 = {
|
||||
inherit theme iconTheme;
|
||||
extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
gtk-color-scheme = "prefer-dark";
|
||||
};
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
gtk-color-scheme = "prefer-dark";
|
||||
};
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
|
||||
Reference in New Issue
Block a user