-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vix
committed
Feb 24, 2025
1 parent
deae79e
commit f5315d0
Showing
22 changed files
with
462 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
imports = [ | ||
./unknown.nix | ||
|
||
./ersa.nix | ||
./niji.nix | ||
./vyxn.nix | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
config, | ||
... | ||
}: | ||
with lib; | ||
let | ||
cfg = config.den.hosts.ersa; | ||
in | ||
{ | ||
options.den.hosts.ersa = { | ||
enable = mkEnableOption "ersa host"; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
den = { | ||
|
||
gui.enable = true; | ||
|
||
apps = { | ||
alacritty.enable = true; | ||
i3.enable = true; | ||
openrgb.enable = true; | ||
picom.enable = true; | ||
polybar.enable = true; | ||
tor.enable = true; | ||
}; | ||
|
||
packs = { | ||
comfy.enable = true; | ||
development.enable = true; | ||
fonts.enable = true; | ||
media.enable = true; | ||
|
||
xdg.enable = true; | ||
}; | ||
}; | ||
|
||
home.packages = with pkgs; []; | ||
|
||
services.syncthing.enable = true; | ||
|
||
programs.gpg.enable = true; | ||
services.gpg-agent = { | ||
enable = true; | ||
pinentryPackage = pkgs.pinentry-gnome3; | ||
}; | ||
|
||
systemd.user.startServices = "sd-switch"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,11 +94,11 @@ in | |
"[email protected]" | ||
"[email protected]" | ||
"[email protected]" | ||
"[email protected]" | ||
"[email protected]" | ||
]; | ||
enabled-extensions = [ | ||
"[email protected]" | ||
"[email protected]" | ||
"[email protected]" | ||
]; | ||
remember-mount-password = false; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
config, | ||
... | ||
}: | ||
with lib; | ||
let | ||
cfg = config.den.apps.picom; | ||
in | ||
{ | ||
options.den.apps.picom.enable = mkEnableOption "picom composter"; | ||
|
||
config = mkIf cfg.enable { | ||
|
||
# home.packages = [ pkgs.picom ]; | ||
|
||
services.picom = { | ||
enable = true; | ||
|
||
backend = "glx"; | ||
vSync = true; | ||
|
||
shadow = false; | ||
shadowExclude = [ | ||
"class_g = 'Polybar'" | ||
"class_g = 'polybar'" | ||
"class_g = 'i3-frame'" | ||
|
||
"name = 'Notification'" | ||
"class_g = 'Conky'" | ||
"class_g ?= 'Notify-osd'" | ||
"class_g = 'Cairo-clock'" | ||
"_GTK_FRAME_EXTENTS@:c" | ||
]; | ||
|
||
fade = false; | ||
|
||
activeOpacity = 1.0; | ||
inactiveOpacity = 1.0; | ||
|
||
wintypes = { | ||
tooltip = { | ||
fade = true; | ||
shadow = true; | ||
opacity = 1.0; | ||
focus = true; | ||
full-shadow = false; | ||
}; | ||
dock = { | ||
shadow = false; | ||
clip-shadow-above = true; | ||
}; | ||
dnd = { | ||
shadow = false; | ||
}; | ||
popup_menu = { | ||
opacity = 1.0; | ||
}; | ||
dropdown_menu = { | ||
opacity = 1.0; | ||
}; | ||
}; | ||
|
||
settings = { | ||
experimental-backends = true; | ||
inactive-opacity-override = false; | ||
|
||
frame-opacity = 1.0; | ||
|
||
focus-exclude = [ | ||
"class_g = 'slop'" # maim | ||
"class_g = 'Cairo-clock'" | ||
]; | ||
|
||
rounded-corners-exclude = [ | ||
"class_g = 'Alacritty'" | ||
"class_g = 'Polybar'" | ||
"class_g = 'polybar'" | ||
|
||
"window_type = 'dock'" | ||
"window_type = 'desktop'" | ||
]; | ||
|
||
blur-background = false; | ||
blur-kern = "3x3box"; | ||
blur-background-exclude = [ | ||
"window_type = 'dock'" | ||
"window_type = 'desktop'" | ||
"_GTK_FRAME_EXTENTS@:c" | ||
]; | ||
|
||
dithered-present = false; | ||
|
||
mark-wmwin-focused = true; | ||
mark-ovredir-focused = true; | ||
detect-rounded-corners = true; | ||
detect-client-opacity = true; | ||
detect-transient = true; | ||
glx-no-stencil = true; | ||
use-damage = true; | ||
log-level = "warn"; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
config, | ||
... | ||
}: | ||
with lib; | ||
let | ||
cfg = config.den.apps.syncthing; | ||
in | ||
{ | ||
options.den.apps.syncthing.enable = mkEnableOption "syncthing"; | ||
|
||
config = mkIf cfg.enable { | ||
# xdg.configFile = {} | ||
|
||
services.syncthing.enable = true; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
config, | ||
... | ||
}: | ||
with lib; | ||
let | ||
cfg = config.den.apps.tmux; | ||
in | ||
{ | ||
options.den.apps.tmux.enable = mkEnableOption "tmux"; | ||
|
||
config = mkIf cfg.enable { | ||
|
||
programs.tmux = { | ||
enable = true; | ||
terminal = "screen-256color"; | ||
mouse = true; | ||
baseIndex = 1; | ||
|
||
extraConfig = '' | ||
set-option -g allow-rename on | ||
set-option -g set-titles on | ||
set-option -g set-titles-string "#W" | ||
''; | ||
}; | ||
|
||
# tmux-config = { | ||
# target = ".tmux.conf"; | ||
# source = "${config.den.dir.etc}/tmux/tmux.conf"; | ||
# force = true; | ||
# }; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
config, | ||
... | ||
}: | ||
with lib; | ||
let | ||
cfg = config.den.apps.vscode; | ||
in | ||
{ | ||
options.den.apps.vscode = { | ||
enable = mkEnableOption "vscode"; | ||
|
||
client = mkOption { | ||
type = types.bool; | ||
default = true; | ||
}; | ||
|
||
server = mkOption { | ||
type = types.bool; | ||
default = false; | ||
}; | ||
|
||
clientPackage = mkPackageOption pkgs "vscode" { }; | ||
}; | ||
|
||
config = | ||
mkIf (cfg.enable && cfg.client) { | ||
home.packages = [ cfg.clientPackage ]; | ||
# link client config, keybindings, and snippets | ||
} | ||
// mkIf (cfg.enable && cfg.server) { | ||
# link server config | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
{ | ||
imports = [ | ||
./den.nix | ||
./gui.nix | ||
./shell.nix | ||
./workspace.nix | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
config, | ||
... | ||
}: | ||
with lib; | ||
let | ||
cfg = config.den.gui; | ||
in | ||
{ | ||
options.den.gui = { | ||
enable = mkEnableOption "gui environment components"; | ||
}; | ||
|
||
config = mkIf cfg.enable {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.