Just so there is a backup

This commit is contained in:
2024-11-18 09:11:55 +02:00
parent 85ecb7b4a0
commit 4984e0a3ed
34 changed files with 1830 additions and 152 deletions
@@ -17,4 +17,8 @@
description = "Your full name.";
};
config.home.packages = [
pkgs.liberation_ttf
pkgs.font-awesome
];
}
@@ -3,7 +3,7 @@ let
isEnabled =
config.azos.emacs.enable && config.azos.suites.base.enable;
emacspkgs = config.azos.emacs.emacspkg.pkgs;
localPkgName = "azos-emacs-base";
# localPkgName = "azos-emacs-base";
in
{
options.azos.emacs.enable = (azos-utils.mkFeatureEnableOption {
@@ -20,18 +20,18 @@ in
description = "List of packages for Emacs.";
};
options.azos.emacs.enabledSuites = lib.mkOption{
default = [];
description = "List of enabled suite names for Emacs. Used to enable the " +
"custom packages in init.el.";
};
# options.azos.emacs.enabledSuites = lib.mkOption{
# default = [];
# description = "List of enabled suite names for Emacs. Used to enable the " +
# "custom packages in init.el.";
# };
#Set config
config = lib.mkIf isEnabled {
#Base emacs suite definition
azos.emacs.pkgs = [pkgs.azos.emacs.base];
azos.emacs.enabledSuites = [localPkgName];
# azos.emacs.enabledSuites = [localPkgName];
#Global instantiation of Emacs
programs.emacs = {
@@ -40,12 +40,9 @@ in
((pkgs.emacsPackagesFor config.azos.emacs.emacspkg).emacsWithPackages (
config.azos.emacs.pkgs
));
extraConfig = lib.strings.concatStringsSep "\n"
(builtins.map (s : "(require '" + s + ")\n")
config.azos.emacs.enabledSuites);
# extraConfig = lib.strings.concatStringsSep "\n"
# (builtins.map (s : "(require '" + s + ")\n")
# config.azos.emacs.enabledSuites);
};
};
# imports = [./vterm.nix];
}
@@ -1,20 +0,0 @@
#+title: Aner's Emacs Vterm Configuration
#+property: header-args :results silent
* Vterm
#+begin_src emacs-lisp
(require 'azos-emacs-base)
(use-package vterm
:if (member system-type '(gnu gnu/linux))
:config
(add-hook 'vterm-mode-hook
(lambda () (setq-local global-hl-line-mode nil)))
(evil-collection-define-key 'normal 'vterm-mode-map
(kbd "p") 'vterm-yank)
(setq vterm-timer-delay 0.01
vterm-term-environment-variable "xterm-256color"))
#+end_src
@@ -1,29 +0,0 @@
{ lib, config, pkgs, azos-utils, ... }:
let
isEnabled =
config.azos.emacs.enable && config.azos.suites.editor.enable &&
config.azos.emacs.vterm.enable;
emacspkgs = config.azos.emacs.emacspkg.pkgs;
localPkgName = "azos-emacs-vterm";
in
{
options.azos.emacs.vterm.enable = (azos-utils.mkFeatureEnableOption {
description = "Enables Emacs VTERM installation.";});
#Set config
config = lib.mkIf isEnabled {
#Base emacs suite definition
azos.emacs.pkgs = [(emacspkgs.trivialBuild (azos-utils.trivialFromOrg {
pname = localPkgName;
version = "0.1.6";
src = ./el/azos-emacs-vterm.org;
packageRequires = with emacspkgs; [
vterm
];
}))];
azos.emacs.enabledSuites = [localPkgName];
};
}
@@ -3,7 +3,7 @@ let
isEnabled =
config.azos.emacs.enable && config.azos.suites.dev.enable;
emacspkgs = config.azos.emacs.emacspkg.pkgs;
localPkgName = "azos-emacs-dev";
# localPkgName = "azos-emacs-dev";
in
{
#Set config
@@ -12,7 +12,6 @@ in
#Base emacs suite definition
azos.emacs.pkgs = [pkgs.azos.emacs.dev];
azos.emacs.enabledSuites = [localPkgName];
# azos.emacs.enabledSuites = [localPkgName];
};
}
@@ -1,9 +1,17 @@
#https://xeiaso.net/talks/asg-2023-nixos/ example
{ lib, config, pkgs, options, azos-utils, ... }:
let
isEnabled =
config.azos.suites.editor.enable;
in
{
options.azos.suites.editor.enable = (azos-utils.mkSuiteEnableOption {});
imports = [
./emacs
];
config = lib.mkIf isEnabled {
home.packages = [ pkgs.azos.tex ];
};
}
@@ -4,7 +4,7 @@ let
config.azos.emacs.enable && config.azos.suites.dev.enable;
emacspkgs = config.azos.emacs.emacspkg.pkgs;
pythonpkgs = config.azos.python.pythonpkg.pkgs;
localPkgName = "azos-emacs-editor";
# localPkgName = "azos-emacs-editor";
in
{
#Set config
@@ -13,7 +13,7 @@ in
#Base emacs suite definition
azos.emacs.pkgs = [pkgs.azos.emacs.base];
azos.emacs.enabledSuites = [localPkgName];
# azos.emacs.enabledSuites = [localPkgName];
azos.python.pkgs = with pythonpkgs; [ graphviz pygments ];
};
@@ -0,0 +1,253 @@
#https://xeiaso.net/talks/asg-2023-nixos/ example
{ lib, config, pkgs, options, azos-utils, ... }:
let
isEnabled =
config.azos.suites.exwm.enable;
in
{
options.azos.suites.exwm.enable = (azos-utils.mkSuiteEnableOption {});
imports = [
./emacs
];
config = lib.mkIf isEnabled {
services.dunst = {
enable = true;
settings = {
[global]
### Display ###
monitor = 0
follow = keyboard
geometry = "300x5-30+20"
progress_bar = true
progress_bar_height = 10
progress_bar_frame_width = 1
progress_bar_min_width = 150
progress_bar_max_width = 300
indicate_hidden = yes
shrink = no
transparency = 0
notification_height = 0
separator_height = 1
padding = 3
horizontal_padding = 4
text_icon_padding = 0
frame_width = 1
separator_color = frame
background = "#cdcbb4"
sort = yes
idle_threshold = 120
### Text ###
font = Iosevka Term 10
line_height = 0
markup = full
format = "%s\n%b"
# Alignment of message text.
alignment = left
# Vertical alignment of message text and icon.
# Possible values are "top", "center" and "bottom".
vertical_alignment = center
# Show age of message if message is older than show_age_threshold
# seconds.
show_age_threshold = 60
# Split notifications into multiple lines if they don't fit into
# geometry.
word_wrap = yes
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Stack together notifications with the same content
stack_duplicates = true
# Hide the count of stacked notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
### Icons ###
# Align icons left/right/off
icon_position = left
# Scale small icons up to this size, set to 0 to disable. Helpful
# for e.g. small files or high-dpi screens. In case of conflict,
# max_icon_size takes precedence over this.
min_icon_size = 0
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 32
# Paths to default icons.
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
### History ###
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/firefox -new-tab
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
# Manage dunst's desire for talking
# Can be one of the following values:
# crit: Critical features. Dunst aborts
# warn: Only non-fatal warnings
# mesg: Important Messages
# info: all unimportant stuff
# debug: all less than unimportant stuff
verbosity = mesg
# Define the corner radius of the notification window
# in pixel size. If the radius is 0, you have no rounded
# corners.
# The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons.
corner_radius = 0
# Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the
# user defined timeout.
ignore_dbusclose = false
### Wayland ###
# These settings are Wayland-specific. They have no effect when using X11
# Uncomment this if you want to let notications appear under fullscreen
# applications (default: overlay)
# layer = top
# Set this to true to use X11 output on Wayland.
force_xwayland = false
### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support.
# This setting is provided for compatibility with older nVidia drivers that
# do not support RandR and using it on systems that support RandR is highly
# discouraged.
#
# By enabling this setting dunst will not be able to detect when a monitor
# is connected or disconnected which might break follow mode if the screen
# layout changes.
force_xinerama = false
### mouse
# Defines list of actions for each mouse event
# Possible values are:
# * none: Don't do anything.
# * do_action: If the notification has exactly one action, or one is marked as default,
# invoke it. If there are multiple and no default, open the context menu.
# * close_current: Close current notification.
# * close_all: Close all notifications.
# These values can be strung together for each mouse event, and
# will be executed in sequence.
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]
# Calculate the dpi to use on a per-monitor basis.
# If this setting is enabled the Xft.dpi value will be ignored and instead
# dunst will attempt to calculate an appropriate dpi value for each monitor
# using the resolution and physical size. This might be useful in setups
# where there are multiple screens with very different dpi values.
per_monitor_dpi = false
# The internal keyboard shortcut support in dunst is now considered deprecated
# and should be replaced by dunstctl calls. You can use the configuration of your
# WM or DE to bind these to shortcuts of your choice.
# Check the dunstctl manual page for more info.
[shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
# "mod3" and "mod4" (windows-key).
# Xev might be helpful to find names for keys.
# Close notification. Equivalent dunstctl command:
# dunstctl close
# close = ctrl+space
# Close all notifications. Equivalent dunstctl command:
# dunstctl close-all
# close_all = ctrl+shift+space
# Redisplay last message(s). Equivalent dunstctl command:
# dunstctl history-pop
# history = ctrl+grave
# Context menu. Equivalent dunstctl command:
# dunstctl context
# context = ctrl+shift+period
[urgency_low]
foreground = "#2f4f4f"
frame_color = "#cdcdb4"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#icon = /path/to/icon
[urgency_normal]
foreground = "#00cd00"
frame_color = "#9aff9a"
timeout = 10
# Icon for notifications with normal urgency, uncomment to enable
#icon = /path/to/icon
[urgency_critical]
foreground = "#cd0000"
frame_color = "#cd0000"
timeout = 0
# Icon for notifications with critical urgency, uncomment to enable
#icon = /path/to/icon
};
}
};
}
@@ -0,0 +1,14 @@
{ lib, config, pkgs, azos-utils, ... }:
let
isEnabled =
config.azos.emacs.enable && config.azos.suites.exwm.enable;
emacspkgs = config.azos.emacs.emacspkg.pkgs;
in
{
#Set config
config = lib.mkIf isEnabled {
#Base emacs suite definition
azos.emacs.pkgs = [pkgs.azos.emacs.exwm];
};
}
@@ -1,10 +1,23 @@
{ lib, config, pkgs, options, azos-utils, ... }:
let
cfg = config.azos.suites.base;
isEnabled = config.azos.suites.base.enable;
in
{
options.azos.suites.station.enable = azos-utils.mkSuiteEnableOption {};
config = lib.mkIf cfg.enable {
imports = [
./emacs
];
config = lib.mkIf isEnabled {
home.packages = with pkgs; [
flameshot
qutebrowser
mpv
upower
pass
dunst
lmms
];
};
}
@@ -0,0 +1,15 @@
{ lib, config, pkgs, azos-utils, ... }:
let
isEnabled =
config.azos.emacs.enable && config.azos.suites.station.enable;
emacspkgs = config.azos.emacs.emacspkg.pkgs;
in
{
#Set config
config = lib.mkIf isEnabled {
#Base emacs suite definition
azos.emacs.pkgs = [pkgs.azos.emacs.station];
};
}
@@ -0,0 +1,24 @@
{ lib, config, pkgs, options, azos-utils, ... }:
let
isEnabled = config.azos.suites.station.enable && config.azos.mail.enable;
in
{
options.azos.mail.enable = (azos-utils.mkFeatureEnableOption {
description = "Enables Mail installation.";});
options.azos.mail.accounts = lib.mkOption{
default = [];
type = lib.types.list;
description = "List of accounts.";
};
imports = [
];
config = lib.mkIf isEnabled {
home.packages = with pkgs; [pkgs pkgs];
# home.packages = [#TODO THIS];
};
}