feat(github): add auto-conventional-commit hook with opencode integration
- Add prepare-commit-msg git hook that generates conventional commit messages - Modularize fish configuration with separate conf.d files - Convert configuration files from .text to .source format for structured data - Add sops-nix SOPS configuration with explicit secret definitions - Upgrade age identity to single key file management approach - Add system activation script for age key management - Generate .sops.yaml for SOPS creation rules - Restructure README.md with improved table and cleaner formatting - Refactor config files to use pkgs.formats.json/toml generators - Implement YAML format for ashell and walker service configurations - Update SSH config source to use sops secrets - Convert zed and other config files to use structured .source format
This commit is contained in:
@@ -1,40 +1,40 @@
|
||||
{pkgs, ...}: {
|
||||
{pkgs, ...}: let
|
||||
toTOML = (pkgs.formats.toml {}).generate;
|
||||
in {
|
||||
users.users.someone.packages = [pkgs.ashell];
|
||||
|
||||
xdg.configFile."ashell/config.toml".text = ''
|
||||
[modules]
|
||||
left = [ [ "appLauncher", "Updates", "Workspaces", "ScreenMirror" ], "MediaPlayer" ]
|
||||
center = [ "WindowTitle" ]
|
||||
right = [ "SystemInfo", [ "Tray", "Clock", "Privacy", "Settings" ] ]
|
||||
|
||||
|
||||
[system_info]
|
||||
indicators = [ "Cpu", "Memory", "Temperature" ]
|
||||
|
||||
[system_info.cpu]
|
||||
warn_threshold = 60
|
||||
alert_threshold = 80
|
||||
|
||||
[system_info.memory]
|
||||
warn_threshold = 70
|
||||
alert_threshold = 85
|
||||
|
||||
[system_info.temperature]
|
||||
warn_threshold = 60
|
||||
alert_threshold = 80
|
||||
|
||||
[tempo]
|
||||
clock_format = "%a %d %b %R"
|
||||
weather_location = { City = "Amsterdam" }
|
||||
|
||||
[appearance]
|
||||
style = "Islands"
|
||||
|
||||
[[ScreenMirror]]
|
||||
name = "ScreenMirror"
|
||||
icon = ""
|
||||
command = "bash /etc/nixos/scripts/screen-mirror.sh"
|
||||
|
||||
|
||||
'';
|
||||
xdg.configFile."ashell/config.toml".source = toTOML "config.toml" {
|
||||
modules = {
|
||||
left = [["appLauncher" "Updates" "Workspaces" "ScreenMirror"] "MediaPlayer"];
|
||||
center = ["WindowTitle"];
|
||||
right = ["SystemInfo" ["Tray" "Clock" "Privacy" "Settings"]];
|
||||
};
|
||||
system_info = {
|
||||
indicators = ["Cpu" "Memory" "Temperature"];
|
||||
cpu = {
|
||||
warn_threshold = 60;
|
||||
alert_threshold = 80;
|
||||
};
|
||||
memory = {
|
||||
warn_threshold = 70;
|
||||
alert_threshold = 85;
|
||||
};
|
||||
temperature = {
|
||||
warn_threshold = 60;
|
||||
alert_threshold = 80;
|
||||
};
|
||||
};
|
||||
tempo = {
|
||||
clock_format = "%a %d %b %R";
|
||||
weather_location = {City = "Amsterdam";};
|
||||
};
|
||||
appearance.style = "Islands";
|
||||
ScreenMirror = [
|
||||
{
|
||||
name = "ScreenMirror";
|
||||
icon = "";
|
||||
command = "bash /etc/nixos/scripts/screen-mirror.sh";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,29 +1,32 @@
|
||||
{pkgs, ...}: {
|
||||
{pkgs, ...}: let
|
||||
toTOML = (pkgs.formats.toml {}).generate;
|
||||
in {
|
||||
users.users.someone.packages = [pkgs.walker pkgs.elephant];
|
||||
|
||||
xdg.configFile."walker/config.toml".text = ''
|
||||
[keys]
|
||||
launcher = "Mod+Space"
|
||||
|
||||
[keys.quit]
|
||||
quit = "Mod+Shift+Q"
|
||||
reload = "Mod+Shift+R"
|
||||
|
||||
[look]
|
||||
all_monitors = true
|
||||
background = "#1f1d2e"
|
||||
foreground = "#cdd6f4"
|
||||
selection = "#45475a"
|
||||
active = "#89b4fa"
|
||||
urgent = "#f38ba8"
|
||||
alt_background = "#181825"
|
||||
icon_theme = "Papirus-Dark"
|
||||
terminal = "alacritty"
|
||||
|
||||
[look.font]
|
||||
name = "Source Code Pro"
|
||||
size = 14
|
||||
'';
|
||||
xdg.configFile."walker/config.toml".source = toTOML "config.toml" {
|
||||
keys = {
|
||||
launcher = "Mod+Space";
|
||||
quit = {
|
||||
quit = "Mod+Shift+Q";
|
||||
reload = "Mod+Shift+R";
|
||||
};
|
||||
};
|
||||
look = {
|
||||
all_monitors = true;
|
||||
background = "#1f1d2e";
|
||||
foreground = "#cdd6f4";
|
||||
selection = "#45475a";
|
||||
active = "#89b4fa";
|
||||
urgent = "#f38ba8";
|
||||
alt_background = "#181825";
|
||||
icon_theme = "Papirus-Dark";
|
||||
terminal = "alacritty";
|
||||
font = {
|
||||
name = "Source Code Pro";
|
||||
size = 14;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.elephant = {
|
||||
wantedBy = ["graphical-session.target"];
|
||||
|
||||
Reference in New Issue
Block a user