diff --git a/config/graphical/core/bemenu.nix b/config/graphical/core/bemenu.nix
deleted file mode 100644
index 5a7b0fa..0000000
--- a/config/graphical/core/bemenu.nix
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- inherit (cfg) window;
- opts =
- with builtins.mapAttrs (n: v: "##${v.hex}") cfg.style.catppuccin.color;
- lib.concatStringsSep " " [
- "-nciwl '16 down' --single-instance --width-factor 0.33"
- "--border ${builtins.toString window.borderSize} --border-radius ${builtins.toString window.rounding}"
- "--tb '${base}${window.opacity.hex}'"
- "--fb '${base}${window.opacity.hex}'"
- "--nb '${base}${window.opacity.hex}'"
- "--ab '${base}${window.opacity.hex}'"
- "--hb '${base}${window.opacity.hex}'"
- "--tf '${accent}'"
- "--ff '${text}'"
- "--nf '${text}'"
- "--af '${text}'"
- "--hf '${accent}'"
- "--bdr '${accent}'"
- "--fn monospace"
- ];
-in
-lib.mkIf (cfg.graphics.enable) {
- home-manager.users.${cfg.userName}.programs.bemenu.enable = true;
- sidonia.desktop.keybinds =
- [
- {
- mod = [ "super" ];
- key = "p";
- exec = "uwsm app -- $(bemenu-run --no-exec ${opts})";
- }
- ]
- ++ (lib.optional config.hardware.nvidia.prime.offload.enableOffloadCmd {
- mod = [
- "super"
- "shift"
- ];
- key = "p";
- exec = "uwsm app -- nvidia-offload $(LIBVA_DRIVER_NAME=nvidia VDPAU_NAME=nvidia bemenu-run --no-exec ${opts})";
- });
-}
diff --git a/config/graphical/core/coreServices.nix b/config/graphical/core/coreServices.nix
deleted file mode 100644
index fab70b6..0000000
--- a/config/graphical/core/coreServices.nix
+++ /dev/null
@@ -1,228 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- theme = cfg.style.catppuccin;
-in
-lib.mkIf (cfg.graphics.enable) {
-
- security = {
- pam.services = {
- sddm.enableGnomeKeyring = true;
- login.enableGnomeKeyring = true;
- };
- polkit.enable = true;
- };
-
- xdg = {
- terminal-exec = {
- enable = true;
- settings.default = [
- "foot.desktop"
- ];
- };
- autostart.enable = true;
- portal = {
- extraPortals = [
- pkgs.xdg-desktop-portal-gnome
- ];
- };
- };
-
- environment.sessionVariables = {
- XDG_CONFIG_DIRS = [ "$HOME/.config" ]; # this is missing by default, needed for ~/.config/autostart
- };
-
- services = {
- logind = {
- lidSwitch = "suspend-then-hibernate";
- lidSwitchExternalPower = "ignore";
- lidSwitchDocked = "ignore";
- };
-
- gvfs.enable = true; # Mount, trash, and other functionalities
-
- tumbler.enable = true; # Thumbnail support for images
-
- blueman.enable = true;
-
- playerctld.enable = true;
- };
-
- programs = {
- seahorse.enable = true;
- xfconf.enable = true;
- nm-applet.enable = true; # systemd graphical-session.target
- };
-
- home-manager.users.${cfg.userName} = {
- catppuccin.cursors = {
- enable = true;
- accent = theme.accent;
- flavor = theme.flavor;
- };
-
- home.file.nmAppletDropin = {
- enable = true;
- target = "/home/${cfg.userName}/.config/systemd/user/nm-applet.service.d/dropin.conf";
- text = ''
- [Service]
- Restart=on-failure
- RestartSec=3
- '';
- };
-
- dconf.settings = with lib.gvariant; {
- "org/gnome/desktop/interface" = {
- cursor-size = mkInt32 cfg.style.cursorSize;
- };
- "org/cinnamon/desktop/default-applications/terminal" = {
- exec = mkValue "foot";
- exec-arg = mkValue "-e";
- };
- "org/gnome/desktop/applications/terminal" = {
- exec = mkValue "foot";
- exec-arg = mkValue "-e";
- };
- "org/gnome/desktop/interface" = {
- color-scheme = if theme.flavor == "latte" then "prefer-light" else "prefer-dark";
- };
- };
- gtk =
- {
- enable = true;
- }
- // (
- if
- (builtins.elem theme.accent [
- "rosewater"
- "flamingo"
- "maroon"
- "sky"
- "lavender"
- ])
- then
- (builtins.warn
- ''
- The selected theme accent `${theme.accent}` is not yet supported by magnetic-catppuccin-gtk.
- Falling back to the deprecated `gtk.catppuccin.enable` method.
- ''
- {
- catppuccin = {
- enable = true;
- icon.enable = true;
- };
- }
- )
- else
- let
- shade = if theme.flavor == "latte" then "light" else "dark";
- accent =
- {
- # Renamed colours
- mauve = "purple";
- sapphire = "cyan";
- peach = "orange";
- }
- .${theme.accent} or theme.accent;
- doTweak = builtins.elem theme.flavor [
- "frappe"
- "macchiato"
- ];
- in
- {
- theme.name = lib.strings.concatStringsSep "-" (
- [
- "Catppuccin"
- "GTK"
- (cfg.lib.capitalize accent)
- (cfg.lib.capitalize shade)
- ]
- ++ (lib.optional doTweak (cfg.lib.capitalize theme.flavor))
- );
- theme.package =
- (pkgs.magnetic-catppuccin-gtk.overrideAttrs {
- src = inputs.magnetic-catppuccin-gtk;
- }).override
- {
- inherit shade;
- accent = [ accent ];
- tweaks = lib.optional doTweak theme.flavor;
- };
- iconTheme.name = "Papirus";
- iconTheme.package = pkgs.catppuccin-papirus-folders.override {
- flavor = theme.flavor;
- accent = theme.accent;
- };
- }
- );
- qt = {
- enable = true;
- style.name = "kvantum";
- platformTheme.name = "kvantum";
- };
- catppuccin.kvantum = {
- enable = true;
- apply = true;
- };
-
- services = {
- blueman-applet.enable = true; # systemd graphical-session.target
- gnome-keyring.enable = true;
- };
-
- home.packages = with pkgs; [
- # Hyprland / core apps
- pwvucontrol
- qpwgraph
- mate.engrampa # archive manager
- qimgv
- mpv # video player
- floorp # browser
- dconf-editor # view gsettings stuff
- gsettings-desktop-schemas
- ungoogled-chromium
- ffmpegthumbnailer
- webp-pixbuf-loader
- (nemo-with-extensions.overrideAttrs { extraNativeBuildInputs = [ pkgs.gvfs ]; })
- brightnessctl
- ];
-
- xdg = {
- mimeApps.enable = true;
- mimeApps.defaultApplications =
- let
- browser = "floorp.desktop";
- imageViewer = "qimgv.desktop";
- fileExplorer = "nemo.desktop";
- in
- {
- "text/html" = browser;
- "x-scheme-handler/http" = browser;
- "x-scheme-handler/https" = browser;
- "x-scheme-handler/about" = browser;
- "x-scheme-handler/unknown" = browser;
- "image/jpg" = imageViewer;
- "image/jpeg" = imageViewer;
- "image/png" = imageViewer;
- "image/bmp" = imageViewer;
- "image/gif" = imageViewer;
- "image/webp" = imageViewer;
- "image/x-sony-arw" = imageViewer;
- "inode/directory" = fileExplorer;
- "application/x-gnome-saved-search" = fileExplorer;
- };
- mimeApps.associations.added = {
- "image/jpg" = "qimgv.desktop";
- };
- desktopEntries = {
-
- };
- };
- };
-}
diff --git a/config/graphical/core/dunst.nix b/config/graphical/core/dunst.nix
deleted file mode 100644
index d6050c7..0000000
--- a/config/graphical/core/dunst.nix
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-lib.mkIf (cfg.graphics.enable) {
- home-manager.users.${cfg.userName} = {
- catppuccin.dunst.enable = false; # using our own values as overriding background breaks opacity
- services.dunst = {
- enable = true;
- settings =
- let
- theme = cfg.style.catppuccin;
- rounding = builtins.toString cfg.window.rounding;
- borderSize = builtins.toString cfg.window.borderSize;
- opacity = cfg.window.opacity.hex;
- palette = builtins.mapAttrs (n: v: "#${v.hex}") theme.color;
- in with palette;
- {
- # https://dunst-project.org/documentation/
- global = {
- width = 400;
- font = "Monospace 12";
- line_height = 4;
- padding = 12;
- horizontal_padding = 12;
- follow = "mouse";
- origin = "bottom-center";
- enable_recursive_icon_lookup = true;
- dmenu = "bemenu -p dunst";
- layer = "overlay";
- frame_width = borderSize;
- corner_radius = rounding;
- highlight = accent;
- separator_color = accent;
- };
- urgency_low = {
- background = base + opacity;
- foreground = text;
- frame_color = accent;
- };
- urgency_normal = {
- background = base + opacity;
- foreground = text;
- frame_color = accent;
- };
- urgency_high = {
- background = base + opacity;
- foreground = text;
- frame_color = red;
- };
- };
- };
- };
-}
diff --git a/config/graphical/core/foot.nix b/config/graphical/core/foot.nix
deleted file mode 100644
index bbd946c..0000000
--- a/config/graphical/core/foot.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-lib.mkIf (cfg.graphics.enable) {
- sidonia.desktop.keybinds = [{
- mod = ["super" "shift"];
- key = "return";
- exec = "uwsm app -- foot";
- }];
- home-manager.users.${config.sidonia.userName} = {
- catppuccin.foot.enable = true;
- programs.foot = {
- enable = true;
- settings = {
- # https://codeberg.org/dnkl/foot/src/branch/master/foot.ini
- main.dpi-aware = "yes";
- main.font = "monospace:size=${if cfg.text.smallTermFont then "6" else "7"}";
- colors.alpha = builtins.toString cfg.window.opacity.dec;
- };
- };
- wayland.windowManager.hyprland.settings = {
- windowrulev2 = [
- "float, class:(foot), title:(foot)"
- "size ${cfg.window.float.wh}, class:(foot), title:(foot)"
- "${cfg.window.float.onCursor}, class:(foot), title:(foot)"
- ];
- };
- };
-}
diff --git a/config/graphical/core/hyprland.nix b/config/graphical/core/hyprland.nix
deleted file mode 100644
index bbb80df..0000000
--- a/config/graphical/core/hyprland.nix
+++ /dev/null
@@ -1,344 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- theme = cfg.style.catppuccin;
-in
-{
- options.sidonia.programs.hyprland = with lib; {
- enable = mkOption {
- type = types.bool;
- default = cfg.graphics.enable;
- };
- };
- config = lib.mkIf (cfg.programs.hyprland.enable) {
-
- nixpkgs.overlays = lib.optional cfg.graphics.legacyGpu (
- final: prev: {
- # hyprland's legacy renderer is broken in 49.0 and support is dropped in future versions.
- hyprland =
- (import (pkgs.fetchFromGitHub {
- owner = "NixOS";
- repo = "nixpkgs";
- rev = "b1bebd0fe266bbd1820019612ead889e96a8fa2d";
- hash = "sha256-MmJvj6mlWzeRwKGLcwmZpKaOPZ5nJb/6al5CXqJsgjo=";
- }) { inherit (final) system; }).hyprland.override
- { legacyRenderer = true; };
- }
- );
-
- catppuccin.sddm = {
- enable = true;
- assertQt6Sddm = true;
- inherit (theme) flavor;
- background = "";
- font = cfg.text.comicCode.name;
- fontSize = "9";
- loginBackground = false;
- };
-
- services.displayManager = {
- sddm.enable = true;
- sddm.wayland.enable = true;
- sddm.package = pkgs.kdePackages.sddm;
- autoLogin.enable = false;
- autoLogin.user = cfg.userName;
- defaultSession = "hyprland-uwsm";
- };
-
- programs.hyprland = {
- enable = true;
- withUWSM = true;
- };
-
- home-manager.users.${cfg.userName} =
- let
- inherit (cfg.desktop) monitors;
- in
- {
- home.packages = [
- pkgs.hypridle
- pkgs.hyprcursor
- pkgs.nwg-look
- pkgs.hyprshot
- ];
- home.file.xdphCfg = {
- enable = true;
- target = "/home/${cfg.userName}/.config/hypr/xdph.conf";
- text = ''
- screencopy {
- max_fps = 60
- allow_token_by_default = true
- }
- '';
- };
-
- catppuccin.hyprland.enable = false;
- wayland.windowManager.hyprland = {
- enable = true;
- systemd.enable = false;
- systemd.enableXdgAutostart = false;
- xwayland.enable = true;
- settings =
- let
- shadow_opacity = "55";
- color = theme.color // {
- shadow.hex = "000000";
- };
- rgb = lib.mapAttrs (n: v: "rgb(${v.hex})") color;
- rgba = lib.mapAttrs (n: v: (alpha: "rgba(${v.hex}${alpha})")) color;
- in
- {
- monitor = builtins.concatMap (mon: [ mon.enable ]) monitors;
-
- xwayland = {
- force_zero_scaling = true;
- };
-
- env = [
- # XDG specific #
- "XDG_SESSION_TYPE,wayland"
- "XDG_SESSION_DESKTOP,Hyprland"
-
- # Theming specific #
- "WLR_EGL_NO_MODIFIERS,0" # May help with multiple monitors
- "HYPRCURSOR_SIZE,${builtins.toString cfg.style.cursorSize}"
- "XCURSOR_SIZE,${builtins.toString cfg.style.cursorSize}"
-
- # Toolkit backend vars #
- "GSK_RENDERER,gl" # Temporary fix for Gdk-Message: Error 71 (Protocol error) dispatching to Wayland display
- "GDK_BACKEND,wayland,x11,*"
- "SDL_VIDEODRIVER,wayland,x11,windows"
- "CLUTTER_BACKEND,wayland"
- "WLR_RENDERER_ALLOW_SOFTWARE,1" # software rendering backend
-
- # QT specific #
- "QT_AUTO_SCREEN_SCALE_FACTOR,1"
- "QT_ENABLE_HIGHDPI_SCALING,1"
- "QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
- "QT_QPA_PLATFORM,wayland;xcb"
-
- # App specific #
- "MOZ_ENABLE_WAYLAND,1"
- "MOZ_DISABLE_RDD_SANDBOX,1"
- "MOZ_DBUS_REMOTE,1"
-
- # Gaming specific #
- "__GL_MaxFramesAllowed,1" # Fix frame timings & input lag
- "PROTON_ENABLE_WAYLAND,1"
- "PROTON_USE_NTSYNC,1"
-
- # Misc #
- "NIXOS_OZONE_WL,1"
- #"GDK_SCALE,1"
- #"GDK_DPI_SCALE,1"
- ];
- # Gradients:
- general."col.active_border" = rgb.accent; # border color for the active window
- general."col.inactive_border" = rgb.overlay2; # border color for inactive windows
- general."col.nogroup_border_active" = rgb.maroon; # active border color for window that cannot be added to a group (see denywindowfromgroup dispatcher)
- general."col.nogroup_border" = rgb.overlay2; # inactive border color for window that cannot be added to a group (see denywindowfromgroup dispatcher)
-
- group."col.border_active" = rgb.flamingo; # active group border color
- group."col.border_inactive" = rgb.overlay2; # inactive (out of focus) group border color
- group."col.border_locked_active" = "${rgb.flamingo} ${rgb.accent} 45deg"; # active locked group border color
- group."col.border_locked_inactive" = rgb.overlay2; # inactive locked group border color
-
- group.groupbar."col.active" = rgb.flamingo; # active group border color
- group.groupbar."col.inactive" = rgb.overlay2; # inactive (out of focus) group border color
- group.groupbar."col.locked_active" = "${rgb.flamingo} ${rgb.accent} 45deg"; # active locked group border color
- group.groupbar."col.locked_inactive" = rgb.overlay2; # inactive locked group border color
-
- # Colours:
- group.groupbar.text_color = rgb.text; # controls the group bar text color
- misc."col.splash" = rgb.text; # Changes the color of the splash text (requires a monitor reload to take effect).
- misc.background_color = rgb.crust; # change the background color. (requires enabled disable_hyprland_logo)
-
- animations = {
- enabled = true;
- bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
- animation = [
- "windows, 1, 7, myBezier"
- "windowsOut, 1, 7, default, popin 80%"
- "border, 1, 10, default"
- "borderangle, 1, 8, default"
- "fade, 1, 7, default"
- "workspaces, 1, 6, default"
- ];
- };
-
- decoration = {
- rounding = cfg.window.rounding;
- active_opacity = 1.0;
- inactive_opacity = 1.0;
- shadow = {
- enabled = !cfg.graphics.legacyGpu;
- range = 12;
- render_power = 3;
- color = rgba.shadow shadow_opacity; # shadow's color. Alpha dictates shadow's opacity.
- };
- blur = {
- enabled = !cfg.graphics.legacyGpu;
- size = 3;
- passes = 1;
- vibrancy = 0.1696;
- };
- };
-
- general = {
- gaps_in = 5;
- gaps_out = 20;
- border_size = cfg.window.borderSize;
- resize_on_border = false;
- allow_tearing = true;
- layout = "dwindle";
- };
-
- dwindle = {
- pseudotile = true;
- smart_split = true;
- };
-
- cursor = {
- no_hardware_cursors = true;
- no_break_fs_vrr = false;
- enable_hyprcursor = true;
- };
-
- render = {
- direct_scanout = 2; # Try turning this off if fullscreen windows/games crash instantly
- };
-
- misc = {
- force_default_wallpaper = 0;
- disable_hyprland_logo = true;
- vrr = 1;
- mouse_move_enables_dpms = true;
- key_press_enables_dpms = true;
- };
-
- input = {
- kb_layout = cfg.input.keyLayout;
- # kb_variant =
- # kb_model =
- # kb_options =
- # kb_rules =
- follow_mouse = 1;
- sensitivity = cfg.input.sensitivity;
- accel_profile = cfg.input.accelProfile;
- touchpad = {
- natural_scroll = true;
- scroll_factor = 0.2;
- };
- };
- windowrulev2 = [
- "suppressevent maximize, class:.*"
- "bordercolor ${rgb.overlay2},xwayland:1,focus:0"
- "bordercolor ${rgb.yellow}, xwayland:1,focus:1"
-
- "float, class:(com.saivert.pwvucontrol), title:(Pipewire Volume Control)"
-
- "float, class:(gtkwave),title:(gtkwave)"
-
- "float, class:(nemo)"
-
- "float, class:.*, title:(Open File)"
- "size ${cfg.window.float.wh}, class:.*, title:(Open File)"
-
- "float, class:.*, title:(Save File)"
- "size ${cfg.window.float.wh}, class:.*, title:(Save File)"
-
- "float, class:.*, title:(Select Folder)"
- "size ${cfg.window.float.wh}, class:.*, title:(Select Folder)"
-
- ## xwaylandvideobridge specific ##
- #"opacity 0.0 override,class:^(xwaylandvideobridge)$"
- #"noanim,class:^(xwaylandvideobridge)$"
- #"noinitialfocus,class:^(xwaylandvideobridge)$"
- #"maxsize 1 1,class:^(xwaylandvideobridge)$"
- #"noblur,class:^(xwaylandvideobridge)$"
- ];
- gestures = {
- workspace_swipe = true;
- };
- binds = {
- scroll_event_delay = 100;
- };
- bindel = [
- ", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
- ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
- ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
- ", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
- ", XF86MonBrightnessUp, exec, brightnessctl s 10%+"
- ", XF86MonBrightnessDown, exec, brightnessctl s 10%-"
- ];
- bindl =
- [
- ", XF86AudioNext, exec, playerctl next"
- ", XF86AudioPause, exec, playerctl play-pause"
- ", XF86AudioPlay, exec, playerctl play-pause"
- ", XF86AudioPrev, exec, playerctl previous"
- ]
- ++ (lib.optional cfg.isLaptop ", switch:on:Lid Switch, exec, hyprctl keyword monitor \"${(builtins.head monitors).disable}\"")
- ++ (lib.optional cfg.isLaptop ", switch:off:Lid Switch, exec, hyprctl keyword monitor \"${(builtins.head monitors).enable}\"");
- binde = [
- "SUPERALT, H, resizeactive, -10 0" # resize left
- "SUPERALT, J, resizeactive, 0 10" # resize down
- "SUPERALT, K, resizeactive, 0 -10" # resize up
- "SUPERALT, L, resizeactive, 10 0" # resize right
- ];
- bind =
- (builtins.map (x: "${lib.concatStrings x.mod}, ${x.key}, exec, ${x.exec}") cfg.desktop.keybinds)
- ++ [
- "SUPERSHIFT, C, killactive,"
- "SUPERSHIFT, Q, exec, uwsm stop"
- "SUPER, V, togglefloating,"
- "SUPER, H, movefocus, l"
- "SUPER, J, movefocus, d"
- "SUPER, K, movefocus, u"
- "SUPER, L, movefocus, r"
- "SUPERSHIFT, H, swapwindow, l"
- "SUPERSHIFT, J, swapwindow, d"
- "SUPERSHIFT, K, swapwindow, u"
- "SUPERSHIFT, L, swapwindow, r"
- "SUPER, mouse_down,workspace, e+1"
- "SUPER, mouse_up, workspace, e-1"
- "SUPER, S, togglespecialworkspace, magic"
- "SUPERSHIFT, S, movetoworkspace, special:magic"
- ", PRINT, exec, hyprshot -m output -m active --clipboard-only" # screenshot active monitor
- "SUPER, PRINT, exec, hyprshot -m window -m active --clipboard-only" # screenshot active window
- "SUPERSHIFT, PRINT, exec, hyprshot -m region --clipboard-only" # screenshot region
- ]
- ++ (builtins.concatLists (
- builtins.genList (
- x:
- let
- ws =
- let
- c = (x + 1) / 10;
- in
- builtins.toString (x + 1 - (c * 10));
- in
- [
- "SUPER, ${ws},workspace, ${builtins.toString (x + 1)}"
- "SUPERSHIFT, ${ws},movetoworkspace, ${builtins.toString (x + 1)}"
- "SUPERCONTROL, ${ws},movetoworkspacesilent, ${builtins.toString (x + 1)}"
- "SUPERCONTROLALT,${ws},moveworkspacetomonitor,${builtins.toString (x + 1)} current"
- "SUPERCONTROLALT,${ws},workspace, ${builtins.toString (x + 1)}"
- ]
- ) 10
- ));
- bindm = [
- "SUPER, mouse:272, movewindow"
- "SUPER, mouse:273, resizewindow"
- ];
- };
- };
- };
- };
-}
diff --git a/config/graphical/core/idleLock.nix b/config/graphical/core/idleLock.nix
deleted file mode 100644
index e0e5221..0000000
--- a/config/graphical/core/idleLock.nix
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- lock_cmd = "uwsm app -- ${if cfg.graphics.legacyGpu then "swaylock" else "hyprlock"}";
-in
-{
- config = lib.mkIf (cfg.programs.hyprland.enable) {
-
- security.pam.services = (
- if cfg.graphics.legacyGpu then
- { swaylock.enableGnomeKeyring = true; }
- else
- { hyprlock.enableGnomeKeyring = true; }
- );
-
- sidonia.desktop.keybinds = [{
- mod = ["super"];
- key = "x";
- exec = lock_cmd;
- }];
-
- home-manager.users.${cfg.userName} = {
-
- catppuccin.hyprlock.enable = !cfg.graphics.legacyGpu;
- programs.hyprlock = {
- enable = !cfg.graphics.legacyGpu;
- };
-
- catppuccin.swaylock.enable = cfg.graphics.legacyGpu;
- programs.swaylock = {
- enable = cfg.graphics.legacyGpu;
- };
-
- services.hypridle = {
- enable = true;
- settings = {
- general = {
- inherit lock_cmd;
- before_sleep_cmd = "loginctl lock-session";
- after_cleep_cmd = "hyprctl dispatch dpms on"; # todo: check lid switch
- };
- listener = [
- {
- timeout = 180;
- on-timeout = "brightnessctl -s set 15%";
- on-resume = "brightnessctl -r";
- }
- #{
- # timeout = 180;
- # on-timeout = "brightnessctl -sd platform::kbd_backlight set 0";
- # on-resume = "brightnessctl -rd platform::kbd_backlight";
- #}
- {
- timeout = 300;
- on-timeout = "loginctl lock-session";
- }
- #{
- # timeout = 350;
- # on-timeout = "hyprctl dispatch dpms off";
- # on-resume = "hyprctl dispatch dpms on"; # todo: check lid switch
- #}
- #{
- # timeout = 420;
- # on-timeout = "systemctl suspend"; # todo: check if docked/charging first
- #}
- ];
- };
- };
- };
- };
-}
diff --git a/config/graphical/core/misc.nix b/config/graphical/core/misc.nix
deleted file mode 100644
index 727a54a..0000000
--- a/config/graphical/core/misc.nix
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-lib.mkIf (cfg.graphics.enable) {
-
- # enable virtual camera for OBS
- boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
- boot.extraModprobeConfig = ''
- options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
- '';
-
- programs = {
- steam = {
- enable = true;
- protontricks.enable = true;
- extest.enable = true;
- gamescopeSession =
- {
- enable = true;
- }
- // (lib.mkIf config.hardware.nvidia.prime.offload.enable {
- env = {
- # for Prime render offload on Nvidia laptops.
- __NV_PRIME_RENDER_OFFLOAD = "1";
- __NV_PRIME_RENDER_OFFLOAD_PROVIDER = "NVIDIA_G0";
- __GLX_VENDOR_LIBRARY_NAME = "nvidia";
- __VK_LAYER_NV_optimus = "NVIDIA_only";
- };
- });
- };
- anime-games-launcher.enable = !cfg.graphics.legacyGpu; # multi launcher
- };
-
- home-manager.users.${cfg.userName} = {
-
- home.packages = with pkgs; [
- # GUI apps
- pinta # Paint.NET-like image editor
- #plex-desktop # doesn't launch
- heroic
- protonvpn-gui
- slack
- prismlauncher
- #xivlauncher
- plexamp
- surfer
- bambu-studio
- tageditor
- ];
-
- programs = {
- obs-studio = {
- enable = true;
- plugins = with pkgs.obs-studio-plugins; [
- wlrobs
- ];
- };
- };
- };
-}
diff --git a/config/graphical/core/waybar.nix b/config/graphical/core/waybar.nix
deleted file mode 100644
index 8c76d73..0000000
--- a/config/graphical/core/waybar.nix
+++ /dev/null
@@ -1,137 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- theme = cfg.style.catppuccin;
-in
-lib.mkIf (cfg.graphics.enable) {
- home-manager.users.${cfg.userName} = {
- catppuccin.waybar.enable = true;
- programs.waybar = {
- enable = true;
- systemd.enable = true;
- #package = inputs.waybar.packages.${pkgs.system}.waybar;
- settings.mainBar =
- let
- palette = builtins.mapAttrs (n: v: "#${v.hex}") theme.color;
- in
- with palette;
- {
- layer = "top";
- position = "top";
- spacing = 16;
- modules-left = [
- "hyprland/workspaces"
- ];
- modules-center = [
- "hyprland/window" # window title
- ];
- modules-right = [
- "clock" # date & time
- "hyprland/language" # keyboard region
- "battery" # laptop battery state
- "wireplumber" # audio
- "tray" # system tray
- ];
-
- "hyprland/window" = {
- format = "{class} {title}";
- separate-outputs = true;
- icon = true;
- };
-
- "hyprland/language".format = " {}";
-
- clock = {
- format = " {:%H:%M}";
- format-alt = " {:%A, %B %d, %Y (%R)}";
- tooltip-format = "{calendar}";
- calendar = {
- mode = "year";
- mode-mon-col = 3;
- weeks-pos = "right";
- on-scroll = 1;
- format = {
- months = "{}";
- days = "{}";
- weeks = "W{}";
- weekdays = "{}";
- today = "{}";
- };
- };
- actions = {
- on-click-right = "mode"; # Switch calendar mode between year/month
- on-click-forward = "tz_up"; # Switch to the next provided time zone
- on-click-backward = "tz_down"; # Switch to the previous provided time zone
- on-scroll-up = "shift_up"; # Switch to the previous calendar month/year
- on-scroll-down = "shift_down"; # Switch to the previous calendar month/year
- on-click-middle = "shift_reset"; # Switch to current calendar month/year
- };
- };
-
- battery = {
- format = "{icon} {capacity}%";
- format-icons = [
- " "
- " "
- " "
- " "
- " "
- ];
- states = {
- warning = 30;
- critical = 15;
- };
- };
-
- wireplumber = {
- format = "{icon} {volume}%";
- format-muted = " ";
- format-icons = [
- " "
- " "
- " "
- ];
- on-click = "GSK_RENDERER=gl pwvucontrol";
- };
-
- tray = {
- spacing = 8;
- reverse-direction = false;
- };
- };
- style = ''
- @define-color accent @${theme.accent};
- #workspaces button {
- color: @subtext0;
- background-color: @base;
- }
- #workspaces button.urgent {
- color: @text;
- font-weight: bold;
- }
- #workspaces button.active {
- background-color: @surface0;
- color: @accent;
- font-weight: bold;
- }
- #tray {
- margin-right: 12px;
- }
- '';
- };
- home.file.waybarDropin = {
- enable = true;
- target = "/home/${cfg.userName}/.config/systemd/user/waybar.service.d/dropin.conf";
- text = ''
- [Service]
- RestartSec=3
- '';
- };
- };
-}
diff --git a/config/graphical/optional/discord.nix b/config/graphical/optional/discord.nix
deleted file mode 100644
index 35d3a04..0000000
--- a/config/graphical/optional/discord.nix
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-{
- options.sidonia.programs.discord = with lib; {
- enable = mkOption {
- type = types.bool;
- default = cfg.graphics.enable;
- };
- withVencord = mkOption {
- description = "Use Vencord (This allows catppuccin theming)";
- type = types.bool;
- default = true;
- };
- };
- config =
- let
- withVencord = cfg.programs.discord.withVencord;
- in
- lib.mkIf (cfg.programs.discord.enable) {
-
- home-manager.users.${cfg.userName} = {
- home.packages = [
- (pkgs.discord.override {
- withOpenASAR = true;
- withVencord = withVencord;
- })
- ];
-
- home.file.vencord = {
- enable = withVencord;
- executable = false;
- target = "/home/${cfg.userName}/.config/Vencord/settings/quickCss.css";
- text = ''
- @import url("https://catppuccin.github.io/discord/dist/catppuccin-${cfg.style.catppuccin.flavor}.theme.css");
- @import url("https://catppuccin.github.io/discord/dist/catppuccin-${cfg.style.catppuccin.flavor}-${cfg.style.catppuccin.accent}.theme.css");
- '';
- };
- };
- };
-}
diff --git a/config/graphical/optional/goxlr.nix b/config/graphical/optional/goxlr.nix
deleted file mode 100644
index 1116595..0000000
--- a/config/graphical/optional/goxlr.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-{
- options.sidonia.services.goxlr.enable =
- with lib;
- mkOption {
- description = "Enable GoXLR support";
- type = types.bool;
- default = false;
- };
- config = lib.mkIf (cfg.services.goxlr.enable) {
- services.goxlr-utility.enable = true;
- services.goxlr-utility.autoStart.xdg = false; # respect goxlr-utility's autostart toggle
- home-manager.users.${config.sidonia.userName} = {
- home.packages = [
- #inputs.goxlr-utility-ui.packages.${pkgs.system}.goxlr-utility-ui
- pkgs.goxlr-utility
- ];
- #wayland.windowManager.hyprland.settings.windowrulev2 = [
- # "float, class:(goxlr-utility-ui), title:(GoXLR Utility)"
- #];
- };
- };
-}
diff --git a/config/graphical/optional/gtkwave.nix b/config/graphical/optional/gtkwave.nix
deleted file mode 100644
index a623d4e..0000000
--- a/config/graphical/optional/gtkwave.nix
+++ /dev/null
@@ -1,129 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-{
- options.sidonia.programs = with lib; {
- gtkwave = {
- enable = mkEnableOption "Enable gtkwave";
- };
- };
- config = lib.mkIf cfg.programs.gtkwave.enable {
- home-manager.users.${cfg.userName}.home = {
- packages = with pkgs; [ gtkwave ];
- file.gtkwaverc = {
- enable = true;
- target = "/home/${cfg.userName}/.gtkwaverc";
- text = with lib.mapAttrs (n: v: v.hex) cfg.style.catppuccin.color; let
- traceRegular = green;
- traceVector = green;
- traceDontCare = yellow;
- traceTriState = teal;
- traceUndefined = red;
- in ''
- splash_disable 1
- do_initial_zoom_fit 1
- highlight_wavewindow 1
- fill_waveform 1
- clipboard_mouseover 1
- disable_mouseover 0
- show_base_symbols 0
- fontname_signals Monospace 12
- fontname_waves Monospace 12
-
- # background color
- color_back ${base}
- # text color for timebar's background
- color_timeb ${mantle}
- # text color for timebar
- color_time ${text}
-
- # color value for "normal" GTK state in signal window
- color_normal ${green}
- # brick red color for comments
- color_brkred ${red}
- # color value for "dark blue" in signal window
- color_dkblue ${accent}
- # color for shadowed traces
- color_ltblue ${sky}
-
- # color value for trace groupings
- color_gmstrd ${maroon}
-
- # grid color (use Alt+G to show/hide grid). This is also the color used for high-light_wavewindow when enabled.
- color_grid ${mantle}
-
- # grid color for secondary pattern search
- color_grid2 ${flamingo}
-
- # middle mouse button marker color
- color_baseline ${text}
- # color of the named markers
- color_mark ${peach}
- # color of the unnamed (primary) marker
- color_umark ${mauve}
-
- # color value for "white" in signal window
- color_white ${base}
- # color value for "black" in signal window
- color_black ${text}
- # color value for "light gray" in signal window
- color_ltgray ${base}
- # color value for "medium gray" in signal window
- color_mdgray ${mantle}
- # color value for "dark gray" in signal window
- color_dkgray ${crust}
-
- # text color for vector values
- color_value ${text}
- # vector color (horizontal)
- color_vbox ${traceVector}
- # vector color (verticals/transitions)
- color_vtrans ${traceVector}
-
- # trace color when 0
- color_0 ${traceRegular}
- # trace color when 1
- color_1 ${traceRegular}
- # trace color (inside of box) when 1
- color_1fill ${traceRegular}
- # trace color when transitioning
- color_trans ${traceRegular}
-
- # trace color when don't care ("-")
- color_dash ${traceDontCare}
- # trace color (inside of box) when don't care ("-")
- color_dashfill ${traceDontCare}
-
- # trace color when weak ("W")
- color_w ${traceTriState}
- # trace color when high ("H")
- color_high ${traceTriState}
- # trace color when low ("L")
- color_low ${traceTriState}
- # trace color when floating ("Z")
- color_mid ${traceTriState}
- # trace color (inside of box) when weak ("W")
- color_wfill ${traceTriState}
- # trace color (inside of box) when high ("H")
- color_highfill ${traceTriState}
-
- # trace color when undefined ("X") (collision for VHDL)
- color_x ${traceUndefined}
- # trace color (inside of box) when undefined ("X") (collision for VHDL)
- color_xfill ${traceUndefined}
- # trace color when undefined ("U")
- color_u ${traceUndefined}
- # trace color (inside of box) when undefined ("U")
- color_ufill ${traceUndefined}
- '';
- };
- };
- };
-}
diff --git a/config/graphical/optional/hyprswitch.nix b/config/graphical/optional/hyprswitch.nix
deleted file mode 100644
index 89b9dfe..0000000
--- a/config/graphical/optional/hyprswitch.nix
+++ /dev/null
@@ -1,122 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- configFile = "/home/${config.sidonia.userName}/.config/hypr/hyprswitch.css";
- hyprswitch = inputs.hyprswitch.packages.${pkgs.system}.default;
-in
-{
- options.sidonia.services.hyprswitch.enable = lib.mkEnableOption "Enable Hyprswitch";
- config = lib.mkIf (cfg.services.hyprswitch.enable) {
- sidonia.desktop.keybinds = [
- (rec {
- mod = ["super"];
- key = "tab";
- exec = lib.concatStringsSep " " [
- "uwsm app --"
- "hyprswitch gui"
- "--mod-key ${lib.concatStrings mod}"
- "--key ${key}"
- "--close mod-key-release"
- ];
- })
- ];
- home-manager.users.${config.sidonia.userName} = {
- home.packages = [ hyprswitch ];
-
- home.file.hyprswitch = {
- enable = true;
- executable = false;
- target = configFile;
- text =
- let
- rounding = builtins.toString cfg.window.rounding;
- borderSize = builtins.toString cfg.window.borderSize;
- opacity = cfg.window.opacity.hex;
- theme = cfg.style.catppuccin;
- palette = builtins.mapAttrs (n: v: "#${v.hex}") theme.color;
- in
- with palette;
- ''
- .client-image {
- margin: 15px;
- }
-
- .client-index {
- margin: 6px;
- padding: 5px;
- font-size: inherit;
- font-weight: bold;
- border-radius: ${rounding}px;
- border: none;
- background-color: inherit;
- }
-
- .client {
- border-radius: ${rounding}px;
- border: none;
- background-color: inherit;
- }
-
- .client:hover {
- color: ${accent};
- background-color: inherit;
- }
-
- .client_active {
- border: none;
- }
-
- .workspace {
- font-size: inherit;
- font-weight: bold;
- border-radius: ${rounding}px;
- border: none;
- background-color: inherit;
- }
-
- .workspace_special {
- border: none;
- }
-
- .workspaces {
- margin: 0px;
- }
-
- .index {
- border-radius: ${rounding}px;
- border: none;
- background-color: inherit;
- }
-
- window {
- font-size: 18px;
- color: ${text};
- border-radius: ${rounding}px;
- background-color: ${base}${opacity};
- border: ${borderSize}px solid ${accent};
- opacity: initial;
- }
- '';
- };
- };
- systemd.user.services.hyprswitch = {
- enable = true;
- wantedBy = [ "wayland-session@Hyprland.target" ];
- serviceConfig = {
- ExecStart = "${hyprswitch}/bin/hyprswitch init --show-title --custom-css '${configFile}'";
- };
- unitConfig = {
- Description = "Hyprland workspace switcher";
- After = "wayland-session@Hyprland.target";
- Wants = "wayland-session@Hyprland.target";
- PartOf = "wayland-session@Hyprland.target";
- };
- };
- };
-}
diff --git a/config/graphical/optional/sublime4.nix b/config/graphical/optional/sublime4.nix
deleted file mode 100644
index 0464614..0000000
--- a/config/graphical/optional/sublime4.nix
+++ /dev/null
@@ -1,965 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- theme = cfg.style.catppuccin;
- stextTop = "/home/${cfg.userName}/.config/sublime-text";
- stextPkg = stextTop + "/Packages";
- stextCfg = stextTop + "/Packages/User";
- smergeTop = "/home/${cfg.userName}/.config/sublime-merge";
- smergePkg = smergeTop + "/Packages";
- smergeCfg = smergeTop + "/Packages/User";
- catppuccinBaseName = "Catppuccin " + cfg.lib.capitalize theme.flavor;
- catppuccinColorScheme = catppuccinBaseName + ".sublime-color-scheme";
-in
-{
- options.sidonia.programs = with lib; {
- sublime-text = {
- enable = mkOption {
- type = types.bool;
- default = cfg.graphics.enable;
- };
- };
- sublime-merge = {
- enable = mkOption {
- type = types.bool;
- default = cfg.graphics.enable;
- };
- };
- };
- config = {
-
- nixpkgs.config.permittedInsecurePackages = lib.optional (
- cfg.programs.sublime-text.enable || cfg.programs.sublime-merge.enable
- ) "openssl-1.1.1w";
-
- home-manager.users.${cfg.userName} = {
- home.packages =
- with pkgs;
- (lib.optionals cfg.programs.sublime-text.enable [ sublime4 ])
- ++ (lib.optional cfg.programs.sublime-merge.enable sublime-merge);
-
- wayland.windowManager.hyprland.settings = lib.mkIf cfg.programs.sublime-merge.enable {
- windowrulev2 = [
- "float, class:(ssh-askpass-sublime)"
- ];
- };
-
- home.file = lib.mkMerge [
- (lib.mkIf (cfg.programs.sublime-text.enable || cfg.programs.sublime-merge.enable) {
- stextCatppuccin = {
- enable = true;
- target = stextPkg + "/Catppuccin color schemes";
- source = inputs.stextCatppuccin;
- };
- })
- (lib.mkIf cfg.programs.sublime-text.enable {
- # Packages
- stextPackageControl = {
- enable = true;
- target = stextPkg + "/Package Control";
- source = inputs.stextPackageControl;
- };
- stextLSP = {
- enable = true;
- target = stextPkg + "/LSP";
- source = inputs.stextLSP;
- };
- stextNix = {
- enable = true;
- target = stextPkg + "/Nix";
- source = inputs.stextNix;
- };
- stextSystemVerilog = {
- enable = true;
- target = stextPkg + "/SystemVerilog";
- source = inputs.stextSystemVerilog;
- };
- stextHooks = {
- enable = true;
- target = stextPkg + "/hooks";
- source = inputs.stextHooks;
- };
-
- #Config
- stextCfg = {
- enable = true;
- target = stextCfg + "/Preferences.sublime-settings";
- text = builtins.toJSON {
- ignored_packages = [ "Vintage" ];
- font_size = if cfg.text.smallTermFont then 9 else 10;
- translate_tabs_to_spaces = true;
- index_files = true;
- hardware_acceleration = if cfg.graphics.legacyGpu then "none" else "opengl";
- theme = "Adaptive.sublime-theme";
- color_scheme = catppuccinColorScheme;
- update_check = false;
- sublime_merge_path =
- if cfg.programs.sublime-merge.enable then "${pkgs.sublime-merge}/bin/sublime_merge" else null;
- };
- };
- stextSystemVerilogCfg = {
- enable = true;
- target = stextCfg + "/SystemVerilog.sublime-settings";
- text = builtins.toJSON {
- "sv.disable_autocomplete" = true;
- "sv.tooltip" = true;
- };
- };
- stextLSPCfg = {
- enable = true;
- target = stextCfg + "/LSP.sublime-settings";
- text = builtins.toJSON {
- clients = {
- verible = {
- enabled = cfg.lib.isInstalled pkgs.verible;
- command = [
- "verible-verilog-ls"
- "--rules_config_search"
- ];
- selector = "source.systemverilog";
- };
- nil = {
- enabled = cfg.lib.isInstalled pkgs.nil;
- command = [ "nil" ];
- selector = "source.nix";
- # https://github.com/oxalica/nil/blob/main/docs/configuration.md
- settings = {
- nil.nix.flake = {
- autoArchive = true;
- autoEvalInputs = true;
- };
- };
- };
- svls = {
- enabled = cfg.lib.isInstalled pkgs.svls;
- command = [ "svls" ];
- selector = "source.systemverilog";
- };
- };
- };
- };
- })
- (lib.mkIf cfg.programs.sublime-merge.enable {
- smergeCfg = {
- enable = true;
- target = smergeCfg + "/Preferences.sublime-settings";
- text = builtins.toJSON (
- {
- translate_tabs_to_spaces = true;
- side_bar_layout = "tabs";
- font_size = if cfg.text.smallTermFont then 9 else 10;
- hardware_acceleration = if cfg.graphics.legacyGpu then "none" else "opengl";
- update_check = false;
- editor_path =
- if cfg.lib.isInstalled pkgs.sublime4 then "${pkgs.sublime4}/bin/sublime_text" else null;
- }
- // (if (theme.flavor != "latte") then { theme = "${catppuccinBaseName}.sublime-theme"; } else { })
- );
- };
- smergeCommitMessageCfg = {
- enable = theme.flavor != "latte";
- target = smergeCfg + "/Commit Message - ${catppuccinBaseName}.sublime-settings";
- text = builtins.toJSON {
- color_scheme = catppuccinColorScheme;
- };
- };
- smergeDiffCfg = {
- enable = theme.flavor != "latte";
- target = smergeCfg + "/Diff - ${catppuccinBaseName}.sublime-settings";
- text = builtins.toJSON {
- color_scheme = catppuccinColorScheme;
- };
- };
- smergeFileModeCfg = {
- enable = theme.flavor != "latte";
- target = smergeCfg + "/File Mode - ${catppuccinBaseName}.sublime-settings";
- text = builtins.toJSON {
- color_scheme = catppuccinColorScheme;
- };
- };
-
- # based on https://github.com/bitsper2nd/merge-mariana-theme
- smergeThemeOverride = {
- enable = theme.flavor != "latte";
- target = smergeCfg + "/${catppuccinBaseName}.sublime-theme";
- text =
- let
- palette = lib.mapAttrs (n: v: "#${v.hex}") theme.color;
- in
- with palette;
- builtins.toJSON {
- extends = "Merge.sublime-theme";
- variables = {
- inherit
- pink
- red
- maroon
- yellow
- green
- teal
- blue
- lavender
- text
- ;
-
- white = "hsl(0, 0%, 95%)";
- text-heading = subtext1;
- text-light = subtext0; # "color(${text} a(- 40%))"
- darken = "hsl(0, 0%, 13%)";
-
- orange = peach;
- cyan = sapphire;
- purple = mauve;
-
- # Alias for pink
- magenta = pink;
- dark_red = "color(${red} s(25%) l(35%))";
- dark_blue = "color(${blue}) s(25%) l(35%))";
-
- # Labels
- label_color = "var(text-heading)";
- help_label_color = "var(text-light)"; # "color(var(text-heading) a(0.6))";
-
- # Header
- title_bar_style = "dark";
- header_bg = base;
- header_fg = "var(text-heading)";
- header_button_bg = surface1; # "color(${base} l(25%))";
- icon_button_fg = text;
-
- info_shadow = "color(black a(0.2))";
-
- diverged_bg = "color(var(orange) l(- 5%) s(- 20%))";
- diverged_button_bg = "var(button_bg)";
- diverged_button_fg = base;
-
- # Scroll shadow
- scroll_shadow = "color(black a(0.3))";
-
- # Focus highlight
- focus_highlight_color = text;
-
- # Welcome overlay
- welcome_bg = "color(${base} l(- 5%))";
- recent_repositories_row_bg-hover = "color(${base} l(+ 5%))";
-
- # Preferences Page
- preferences_overlay_bg = "color(${base} l(+ 5%))";
- preferences_section_table_bg = base;
-
- # Side bar
- location_bar_fg = text;
- location_bar_heading_fg = "var(text-heading)";
- location_bar_heading_shadow = "black";
- location_bar_row_bg-hover = "color(${base} l(+ 30%) a(0.25))";
- disclosure_fg = text;
-
- # Commit list
- commit_list_bg = mantle;
- commit_row_bg-hover = base;
- commit_summary_fg-primary = "var(text-heading)";
- commit_summary_fg-secondary = "var(text-light)";
- commit_color_count = 8;
-
- commit_edge_0 = blue;
- commit_edge_1 = mauve;
- commit_edge_2 = pink;
- commit_edge_3 = peach;
- commit_edge_4 = yellow;
- commit_edge_5 = green;
- commit_edge_6 = red;
- commit_edge_7 = sapphire;
-
- # Annotations
- commit_annotation_fg = base;
- commit_annotation_fg_inverted = base;
- commit_annotation_bg = sapphire;
-
- commit_annotation_fg_0_border = "var(commit_edge_0)";
- commit_annotation_fg_1_border = "var(commit_edge_1)";
- commit_annotation_fg_2_border = "var(commit_edge_2)";
- commit_annotation_fg_3_border = "var(commit_edge_3)";
- commit_annotation_fg_4_border = "var(commit_edge_4)";
- commit_annotation_fg_5_border = "var(commit_edge_5)";
- commit_annotation_fg_6_border = "var(commit_edge_6)";
- commit_annotation_fg_7_border = "var(commit_edge_7)";
-
- commit_annotation_bg_inverted_0 = "color(var(commit_edge_0))";
- commit_annotation_bg_inverted_1 = "color(var(commit_edge_1))";
- commit_annotation_bg_inverted_2 = "color(var(commit_edge_2))";
- commit_annotation_bg_inverted_3 = "color(var(commit_edge_3))";
- commit_annotation_bg_inverted_4 = "color(var(commit_edge_4))";
- commit_annotation_bg_inverted_5 = "color(var(commit_edge_5))";
- commit_annotation_bg_inverted_6 = "color(var(commit_edge_6))";
- commit_annotation_bg_inverted_7 = "color(var(commit_edge_7))";
-
- # Location Bar
- side_bar_container_bg = base;
-
- # Table of Contents
- table_of_contents_bg = "color(${base} l(+ 3%))";
- table_of_contents_fg = text;
- table_of_contents_heading_fg = "var(text-heading)";
- table_of_contents_row_bg = "color(${base} l(+ 30%))";
-
- # Detail panel
- detail_panel_bg = base;
- field_name_fg = text;
- author_fg = overlay2; # "color(var(white) a(0.4))";
- terminator_fg = text;
-
- remote_ann_fg = "color(${base} a(0.7))";
- remote_ann_bg = green;
-
- stash_ann_fg = text;
- stash_ann_bg = surface1; # "color(var(white) a(20%))"
- stash_ann_border = overlay2; # "color(var(white) a(50%))";
-
- tag_ann_fg = base;
- tag_ann_bg = yellow;
- tag_ann_opacity = 0.4;
-
- file_ann_fg = base;
- file_ann_bg = blue;
-
- submodule_ann_fg = text;
- submodule_ann_bg = surface1; # "color(var(white) a(20%))"
- submodule_light_ann_fg = text;
- submodule_light_ann_bg = surface1; # "color(var(white) a(20%))"
-
- inserted_ann_bg = "color(${green} a(0.50))";
- deleted_ann_bg = "color(${red} a(0.50))";
-
- # Diff headers
- file_diff_shadow = "color(black a(0.5))";
- file_icon_bg = "color(${text} a(0.2))";
-
- hunk_button_fg = text;
- hunk_button_shadow = "color(black a(0.5))";
-
- file_header_bg = surface0; # "color(${base} l(+ 5%))";
- file_header_bg-hover = surface1; # "color(${base} l(+ 10%))";
-
- hunk_header_bg = base; # "color(${base} l(+ 12%))";
-
- deleted_icon_fg = text;
- deleted_header_bg = red;
- deleted_header_bg-hover = "color(${red} l(+ 5%))";
-
- unmerged_icon_fg = text;
- unmerged_header_bg = blue;
- unmerged_header_bg-hover = "color(${blue}) l(+ 3%))";
-
- recent_icon_fg = yellow;
- recent_icon_bg = "transparent";
- untracked_header_bg = surface0; # "color(${base} s(- 5%) l(+ 15%))";
- untracked_header_bg-hover = surface1; # "color(var(untracked_header_bg) l(+ 5%))";
-
- full_context_icon_bg = text;
-
- staged_icon_fg = text;
-
- renamed_file_inserted = "color(${green} s(30%) l(60%))";
- renamed_file_deleted = "color(${red} s(50%) l(65%))";
-
- # Blame
- blame_popup_bg = surface0;
-
- # Buttons
- button_bg = overlay0; # "color(var(white) a(20%))"
- button_fg = "var(label_color)";
- button_shadow = "color(black a(0.5))";
-
- highlighted_button_light_bg = "color(${green} a(75%))";
- highlighted_button_light_fg = text;
- highlighted_button_dark_bg = "color(${green} a(75%))";
- highlighted_button_dark_fg = text;
- highlighted_button_shadow = "color(black a(0.5) l(+ 10%))";
-
- toggle_button_bg = overlay0; # "color(var(white) a(20%))" # This matches the header hover buttons
- toggle_button_fg = text;
- toggle_button_fg_selected = "var(text-heading)";
-
- # Tabs
- tab_bar_bg = base;
- tab_separator_bg = base;
-
- # Radio buttons
- radio_back = base;
- radio_selected = accent;
- radio_border-selected = accent;
-
- # Checkbox buttons
- checkbox_back = base;
- checkbox_selected = accent;
- checkbox_border-selected = accent;
-
- # Dialogs
- dialog_bg = base;
- dialog_button_bg = overlay0; # "color(var(white) a(20%))"
-
- # Progress bar
- progress_bg = "var(header_button_bg)";
- progress_fg = "color(${accent}))";
-
- # Quick panel
- quick_panel_bg = base;
- quick_panel_row_bg = surface0;
- quick_panel_fg = text;
- quick_panel_fg-match = accent;
- quick_panel_fg-selected = text;
- quick_panel_fg-selected-match = accent;
- quick_panel_path_fg = "var(text-light)";
- quick_panel_path_fg-match = accent;
- quick_panel_path_fg-selected = "var(text-light)";
- quick_panel_path_fg-selected-match = accent;
-
- switch_repo_bg = base;
-
- # Image Diffs
- image_diff_checkerboard_alt_bg = surface0;
- image_metadata_label_bg = surface1;
-
- # Hints
- failed_label_fg = base;
-
- # Loading
- loading_ball_1 = pink;
- loading_ball_2 = green;
-
- # Command Palette
- preview_fg = "white";
-
- # Merge Helper
- merge_helper_highlight_bg = surface1;
- console_border = "color(${base} l(+ 10%))";
-
- # Tabs
- repository_tab_bar_bg = base;
- repository_tab_bar_border_bg = base;
-
- file_badge_created_fg = green;
- file_badge_deleted_fg = pink;
- file_badge_modified_fg = peach;
- file_badge_modified_bg = surface1; # "color(var(white) a(20%))"
- file_badge_unmerged_fg = sapphire;
- file_badge_unmerged_bg = surface1; # "color(var(white) a(20%))"
- file_badge_untracked_fg = mauve;
- file_badge_untracked_bg = surface1; # "color(var(white) a(20%))"
- file_badge_staged_fg = green;
- file_badge_staged_bg = surface1; # "color(var(white) a(20%))"
-
- };
- rules =
- (
- with builtins;
- concatLists (
- genList (x: [
- {
- class = "commit_annotation";
- parents = [
- {
- class = "commit_annotations";
- attributes = [ "column_${toString (x + 1)}" ];
- }
- ];
- border_color = "var(commit_annotation_fg_${toString x}_border)";
- background_color = "var(commit_annotation_bg_inverted_${toString x})";
- }
- ]) 8
- )
- )
- ++ [
- {
- class = "condensed_branch_annotation_container";
- border_color = crust;
- background_color = crust;
- }
- {
- class = "tab_control";
- "layer3.opacity" = 0.0;
- "layer2.opacity" = 0.0;
- "layer2.draw_center" = false;
- "layer2.inner_margin" = [
- 0
- 0
- 0
- 1
- ];
- "layer2.tint" = accent;
- }
- {
- class = "tab_control";
- attributes = [ "hover" ];
- "layer2.opacity" = 0.5;
- }
- {
- class = "tab_control";
- attributes = [ "selected" ];
- "layer2.opacity" = 1.0;
- # File Tabs
- }
- {
- class = "tab_separator";
- "layer0.inner_margin" = [
- 0
- 0
- ];
- content_margin = [
- 0
- 0
- 0
- 0
- ];
- }
- {
- class = "tab";
- "layer0.tint" = base;
- "layer2.draw_center" = false;
- "layer2.inner_margin" = [
- 0
- 0
- 0
- 1
- ];
- "layer2.tint" = accent;
- "layer2.opacity" = 0.0;
- }
- {
- class = "tab";
- attributes = [ "hover" ];
- "layer2.opacity" = 0.5;
- }
- {
- class = "tab";
- attributes = [ "selected" ];
- "layer2.opacity" = 1.0;
- }
- {
- class = "overlay_container_control";
- "layer0.opacity" = 0.6;
- "layer0.tint" = "color(${base} l(+ 10%))";
- }
- {
- class = "commit_annotations";
- num_unique_columns = "var(commit_color_count)";
- }
- {
- class = "stash_annotation";
- color = "var(stash_ann_fg)";
- background_color = "var(stash_ann_bg)";
- border_color = "var(stash_ann_border)";
- }
- {
- class = "tag_annotation_icon";
- "layer0.opacity" = 1;
- "layer0.tint" = base;
- }
- {
- class = "tag_annotation";
- color = "var(tag_ann_fg)";
- }
- {
- class = "panel_control";
- parents = [ { class = "switch_project_window"; } ];
- "layer0.tint" = base;
- }
- {
- class = "tool_tip_label_control";
- color = text;
- }
- {
- class = "tool_tip_control";
- "layer0.tint" = base;
- }
- {
- class = "info_area";
- "layer0.opacity" = 0.5;
- "layer0.tint" = "var(header_button_bg)";
- }
- {
- class = "info_area";
- attributes = [ "hover" ];
- "layer0.opacity" = 0.75;
- }
- {
- class = "location_bar_heading";
- color = "var(location_bar_heading_fg)";
- }
- {
- class = "table_of_contents_heading";
- color = "var(table_of_contents_heading_fg)";
- }
- {
- class = "text_line_control";
- "layer0.tint" = mantle;
- color_scheme_tint = mantle;
- color_scheme_tint_2 = mantle;
- }
- {
- class = "search_text_control";
- "layer0.tint" = base;
- }
- {
- class = "search_help";
- headline_color = "var(text-light)";
- }
- {
- class = "quick_panel_label hint";
- color = overlay2;
- }
- {
- class = "quick_panel_label key_binding";
- color = overlay2;
- }
- {
- class = "diff_text_control";
- "line_selection_color" = "color(${accent}) alpha(0.05))";
- "line_selection_border_color" = "color(${accent}) alpha(0.5))";
- "line_selection_border_width" = 2.0;
- "line_selection_border_radius" = 2.0;
- }
- {
- class = "branch_stat";
- "layer0.tint" = overlay2;
- }
- {
- class = "branch_stat_label";
- color = text;
- }
- {
- class = "icon_behind";
- "layer0.opacity" = 1.0;
- "layer0.tint" = pink;
- }
- {
- class = "icon_ahead";
- "layer0.opacity" = 1.0;
- "layer0.tint" = green;
- }
- {
- class = "commit_edges_control";
- num_colors = "var(commit_color_count)";
- color0 = "var(commit_edge_0)";
- color1 = "var(commit_edge_1)";
- color2 = "var(commit_edge_2)";
- color3 = "var(commit_edge_3)";
- color4 = "var(commit_edge_4)";
- color5 = "var(commit_edge_5)";
- color6 = "var(commit_edge_6)";
- color7 = "var(commit_edge_7)";
- }
- {
- class = "blame_text_control";
- num_colors = 8;
- color0 = sapphire;
- color1 = mauve;
- color2 = pink;
- color3 = peach;
- color4 = yellow;
- color5 = green;
- color6 = red;
- color7 = blue;
- }
- {
- class = "new_badge";
- parents = [ { class = "file_diff_header"; } ];
- "layer0.tint" = red;
- }
- {
- class = "staged_badge";
- "layer0.tint" = "var(file_badge_staged_bg)";
- }
- {
- class = "staged_badge";
- parents = [ { class = "file_diff_header"; } ];
- "layer0.tint" = "var(file_badge_staged_bg)";
- }
- {
- class = "staged_badge";
- parents = [
- {
- class = "file_diff_header";
- attributes = [ "hover" ];
- }
- ];
- "layer0.tint" = "var(file_badge_staged_bg)";
- }
- {
- class = "modified_badge";
- "layer0.tint" = "var(file_badge_modified_bg)";
- }
- {
- class = "modified_badge";
- parents = [ { class = "file_diff_header"; } ];
- "layer0.tint" = "var(file_badge_modified_bg)";
- }
- {
- class = "modified_badge";
- parents = [
- {
- class = "file_diff_header";
- attributes = [ "hover" ];
- }
- ];
- "layer0.tint" = "var(file_badge_modified_bg)";
- }
- {
- class = "unmerged_badge";
- "layer0.tint" = "var(file_badge_unmerged_bg)";
- }
- {
- class = "unmerged_badge";
- parents = [ { class = "file_diff_header"; } ];
- "layer0.tint" = "var(file_badge_unmerged_bg)";
- }
- {
- class = "unmerged_badge";
- parents = [
- {
- class = "file_diff_header";
- attributes = [ "hover" ];
- }
- ];
- "layer0.tint" = "var(file_badge_unmerged_bg)";
- }
- {
- class = "untracked_badge";
- "layer0.tint" = "var(file_badge_untracked_bg)";
- }
- {
- class = "untracked_badge";
- parents = [ { class = "file_diff_header"; } ];
- "layer0.tint" = "var(file_badge_untracked_bg)";
- }
- {
- class = "untracked_badge";
- parents = [
- {
- class = "file_diff_header";
- attributes = [ "hover" ];
- }
- ];
- "layer0.tint" = "var(file_badge_untracked_bg)";
- }
- {
- class = "icon_created";
- "layer0.tint" = "var(file_badge_created_fg)";
- }
- {
- class = "icon_deleted";
- "layer0.tint" = "var(file_badge_deleted_fg)";
- }
- {
- class = "label_control";
- parents = [ { class = "modified_badge"; } ];
- fg = "var(file_badge_modified_fg)";
- }
- {
- class = "label_control";
- parents = [ { class = "unmerged_badge"; } ];
- fg = "var(file_badge_unmerged_fg)";
- }
- {
- class = "label_control";
- parents = [ { class = "untracked_badge"; } ];
- fg = "var(file_badge_untracked_fg)";
- }
- {
- class = "label_control";
- parents = [ { class = "staged_badge"; } ];
- fg = "var(file_badge_staged_fg)";
- }
- {
- class = "icon_deleted";
- parents = [ { class = "modified_badge"; } ];
- "layer0.tint" = "var(file_badge_deleted_fg)";
- }
- {
- class = "icon_unmerged";
- parents = [ { class = "unmerged_badge"; } ];
- "layer0.tint" = "var(file_badge_unmerged_fg)";
- }
- {
- class = "tab_label";
- parents = [
- {
- class = "tab_control";
- attributes = [ "selected" ];
- }
- ];
- fg = text;
- }
- {
- class = "tab_label";
- parents = [
- {
- class = "tab_control";
- attributes = [ "!selected" ];
- }
- ];
- fg = subtext0;
- }
- {
- class = "tab_label";
- parents = [
- {
- class = "tab_control";
- attributes = [
- "!selected"
- "hover"
- ];
- }
- ];
- fg = subtext1;
- }
- {
- class = "tab_close_button";
- "layer0.texture" = "Theme - Default/common/tab_close.png";
- "layer0.tint" = overlay1;
- "layer0.opacity" = 0.0;
- }
- {
- class = "tab_close_button";
- parents = [
- {
- class = "tab_control";
- attributes = [ "selected" ];
- }
- ];
- "layer0.opacity" = 1.0;
- }
- {
- class = "tab_close_button";
- parents = [
- {
- class = "tab_control";
- attributes = [ "hover" ];
- }
- ];
- "layer0.opacity" = 1.0;
- }
- {
- class = "tab_close_button";
- parents = [
- {
- class = "tab_control";
- attributes = [ "dirty" ];
- }
- ];
- "layer0.texture" = "Theme - Merge/tab_dirty.png";
- "layer0.tint" = maroon;
- "layer0.opacity" = 1.0;
- }
- {
- class = "tab_close_button";
- "layer0.texture" = "Theme - Default/common/tab_close.png";
- attributes = [ "hover" ];
- "layer0.tint" = text;
- "layer0.opacity" = 1.0;
- }
- {
- class = "icon_folder";
- "layer0.texture" = "Theme - Default/common/folder_closed.png";
- }
- {
- class = "icon_folder";
- parents = [
- {
- class = "tab_control";
- attributes = [ "selected" ];
- }
- ];
- "layer0.texture" = "Theme - Default/common/folder_open.png";
- "layer0.opacity" = 1.0;
- "layer0.tint" = accent;
- }
- {
- class = "icon_folder";
- parents = [
- {
- class = "tab_control";
- attributes = [ "!selected" ];
- }
- ];
- "layer0.opacity" = 1.0;
- "layer0.tint" = overlay0;
- }
- {
- class = "icon_folder";
- parents = [
- {
- class = "tab_control";
- attributes = [
- "!selected"
- "hover"
- ];
- }
- ];
- "layer0.opacity" = 1.0;
- "layer0.tint" = overlay1;
- }
- ]
- ++ (lib.optionals (theme.flavor != "latte") [
- {
- class = "branch_table";
- "dark_content" = true;
- }
- {
- class = "commit_table";
- "dark_content" = true;
- }
- {
- class = "scroll_track_control";
- parents = [ { class = "commit_table_container"; } ];
- "layer0.texture" = "Theme - Merge/dark_scroll_bar.png";
- }
- {
- class = "puck_control";
- parents = [ { class = "commit_table_container"; } ];
- "layer0.texture" = "Theme - Merge/dark_scroll_puck.png";
- }
- {
- class = "scroll_track_control";
- parents = [ { class = "side_bar_container"; } ];
- "layer0.texture" = "Theme - Merge/dark_scroll_bar.png";
- }
- {
- class = "puck_control";
- parents = [ { class = "side_bar_container"; } ];
- "layer0.texture" = "Theme - Merge/dark_scroll_puck.png";
- }
- {
- class = "scroll_track_control";
- parents = [ { class = "details_panel"; } ];
- "layer0.texture" = "Theme - Merge/dark_scroll_bar.png";
- }
- {
- class = "puck_control";
- parents = [ { class = "details_panel"; } ];
- "layer0.texture" = "Theme - Merge/dark_scroll_puck.png";
- }
- {
- class = "scroll_track_control";
- parents = [ { class = "overlay_control"; } ];
- "layer0.texture" = "Theme - Merge/dark_scroll_bar.png";
- }
- {
- class = "puck_control";
- parents = [ { class = "overlay_control"; } ];
- "layer0.texture" = "Theme - Merge/dark_scroll_puck.png";
- }
- ]);
- };
- };
- })
- ];
- };
- };
-}
diff --git a/config/graphical/optional/vesktop.nix b/config/graphical/optional/vesktop.nix
deleted file mode 100644
index 286ac5f..0000000
--- a/config/graphical/optional/vesktop.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-{
- options.sidonia.programs.vesktop.enable =
- with lib;
- mkOption {
- description = "Enable Vesktop, A custom Discord App aiming to give you better performance and improve linux support";
- type = types.bool;
- default = cfg.graphics.enable;
- };
- config = lib.mkIf (cfg.programs.vesktop.enable) {
- home-manager.users.${cfg.userName} = {
- home.packages = [
- pkgs.vesktop
- ];
-
- home.file.vesktop = {
- enable = true;
- executable = false;
- target = "/home/${cfg.userName}/.config/vesktop/settings/quickCss.css";
- text = ''
- @import url("https://catppuccin.github.io/discord/dist/catppuccin-${cfg.style.catppuccin.flavor}.theme.css");
- @import url("https://catppuccin.github.io/discord/dist/catppuccin-${cfg.style.catppuccin.flavor}-${cfg.style.catppuccin.accent}.theme.css");
- '';
- };
- };
- };
-}
diff --git a/config/graphical/optional/vscodium.nix b/config/graphical/optional/vscodium.nix
deleted file mode 100644
index 4ca7abe..0000000
--- a/config/graphical/optional/vscodium.nix
+++ /dev/null
@@ -1,104 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- theme = cfg.style.catppuccin;
-in
-{
- options.sidonia.programs.vscodium.enable =
- with lib;
- mkOption {
- type = types.bool;
- default = cfg.graphics.enable;
- };
- config = lib.mkIf (cfg.programs.vscodium.enable) {
- nixpkgs.overlays = [
- #(final: prev: {
- # vscodium = inputs.unstable.legacyPackages.${final.system}.vscodium;
- #})
- (
- final: prev:
- let
- version = lib.versions.pad 3 final.vscodium.version;
- flakeExts = inputs.nix-vscode-extensions.extensions.${final.system}.forVSCodeVersion version;
- in
- {
- vscode-extensions =
- with flakeExts;
- lib.zipAttrsWith (name: values: (lib.mergeAttrsList values)) [
- prev.vscode-extensions
- open-vsx
- open-vsx-release
- vscode-marketplace
- vscode-marketplace-release
- ];
- }
- )
- ];
- home-manager.users.${cfg.userName} = {
- catppuccin.vscode = {
- enable = true;
- inherit (theme) accent flavor;
- };
- programs.vscode = {
- enable = true;
- package = pkgs.vscodium;
- profiles.default = {
- enableExtensionUpdateCheck = false;
- enableUpdateCheck = false;
- extensions = with pkgs.vscode-extensions; [
- haskell.haskell
- jnoortheen.nix-ide
- llvm-vs-code-extensions.vscode-clangd
- mkhl.direnv
- gruntfuggly.triggertaskonsave
- catppuccin.catppuccin-vsc-icons
- christian-kohler.path-intellisense
- yandeu.five-server
- sankooc.pcapviewer
- mshr-h.veriloghdl
- ];
- userSettings =
- let
- nixfmt = [
- "nixfmt"
- "--indent=4"
- ];
- in
- {
- "workbench.iconTheme" = "catppuccin-${theme.flavor}"; # remove when 25.05 is stable
- "workbench.colorTheme" = "Catppuccin ${cfg.lib.capitalize theme.flavor}"; # remove when 25.05 is stable
- "workbench.editorAssociations" = {
- "*.pcap" = "proto.pcapng";
- };
- "typescript.suggest.paths" = false;
- "javascript.suggest.paths" = false;
- "nix.enableLanguageServer" = true;
- "nix.formatterPath" = nixfmt;
- "nix.serverPath" = "nil";
- "nix.serverSettings" = {
- nil = {
- diagnostics.ignored = [
- "unused_binding"
- "unused_with"
- ];
- formatting.command = nixfmt;
- nix.flake = {
- autoArchive = true;
- autoEvalInputs = true;
- nixpkgsInputName = "nixpkgs";
- };
- };
- };
- "editor.fontFamily" = "monospace, 'ComicShannsMono Nerd Font'";
- };
- };
- };
- };
- };
-}
diff --git a/config/headless/core/btop.nix b/config/headless/core/btop.nix
deleted file mode 100644
index ba3c54b..0000000
--- a/config/headless/core/btop.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-{
- home-manager.users.${config.sidonia.userName} = {
- catppuccin.btop.enable = true;
- programs.btop = {
- enable = true;
- };
- };
-}
diff --git a/config/headless/core/configuration.nix b/config/headless/core/configuration.nix
deleted file mode 100644
index 2dcacc7..0000000
--- a/config/headless/core/configuration.nix
+++ /dev/null
@@ -1,305 +0,0 @@
-# Edit this configuration file to define what should be installed on
-# your system. Help is available in the configuration.nix(5) man page
-# and in the NixOS manual (accessible by running ‘nixos-help’).
-
-{
- config,
- pkgs,
- inputs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-{
- boot.initrd.systemd.enable = true;
-
- networking.hostName = cfg.hostName;
-
- # https://github.com/NixOS/nixpkgs/issues/343975
- # system.switch.enableNg = false;
-
- nix.gc.automatic = true;
- nix.settings.auto-optimise-store = true;
- nix.settings.trusted-users = [ cfg.userName ];
-
- sops.defaultSopsFile = ../../../secrets/secrets.yaml;
- sops.defaultSopsFormat = "yaml";
- sops.age.keyFile = "/home/${cfg.userName}/.config/sops/age/keys.txt";
-
- catppuccin = {
- enable = true;
- accent = cfg.style.catppuccin.accent;
- flavor = cfg.style.catppuccin.flavor;
- };
-
- # Enable Graphics
- hardware.graphics = {
- enable = true;
- enable32Bit = true;
- };
-
- # https://cmm.github.io/soapbox/the-year-of-linux-on-the-desktop.html
- zramSwap.enable = true;
- # use values deemed by folk wisdom to be optimal with zstd zram swap
- boot.kernel.sysctl = {
- "vm.swappiness" = 180;
- "vm.page-cluster" = 0;
- "vm.watermark_scale_factor" = 125;
- "vm.watermark_boost_factor" = 0;
- };
-
- # use the handy system76-scheduler service (it is not in fact specific
- # to System76 hardware, despite the name)
- services.system76-scheduler = {
- enable = true;
- useStockConfig = false; # our needs are modest
- settings = {
- # CFS profiles are switched between "default" and "responsive"
- # according to power source ("default" on battery, "responsive" on
- # wall power). defaults are fine, except maybe this:
- cfsProfiles.default.preempt = "voluntary";
- # "voluntary" supposedly conserves battery but may also allow some
- # audio skips, so consider changing to "full"
- processScheduler = {
- # Pipewire client priority boosting is not needed when all else is
- # configured properly, not to mention all the implied
- # second-guessing-the-kernel and priority inversions, so:
- pipewireBoost.enable = false;
- # I believe this exists solely for the placebo effect, so disable:
- foregroundBoost.enable = false;
- };
- };
- assignments = {
- # confine builders / compilers / LSP servers etc. to the "batch"
- # scheduling class automagically. add matchers to taste!
- batch = {
- class = "batch";
- matchers = [
- "bazel"
- "clangd"
- "rust-analyzer"
- ];
- };
- };
- # do not disturb adults:
- exceptions = [
- "include descends=\"schedtool\""
- "include descends=\"nice\""
- "include descends=\"chrt\""
- "include descends=\"taskset\""
- "include descends=\"ionice\""
-
- "schedtool"
- "nice"
- "chrt"
- "ionice"
-
- "dbus"
- "dbus-broker"
- "rtkit-daemon"
- "taskset"
- "systemd"
- ];
- };
-
- systemd =
- let
- accounting = ''
- DefaultCPUAccounting=yes
- DefaultMemoryAccounting=yes
- DefaultIOAccounting=yes
- '';
- in
- {
- # tell Systemd to measure things (probably the default these days?
- # doesn't hurt, anyway):
- extraConfig = accounting;
- user.extraConfig = accounting;
- services."user@".serviceConfig.Delegate = true;
-
- # enable MGLRU. change the min_ttl_ms value to taste
- services."config-mglru" = {
- enable = true;
- after = [ "basic.target" ];
- wantedBy = [ "sysinit.target" ];
- script = with pkgs; ''
- ${coreutils}/bin/echo Y > /sys/kernel/mm/lru_gen/enabled
- ${coreutils}/bin/echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms
- '';
- };
-
- # configure systemd-oomd properly
- oomd = {
- enable = true;
- # disable the provided knobs -- they are too coarse, and also swap
- # monitoring seems like a bad idea, with btrfs anyway
- enableRootSlice = false;
- enableSystemSlice = false;
- enableUserSlices = false;
- # change if 4s is too fast
- extraConfig.DefaultMemoryPressureDurationSec = "4s";
- };
-
- # kill off stuff if absolutely needed, limit to things killing which
- # is unlikely to gimp system/desktop irreversibly, go only by PSI.
- # tweak limits to taste, but be careful not to make them too high or
- # you'll get the kernel OOM killer (on my machine 35% is too high, for
- # example)
- user.slices."app".sliceConfig = {
- ManagedOOMMemoryPressure = "kill";
- ManagedOOMMemoryPressureLimit = "16%";
- };
- slices."background".sliceConfig = {
- ManagedOOMMemoryPressure = "kill";
- ManagedOOMMemoryPressureLimit = "8%";
- };
- user.slices."background".sliceConfig = {
- ManagedOOMMemoryPressure = "kill";
- ManagedOOMMemoryPressureLimit = "8%";
- };
- };
-
- #######################################################################
-
- # Firmware updater
- services.fwupd.enable = true;
-
- services.fstrim.enable = true;
- services.dbus.implementation = "broker";
- services.irqbalance.enable = true;
-
- # Enable networking
- networking.networkmanager = {
- enable = true;
- wifi = {
- backend = "iwd";
- powersave = true;
- };
- dns = "systemd-resolved";
- };
- networking.nftables.enable = true;
- networking.firewall.enable = true;
-
- # Enable local service discovery
- networking.firewall.allowedUDPPorts = [ 5353 ];
- services.resolved = {
- enable = true;
- llmnr = "true"; # true/false/resolve
- dnsovertls = "opportunistic";
- };
- services.avahi = {
- enable = true;
- nssmdns4 = true;
- nssmdns6 = true;
- openFirewall = true;
- };
-
- # Enable printing
- services.printing.enable = true;
-
- # Enable bluetooth
- hardware.bluetooth.enable = true;
- hardware.bluetooth.powerOnBoot = true;
-
- # Set your time zone.
- time.timeZone = lib.mkDefault "Europe/Dublin";
- #services.automatic-timezoned.enable = true;
- services.localtimed.enable = cfg.geolocation.enable;
- services.geoclue2 = {
- enable = cfg.geolocation.enable;
- geoProviderUrl = "https://beacondb.net/v1/geolocate";
- };
-
- # Select internationalisation properties.
- i18n.defaultLocale = "en_GB.UTF-8";
-
- i18n.extraLocaleSettings = {
- LC_ADDRESS = "en_IE.UTF-8";
- LC_IDENTIFICATION = "en_IE.UTF-8";
- LC_MEASUREMENT = "en_IE.UTF-8";
- LC_MONETARY = "en_IE.UTF-8";
- LC_NAME = "en_IE.UTF-8";
- LC_NUMERIC = "en_IE.UTF-8";
- LC_PAPER = "en_IE.UTF-8";
- LC_TELEPHONE = "en_IE.UTF-8";
- LC_TIME = "en_IE.UTF-8";
- };
-
- console.keyMap = cfg.input.keyLayout;
-
- # Define a user account. Don't forget to set a password with ‘passwd’.
- users.users.${cfg.userName} = {
- isNormalUser = true;
- description = cfg.lib.capitalize cfg.userName;
- extraGroups = [
- "networkmanager"
- "wheel"
- ];
- packages = with pkgs; [ ];
- shell = pkgs.zsh;
- };
- programs.zsh.enable = true;
- programs.direnv.enable = true;
-
- # Enable experimental features
- nix.settings.experimental-features = [
- "nix-command"
- "flakes"
- ];
-
- nixpkgs.config.allowUnfree = true;
-
- # List packages installed in system profile. To search, run:
- # $ nix search wget
- environment.systemPackages = with pkgs; [
- _7zz
- git
- sops
- vim
- bash
- lshw
- wget
- curl
- tmux
- samba
- ssh-to-age
- fastfetch
- nil
- gnumake
- gcc
- foot.terminfo
- smartmontools
- usbutils
- inputs.nixfmt-git.packages.${pkgs.system}.default
- ];
-
- fonts = {
- fontDir.enable = true;
- packages =
- with pkgs;
- [
- # 25.05 / unstable
- nerd-fonts.comic-shanns-mono
- nerd-fonts.ubuntu
- liberation_ttf
- meslo-lgs-nf
- dejavu_fonts
- ]
- ++ (lib.optional cfg.text.comicCode.enable cfg.text.comicCode.package);
- fontconfig.defaultFonts = {
- monospace = (lib.optional cfg.text.comicCode.enable cfg.text.comicCode.name) ++ [
- "ComicShannsMono Nerd Font"
- ];
- };
- };
-
- # This value determines the NixOS release from which the default
- # settings for stateful data, like file locations and database versions
- # on your system were taken. It‘s perfectly fine and recommended to leave
- # this value at the release version of the first install of this system.
- # Before changing this value read the documentation for this option
- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
- system.stateVersion = cfg.stateVer;
-}
diff --git a/config/headless/core/homeManager.nix b/config/headless/core/homeManager.nix
deleted file mode 100644
index b643156..0000000
--- a/config/headless/core/homeManager.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-{
-
- home-manager = {
- useGlobalPkgs = true;
- backupFileExtension = "backup";
- };
-
- home-manager.users.${config.sidonia.userName} = {
-
- home = {
- username = config.sidonia.userName;
- homeDirectory = "/home/${config.sidonia.userName}";
- stateVersion = config.sidonia.stateVer;
- };
-
- catppuccin = {
- enable = true;
- accent = config.sidonia.style.catppuccin.accent;
- flavor = config.sidonia.style.catppuccin.flavor;
- };
- };
-}
diff --git a/config/headless/core/neovim.nix b/config/headless/core/neovim.nix
deleted file mode 100644
index 82b6063..0000000
--- a/config/headless/core/neovim.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-{
- home-manager.users.${config.sidonia.userName} = {
- catppuccin.nvim.enable = true;
- programs.neovim = {
- enable = true;
- defaultEditor = true;
- };
- };
-}
diff --git a/config/headless/core/zsh.nix b/config/headless/core/zsh.nix
deleted file mode 100644
index 212a95f..0000000
--- a/config/headless/core/zsh.nix
+++ /dev/null
@@ -1,110 +0,0 @@
-{
- inputs,
- config,
- pkgs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- theme = cfg.style.catppuccin;
-in
-{
- home-manager.users.${config.sidonia.userName} = {
- programs.zsh.enable = true;
- programs.zoxide.enable = true;
- programs.oh-my-posh.enable = true;
-
- catppuccin.bat.enable = true;
- programs.bat = {
- enable = true;
- config = {
- style = "plain";
- paging = "never";
- };
- };
-
- catppuccin.zsh-syntax-highlighting.enable = true;
- programs.zsh.syntaxHighlighting = {
- enable = true;
- highlighters = [
- "main"
- "brackets"
- ];
- };
-
- programs.oh-my-posh.settings =
- let
- palette = lib.mapAttrs (n: v: "#${v.hex}") theme.color;
- in
- with palette;
- {
- # builtins.toJSON
- "$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json";
- properties = {
- upgrade_notice = false;
- auto_upgrade = false;
- };
- upgrade = {
- notice = false;
- auto = false;
- };
- inherit palette;
- blocks = [
- {
- type = "prompt";
- alignment = "left";
- segments = [
- {
- foreground = accent;
- style = "plain";
- template = "{{ .UserName }}@{{ .HostName }} ";
- type = "session";
- }
- {
- foreground = pink;
- properties = {
- folder_icon = " ";
- home_icon = "~";
- style = "agnoster_short";
- max_depth = 4;
- };
- style = "plain";
- template = "{{ .Path }} ";
- type = "path";
- }
- {
- foreground = lavender;
- properties = {
- branch_icon = " ";
- cherry_pick_icon = " ";
- commit_icon = " ";
- fetch_status = false;
- fetch_upstream_icon = false;
- merge_icon = " ";
- no_commits_icon = " ";
- rebase_icon = " ";
- revert_icon = " ";
- tag_icon = " ";
- };
- template = "{{ .HEAD }} ";
- style = "plain";
- type = "git";
- }
- {
- style = "plain";
- foreground = accent;
- template = "";
- type = "text";
- }
- ];
- }
- ];
- final_space = true;
- version = 2;
- accent_color = accent;
- terminal_background = base;
- enable_cursor_positioning = true;
- };
- };
-}
diff --git a/config/headless/optional/audio.nix b/config/headless/optional/audio.nix
deleted file mode 100644
index 1ad4f12..0000000
--- a/config/headless/optional/audio.nix
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- config,
- pkgs,
- inputs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-{
- options.sidonia.services.audio.enable =
- with lib;
- mkOption {
- type = types.bool;
- default = cfg.graphics.enable;
- };
- config = lib.mkIf (cfg.services.audio.enable) {
- # https://cmm.github.io/soapbox/the-year-of-linux-on-the-desktop.html
- services = {
- # expose important timers etc. to "audio"
- udev.extraRules = ''
- DEVPATH=="/devices/virtual/misc/cpu_dma_latency", OWNER="root", GROUP="audio", MODE="0660"
- DEVPATH=="/devices/virtual/misc/hpet", OWNER="root", GROUP="audio", MODE="0660"
- '';
- pulseaudio.enable = false; # using pipewire instead
- pipewire = {
- enable = true;
- audio.enable = true;
- alsa = {
- enable = true;
- support32Bit = true;
- };
- pulse.enable = true;
- # explicitly set Pipewire RT params (may not be necessary)
- extraConfig.pipewire."99-rtparams" = {
- "context.modules" = [
- {
- name = "libpipewire-module-rt";
- args = {
- "nice.level" = -11;
- "rt.prio" = 19;
- };
- }
- ];
- };
- };
- };
-
- # Audio stutter prevention
- boot.kernelParams = [ "threadirqs" ];
- security.rtkit.enable = true;
-
- # allow members of "audio" to set RT priorities up to 90
- security.pam.loginLimits = [
- {
- domain = "@audio";
- type = "-";
- item = "rtprio";
- value = "90";
- }
- ];
-
- # increase output headroom. this may make latency worse (not sure how
- # noticeably) -- so if you game you may want to first try doing
- # without it
- environment.etc."wireplumber/main.lua.d/99-alsa-config.lua".text = ''
- -- prepend, otherwise the change-nothing stock config will match first:
- table.insert(alsa_monitor.rules, 1, {
- matches = {
- {
- -- Matches all sinks.
- { "node.name", "matches", "alsa_output.*" },
- },
- },
- apply_properties = {
- ["api.alsa.headroom"] = 1024,
- },
- })
- '';
-
- users.users.${cfg.userName}.extraGroups = [
- "audio"
- "rtkit"
- ];
- };
-}
diff --git a/config/headless/optional/distributedBuilds.nix b/config/headless/optional/distributedBuilds.nix
deleted file mode 100644
index 386de52..0000000
--- a/config/headless/optional/distributedBuilds.nix
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- config,
- pkgs,
- lib,
- otherHosts,
- ...
-}:
-let
- cfg = config.sidonia;
- forEachOtherHost = f: builtins.map f otherHosts;
-in
-{
- options.sidonia.services.distributedBuilds = with lib; {
- host = {
- enable = mkEnableOption "Enable becoming a distributed build host";
- user = mkOption {
- type = types.str;
- default = "builder";
- };
- signing = {
- pubKey = mkOption {
- description = "Public key for store binary cache signing";
- type = types.str;
- };
- privKeyPath = mkOption {
- description = "Path to private cache signing key";
- type = types.path;
- };
- };
- ssh.pubKey = mkOption {
- description = "known_hosts public key";
- type = types.str;
- };
- hostNames = mkOption {
- description = "Hostnames or ip addresses of the build host";
- type = types.listOf types.str;
- };
- };
- client = {
- enable = mkEnableOption "Enable taking advantage of distributed builds";
- ssh = {
- pubKey = mkOption {
- type = types.str;
- default = cfg.ssh.pubKey;
- };
- privKeyPath = mkOption {
- type = types.path;
- default = cfg.ssh.privKeyPath;
- };
- };
- };
- };
-
- config =
- let
- host = cfg.services.distributedBuilds.host;
- client = cfg.services.distributedBuilds.client;
- in
- lib.mkMerge [
- (lib.mkIf client.enable (
- lib.mkMerge (
- (forEachOtherHost (
- remote:
- let
- remoteHost = remote.config.sidonia.services.distributedBuilds.host;
- builderName = "${remoteHost.user}_at_${remote.config.sidonia.hostName}";
- in
- lib.mkIf remoteHost.enable {
- programs.ssh = {
- knownHosts = {
- ${builderName} = {
- extraHostNames = remoteHost.hostNames;
- publicKey = remoteHost.ssh.pubKey;
- };
- };
- extraConfig = ''
- Host ${builderName}
- User ${remoteHost.user}
- Hostname ${builtins.head remoteHost.hostNames}
- IdentitiesOnly yes
- IdentityFile ${client.ssh.privKeyPath}
- '';
- };
- nix = {
- settings = {
- trusted-public-keys = [ remoteHost.signing.pubKey ];
- substituters = [ "ssh-ng://${builderName}" ];
- };
- buildMachines = [
- {
- hostName = builtins.head remoteHost.hostNames;
- sshUser = remoteHost.user;
- sshKey = client.ssh.privKeyPath;
- #publicHostKey = remoteHost.ssh.pubKey; # don't use this value as it wants base64, fall back to known_hosts instead
- system = "x86_64-linux";
- protocol = "ssh-ng";
- maxJobs = 1;
- speedFactor = 2;
- supportedFeatures = [
- "nixos-test"
- "benchmark"
- "big-parallel"
- "kvm"
- ];
- }
- ];
- };
- }
- ))
- ++ [
- {
- nix.distributedBuilds = true;
- }
- ]
- )
- ))
- (lib.mkIf host.enable (
- lib.mkMerge (
- (forEachOtherHost (
- remote:
- let
- remoteClient = remote.config.sidonia.services.distributedBuilds.client;
- in
- lib.mkIf remoteClient.enable {
- users.users.${host.user}.openssh.authorizedKeys.keys = [ remoteClient.ssh.pubKey ];
- }
- ))
- ++ [
- {
- users.users.${host.user}.isNormalUser = true;
- services.openssh.settings.AllowUsers = [ host.user ];
- nix.settings.secret-key-files = host.signing.privKeyPath;
- nix.settings.trusted-users = [ host.user ];
- }
- ]
- )
- ))
- ];
-}
diff --git a/config/headless/optional/kmscon.nix b/config/headless/optional/kmscon.nix
deleted file mode 100644
index 4363bd2..0000000
--- a/config/headless/optional/kmscon.nix
+++ /dev/null
@@ -1,169 +0,0 @@
-# tty with modern font rendering
-# https://github.com/Aetf/kmscon
-{
- config,
- pkgs,
- inputs,
- lib,
- ...
-}:
-let
- cfg = config.sidonia;
- theme = cfg.style.catppuccin;
-in
-{
- options.sidonia.services.kmscon.enable =
- lib.mkEnableOption "Enable kmscon as a richer tty replacement";
- config =
- let
- configDir = pkgs.writeTextFile {
- name = "kmscon-config";
- destination = "/kmscon.conf";
- text =
- let
- rgb = lib.mapAttrs (n: v: v.rgb) theme.color;
- in
- with rgb;
- ''
- xkb-layout=${cfg.input.keyLayout}
-
- font-size=14
-
- palette=custom
- palette-foreground=${text}
- palette-background=${base}
-
- palette-black=${surface1}
- palette-red=${red}
- palette-green=${green}
- palette-yellow=${peach}
- palette-blue=${blue}
- palette-magenta=${pink}
- palette-cyan=${lavender}
- palette-light-grey=${subtext1}
-
- palette-dark-grey=${surface2}
- palette-light-red=${maroon}
- palette-light-green=${teal}
- palette-light-yellow=${yellow}
- palette-light-blue=${sky}
- palette-light-magenta=${flamingo}
- palette-light-cyan=${sapphire}
- palette-white=${text}
-
- ${lib.optionalString config.hardware.graphics.enable ''
- drm
- hwaccel
- ''}
- ${lib.optionalString config.fonts.fontconfig.enable ''
- font-name=${lib.strings.concatStringsSep ", " config.fonts.fontconfig.defaultFonts.monospace}
- ''}
- '';
- };
- in
- lib.mkIf cfg.services.kmscon.enable {
- # ensure services.kmscon does not screw with kmsconvt@.service
- #disabledModules = ["services/ttys/kmscon.nix"];
- services.kmscon.enable = lib.mkForce false;
-
- # add all systemd overrides from services/ttys/kmscon.nix aside from ExecStart as we have it patched in the package overlay
- systemd = {
- packages = [ pkgs.kmscon ];
- services = {
- systemd-vconsole-setup.enable = false;
- reload-systemd-vconsole-setup.enable = false;
- "kmsconvt@" = {
- after = [
- "systemd-logind.service"
- "systemd-vconsole-setup.service"
- ];
- requires = [ "systemd-logind.service" ];
- restartIfChanged = false;
- aliases = [ "autovt@.service" ];
- };
- };
- suppressedSystemUnits = [ "autovt@.service" ];
- };
-
- nixpkgs.overlays = [
- (final: prev: {
- kmscon = (
- prev.kmscon.overrideAttrs {
- src = inputs.kmscon;
- buildInputs = with pkgs; [
- util-linux
- check
- libGLU
- libGL
- libdrm
- libgbm
- (libtsm.overrideAttrs { src = inputs.libtsm; }) # https://github.com/Aetf/kmscon/issues/64
- libxkbcommon
- pango
- pixman
- systemd
- mesa
- ];
-
- env.NIX_CFLAGS_COMPILE =
- "-O" # _FORTIFY_SOURCE requires compiling with optimization (-O)
- # https://github.com/Aetf/kmscon/issues/49
- + " -Wno-error=maybe-uninitialized"
- # https://github.com/Aetf/kmscon/issues/64
- + " -Wno-error=implicit-function-declaration";
-
- patches = [
- # Stop meson from writing systemd units to ${pkgs.systemd}/systemd/system, they should be written to ${pkgs.kmscon}/systemd/system
- (pkgs.writeText "meson.build.patch" ''
- diff --git a/meson.build b/meson.build
- index 964b44b..fc043c7 100644
- --- a/meson.build
- +++ b/meson.build
- @@ -39,7 +39,7 @@ mandir = get_option('mandir')
- moduledir = get_option('libdir') / meson.project_name()
-
- systemd_deps = dependency('systemd', required: false)
- -systemdsystemunitdir = systemd_deps.get_variable('systemdsystemunitdir', default_value: get_option('libdir') / 'systemd/system')
- +systemdsystemunitdir = get_option('libdir') / 'systemd/system'
-
- #
- # Required dependencies
- '')
- # Fix agetty binary paths and link the configuration directory
- (pkgs.writeText "kmscon.service.in.patch" ''
- diff --git a/docs/kmscon.service.in b/docs/kmscon.service.in
- index ad5600d..664bbfb 100644
- --- a/docs/kmscon.service.in
- +++ b/docs/kmscon.service.in
- @@ -6,7 +6,7 @@ After=systemd-user-sessions.service
- After=rc-local.service
-
- [Service]
- -ExecStart=@bindir@/kmscon --login -- /sbin/agetty -o '-p -- \\u' --noclear -- -
- +ExecStart=@bindir@/kmscon --configdir ${configDir} --login -- ${pkgs.util-linux}/bin/agetty -o '-p -- \\u' --noclear -- -
-
- [Install]
- WantedBy=multi-user.target
- '')
- (pkgs.writeText "kmsconvt@.service.in.patch" ''
- diff --git a/docs/kmsconvt@.service.in b/docs/kmsconvt@.service.in
- index a496e26..18a1f93 100644
- --- a/docs/kmsconvt@.service.in
- +++ b/docs/kmsconvt@.service.in
- @@ -38,7 +38,7 @@ IgnoreOnIsolate=yes
- ConditionPathExists=/dev/tty0
-
- [Service]
- -ExecStart=@bindir@/kmscon --vt=%I --seats=seat0 --no-switchvt --login -- /sbin/agetty -o '-p -- \\u' --noclear -- -
- +ExecStart=@bindir@/kmscon --vt=%I --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.util-linux}/bin/agetty -o '-p -- \\u' --noclear -- -
- UtmpIdentifier=%I
- TTYPath=/dev/%I
- TTYReset=yes
- '')
- ];
- }
- );
- })
- ];
- };
-}
diff --git a/flake.lock b/flake.lock
index f2916d8..8ebfcd5 100644
--- a/flake.lock
+++ b/flake.lock
@@ -22,6 +22,29 @@
"type": "github"
}
},
+ "aagl_2": {
+ "inputs": {
+ "flake-compat": "flake-compat_3",
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1747867156,
+ "narHash": "sha256-JmJ4nLbrT0Lx+bK6ALVgU3H/W7C58fGDBwSP47sMQN0=",
+ "owner": "ezKEa",
+ "repo": "aagl-gtk-on-nix",
+ "rev": "7bfabf36395a50f775dc26f63089e4d5df28c8f2",
+ "type": "github"
+ },
+ "original": {
+ "owner": "ezKEa",
+ "ref": "release-25.05",
+ "repo": "aagl-gtk-on-nix",
+ "type": "github"
+ }
+ },
"base16-schemes": {
"flake": false,
"locked": {
@@ -38,6 +61,22 @@
"type": "github"
}
},
+ "base16-schemes_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1696158499,
+ "narHash": "sha256-5yIHgDTPjoX/3oDEfLSQ0eJZdFL1SaCfb9d6M0RmOTM=",
+ "owner": "tinted-theming",
+ "repo": "base16-schemes",
+ "rev": "a9112eaae86d9dd8ee6bb9445b664fba2f94037a",
+ "type": "github"
+ },
+ "original": {
+ "owner": "tinted-theming",
+ "repo": "base16-schemes",
+ "type": "github"
+ }
+ },
"catppuccin": {
"inputs": {
"nixpkgs": "nixpkgs"
@@ -56,6 +95,24 @@
"type": "github"
}
},
+ "catppuccin_2": {
+ "inputs": {
+ "nixpkgs": "nixpkgs_4"
+ },
+ "locked": {
+ "lastModified": 1749223974,
+ "narHash": "sha256-/GAQYRW1duU81KG//2wI9ax8EkHVG/e1UOD97NdwLOY=",
+ "owner": "catppuccin",
+ "repo": "nix",
+ "rev": "3a42cd79c647360ee8742659e42aeec0947dd3b4",
+ "type": "github"
+ },
+ "original": {
+ "owner": "catppuccin",
+ "repo": "nix",
+ "type": "github"
+ }
+ },
"flake-compat": {
"flake": false,
"locked": {
@@ -88,6 +145,38 @@
"type": "github"
}
},
+ "flake-compat_3": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1733328505,
+ "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
+ "type": "github"
+ },
+ "original": {
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "type": "github"
+ }
+ },
+ "flake-compat_4": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1747046372,
+ "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
+ "type": "github"
+ },
+ "original": {
+ "owner": "edolstra",
+ "repo": "flake-compat",
+ "type": "github"
+ }
+ },
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
@@ -106,6 +195,24 @@
"type": "github"
}
},
+ "flake-parts_2": {
+ "inputs": {
+ "nixpkgs-lib": "nixpkgs-lib_3"
+ },
+ "locked": {
+ "lastModified": 1735774679,
+ "narHash": "sha256-soePLBazJk0qQdDVhdbM98vYdssfs3WFedcq+raipRI=",
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "rev": "f2f7418ce0ab4a5309a4596161d154cfc877af66",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "type": "github"
+ }
+ },
"flake-utils": {
"inputs": {
"systems": "systems"
@@ -124,6 +231,23 @@
"type": "github"
}
},
+ "flake-utils_10": {
+ "inputs": {
+ "systems": "systems_10"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "id": "flake-utils",
+ "type": "indirect"
+ }
+ },
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
@@ -195,6 +319,78 @@
"type": "indirect"
}
},
+ "flake-utils_6": {
+ "inputs": {
+ "systems": "systems_6"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "flake-utils_7": {
+ "inputs": {
+ "systems": "systems_7"
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "flake-utils_8": {
+ "inputs": {
+ "systems": "systems_8"
+ },
+ "locked": {
+ "lastModified": 1710146030,
+ "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "flake-utils_9": {
+ "inputs": {
+ "systems": "systems_9"
+ },
+ "locked": {
+ "lastModified": 1710146030,
+ "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
"home-manager": {
"inputs": {
"nixpkgs": [
@@ -216,6 +412,28 @@
"type": "github"
}
},
+ "home-manager_2": {
+ "inputs": {
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749154018,
+ "narHash": "sha256-gjN3j7joRvT3a8Zgcylnd4NFsnXeDBumqiu4HmY1RIg=",
+ "owner": "nix-community",
+ "repo": "home-manager",
+ "rev": "7aae0ee71a17b19708b93b3ed448a1a0952bf111",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "ref": "release-25.05",
+ "repo": "home-manager",
+ "type": "github"
+ }
+ },
"hyprshell": {
"inputs": {
"nixpkgs": [
@@ -237,6 +455,28 @@
"type": "github"
}
},
+ "hyprshell_2": {
+ "inputs": {
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749666801,
+ "narHash": "sha256-QuL7kTow5cpZYb89IbgqD644m2Bs0vv3vWe3Ur0OKqU=",
+ "owner": "h3rmt",
+ "repo": "hyprswitch",
+ "rev": "986af05ac8f7ecfbcb6dfe527214cdfb7f85889b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "h3rmt",
+ "ref": "hyprshell-release",
+ "repo": "hyprswitch",
+ "type": "github"
+ }
+ },
"hyprswitch": {
"inputs": {
"flake-parts": "flake-parts",
@@ -260,6 +500,30 @@
"type": "github"
}
},
+ "hyprswitch_2": {
+ "inputs": {
+ "flake-parts": "flake-parts_2",
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ],
+ "rust-overlay": "rust-overlay_2"
+ },
+ "locked": {
+ "lastModified": 1748708498,
+ "narHash": "sha256-XvyyZuS78ETJl4QZm0kqVMRMAEmoZbp2UHBNLAl0pXQ=",
+ "owner": "h3rmt",
+ "repo": "hyprswitch",
+ "rev": "063ff09b74cdec2ede3a1567433064fd4a61b7d1",
+ "type": "github"
+ },
+ "original": {
+ "owner": "h3rmt",
+ "ref": "old-release-hyprswitch",
+ "repo": "hyprswitch",
+ "type": "github"
+ }
+ },
"kmscon": {
"flake": false,
"locked": {
@@ -277,6 +541,23 @@
"type": "github"
}
},
+ "kmscon_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1749716602,
+ "narHash": "sha256-174sezANyGd3EJn0x0piMN91wLfx8qDP3Tj1NkhNxbo=",
+ "owner": "Aetf",
+ "repo": "kmscon",
+ "rev": "71af3ca99521e9568027ee0f01f76d615c08f728",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Aetf",
+ "ref": "develop",
+ "repo": "kmscon",
+ "type": "github"
+ }
+ },
"lancache": {
"inputs": {
"cache-domains": [
@@ -319,13 +600,45 @@
"type": "github"
}
},
- "lancache-monolithic": {
+ "lancache-domains_2": {
"flake": false,
"locked": {
- "lastModified": 1740264490,
- "narHash": "sha256-GuPx6Qcdi1+YOK4al7fVTKoY1J83sq2o3Yno1Y7JEMM=",
- "owner": "lancachenet",
- "repo": "monolithic",
+ "lastModified": 1746602289,
+ "narHash": "sha256-GsUQYB+MpLPBKTZ+cKjjUIiag+KmZgzTe5nC+UIinKE=",
+ "owner": "uklans",
+ "repo": "cache-domains",
+ "rev": "67535f7b9f32ca0bdbb6210c29f16493c9112a7b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "uklans",
+ "repo": "cache-domains",
+ "type": "github"
+ }
+ },
+ "lancache-monolithic": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1740264490,
+ "narHash": "sha256-GuPx6Qcdi1+YOK4al7fVTKoY1J83sq2o3Yno1Y7JEMM=",
+ "owner": "lancachenet",
+ "repo": "monolithic",
+ "rev": "f817fe99d6767fd2ed061c10356b48ecfb8e4bfc",
+ "type": "github"
+ },
+ "original": {
+ "owner": "lancachenet",
+ "repo": "monolithic",
+ "type": "github"
+ }
+ },
+ "lancache-monolithic_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1740264490,
+ "narHash": "sha256-GuPx6Qcdi1+YOK4al7fVTKoY1J83sq2o3Yno1Y7JEMM=",
+ "owner": "lancachenet",
+ "repo": "monolithic",
"rev": "f817fe99d6767fd2ed061c10356b48ecfb8e4bfc",
"type": "github"
},
@@ -335,6 +648,35 @@
"type": "github"
}
},
+ "lancache_2": {
+ "inputs": {
+ "cache-domains": [
+ "sidonia",
+ "lancache-domains"
+ ],
+ "monolithic": [
+ "sidonia",
+ "lancache-monolithic"
+ ],
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1748633413,
+ "narHash": "sha256-L6YxtHRHng07rWYtKQOoq2MeUkasdxmwn40o4wzu4tA=",
+ "owner": "Mop-u",
+ "repo": "nix-lancache",
+ "rev": "8c2e08200b16cb0b7a5fefffc1adad80f70617c0",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Mop-u",
+ "repo": "nix-lancache",
+ "type": "github"
+ }
+ },
"libtsm": {
"flake": false,
"locked": {
@@ -352,6 +694,23 @@
"type": "github"
}
},
+ "libtsm_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1703395724,
+ "narHash": "sha256-Rug3OWSbbiIivItULPNNptClIZ/PrXdQeUypAAxrUY8=",
+ "owner": "Aetf",
+ "repo": "libtsm",
+ "rev": "69922bde02c7af83b4d48a414cc6036af7388626",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Aetf",
+ "ref": "develop",
+ "repo": "libtsm",
+ "type": "github"
+ }
+ },
"magnetic-catppuccin-gtk": {
"flake": false,
"locked": {
@@ -368,6 +727,22 @@
"type": "github"
}
},
+ "magnetic-catppuccin-gtk_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1745537208,
+ "narHash": "sha256-7F4FrhM+kBFPeLp2mjmYkoDiF9iKDUkC27LUBuFyz7g=",
+ "owner": "Fausto-Korpsvart",
+ "repo": "Catppuccin-GTK-Theme",
+ "rev": "c961826d027ed93fae12a9a309616e36d140e6b9",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Fausto-Korpsvart",
+ "repo": "Catppuccin-GTK-Theme",
+ "type": "github"
+ }
+ },
"nix-colors": {
"inputs": {
"base16-schemes": "base16-schemes",
@@ -387,6 +762,25 @@
"type": "github"
}
},
+ "nix-colors_2": {
+ "inputs": {
+ "base16-schemes": "base16-schemes_2",
+ "nixpkgs-lib": "nixpkgs-lib_4"
+ },
+ "locked": {
+ "lastModified": 1707825078,
+ "narHash": "sha256-hTfge2J2W+42SZ7VHXkf4kjU+qzFqPeC9k66jAUBMHk=",
+ "owner": "misterio77",
+ "repo": "nix-colors",
+ "rev": "b01f024090d2c4fc3152cd0cf12027a7b8453ba1",
+ "type": "github"
+ },
+ "original": {
+ "owner": "misterio77",
+ "repo": "nix-colors",
+ "type": "github"
+ }
+ },
"nix-minecraft": {
"inputs": {
"flake-compat": "flake-compat_2",
@@ -396,11 +790,34 @@
]
},
"locked": {
- "lastModified": 1749693896,
- "narHash": "sha256-uQETCN7a1oB4moN78r9mnVp2nSu4D0pRBidpwLTaJK0=",
+ "lastModified": 1749780394,
+ "narHash": "sha256-KZypZIU6L2EJRej+nBm5IuW6Q8nfccvylXWMkfhHTCA=",
"owner": "Infinidoge",
"repo": "nix-minecraft",
- "rev": "4ce3cdd54fb3dab07225b9cc49a429acc0d20338",
+ "rev": "4f330afee93356ceedf61c772f9a296388db76aa",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Infinidoge",
+ "repo": "nix-minecraft",
+ "type": "github"
+ }
+ },
+ "nix-minecraft_2": {
+ "inputs": {
+ "flake-compat": "flake-compat_4",
+ "flake-utils": "flake-utils_6",
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749780394,
+ "narHash": "sha256-KZypZIU6L2EJRej+nBm5IuW6Q8nfccvylXWMkfhHTCA=",
+ "owner": "Infinidoge",
+ "repo": "nix-minecraft",
+ "rev": "4f330afee93356ceedf61c772f9a296388db76aa",
"type": "github"
},
"original": {
@@ -415,11 +832,30 @@
"nixpkgs": "nixpkgs_2"
},
"locked": {
- "lastModified": 1749693852,
- "narHash": "sha256-ERtalZOvXvhb/ZWrjOGgUVkULUZ197n//cnJz436G6M=",
+ "lastModified": 1749780284,
+ "narHash": "sha256-at8sCy3IXlgo1zV0j0Wowhn/dHXqBkb2huSdJ2Jt+mo=",
+ "owner": "nix-community",
+ "repo": "nix-vscode-extensions",
+ "rev": "6ec5e3e4a11887ae47d55ece1b83a0ed8082cddf",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "nix-vscode-extensions",
+ "type": "github"
+ }
+ },
+ "nix-vscode-extensions_2": {
+ "inputs": {
+ "flake-utils": "flake-utils_7",
+ "nixpkgs": "nixpkgs_5"
+ },
+ "locked": {
+ "lastModified": 1749780284,
+ "narHash": "sha256-at8sCy3IXlgo1zV0j0Wowhn/dHXqBkb2huSdJ2Jt+mo=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
- "rev": "8219bf5f17f590d277ec7054b657b1370c7b7fc0",
+ "rev": "6ec5e3e4a11887ae47d55ece1b83a0ed8082cddf",
"type": "github"
},
"original": {
@@ -446,6 +882,24 @@
"type": "github"
}
},
+ "nixfmt-git_2": {
+ "inputs": {
+ "flake-utils": "flake-utils_8"
+ },
+ "locked": {
+ "lastModified": 1748935505,
+ "narHash": "sha256-bm4garGR/AATT59Ta95x0VZxc1pJ6/vm9qlGjgY2HAA=",
+ "owner": "NixOS",
+ "repo": "nixfmt",
+ "rev": "af5529a9e56b3429408c9d281518527d3a63cf33",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "repo": "nixfmt",
+ "type": "github"
+ }
+ },
"nixpkgs": {
"locked": {
"lastModified": 1744463964,
@@ -489,6 +943,33 @@
"type": "github"
}
},
+ "nixpkgs-lib_3": {
+ "locked": {
+ "lastModified": 1735774519,
+ "narHash": "sha256-CewEm1o2eVAnoqb6Ml+Qi9Gg/EfNAxbRx1lANGVyoLI=",
+ "type": "tarball",
+ "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz"
+ },
+ "original": {
+ "type": "tarball",
+ "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz"
+ }
+ },
+ "nixpkgs-lib_4": {
+ "locked": {
+ "lastModified": 1697935651,
+ "narHash": "sha256-qOfWjQ2JQSQL15KLh6D7xQhx0qgZlYZTYlcEiRuAMMw=",
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "rev": "e1e11fdbb01113d85c7f41cada9d2847660e3902",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "type": "github"
+ }
+ },
"nixpkgs_2": {
"locked": {
"lastModified": 1744868846,
@@ -507,11 +988,11 @@
},
"nixpkgs_3": {
"locked": {
- "lastModified": 1749494155,
- "narHash": "sha256-FG4DEYBpROupu758beabUk9lhrblSf5hnv84v1TLqMc=",
+ "lastModified": 1749727998,
+ "narHash": "sha256-mHv/yeUbmL91/TvV95p+mBVahm9mdQMJoqaTVTALaFw=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "88331c17ba434359491e8d5889cce872464052c2",
+ "rev": "fd487183437963a59ba763c0cc4f27e3447dd6dd",
"type": "github"
},
"original": {
@@ -521,6 +1002,38 @@
"type": "github"
}
},
+ "nixpkgs_4": {
+ "locked": {
+ "lastModified": 1744463964,
+ "narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_5": {
+ "locked": {
+ "lastModified": 1744868846,
+ "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c",
+ "type": "github"
+ }
+ },
"nonfree-fonts": {
"inputs": {
"flake-utils": "flake-utils_4",
@@ -542,6 +1055,28 @@
"type": "github"
}
},
+ "nonfree-fonts_2": {
+ "inputs": {
+ "flake-utils": "flake-utils_9",
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1724788511,
+ "narHash": "sha256-oLJYTG+6EZBiq+vmNOyLVZoQ/PephmS7LE+evmWmQPc=",
+ "owner": "Mop-u",
+ "repo": "nonfree-fonts",
+ "rev": "0072fb5f06dd92c52c56a36b408ff709ba1c291d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Mop-u",
+ "repo": "nonfree-fonts",
+ "type": "github"
+ }
+ },
"quartus": {
"inputs": {
"flake-utils": "flake-utils_5",
@@ -563,6 +1098,28 @@
"type": "github"
}
},
+ "quartus_2": {
+ "inputs": {
+ "flake-utils": "flake-utils_10",
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1746100507,
+ "narHash": "sha256-qandQuP9MNbuXOWnirEdt/lq/7ZnZlJUvUv71kiHtqk=",
+ "owner": "Mop-u",
+ "repo": "nix-quartus",
+ "rev": "c9a3f25c38e8d4a42ed28101c403f8a1a1f8c800",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Mop-u",
+ "repo": "nix-quartus",
+ "type": "github"
+ }
+ },
"root": {
"inputs": {
"aagl": "aagl",
@@ -583,13 +1140,14 @@
"nixpkgs": "nixpkgs_3",
"nonfree-fonts": "nonfree-fonts",
"quartus": "quartus",
- "sops-nix": "sops-nix",
- "stextCatppuccin": "stextCatppuccin",
- "stextHooks": "stextHooks",
- "stextLSP": "stextLSP",
- "stextNix": "stextNix",
- "stextPackageControl": "stextPackageControl",
- "stextSystemVerilog": "stextSystemVerilog",
+ "sidonia": "sidonia",
+ "sops-nix": "sops-nix_2",
+ "stextCatppuccin": "stextCatppuccin_2",
+ "stextHooks": "stextHooks_2",
+ "stextLSP": "stextLSP_2",
+ "stextNix": "stextNix_2",
+ "stextPackageControl": "stextPackageControl_2",
+ "stextSystemVerilog": "stextSystemVerilog_2",
"unstable": "unstable"
}
},
@@ -614,7 +1172,97 @@
"type": "github"
}
},
+ "rust-overlay_2": {
+ "inputs": {
+ "nixpkgs": [
+ "sidonia",
+ "hyprswitch",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1735784864,
+ "narHash": "sha256-tIl5p3ueaPw7T5T1UXkLc8ISMk6Y8CI/D/rd0msf73I=",
+ "owner": "oxalica",
+ "repo": "rust-overlay",
+ "rev": "04d5f1836721461b256ec452883362c5edc5288e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "oxalica",
+ "repo": "rust-overlay",
+ "type": "github"
+ }
+ },
+ "sidonia": {
+ "inputs": {
+ "aagl": "aagl_2",
+ "catppuccin": "catppuccin_2",
+ "home-manager": "home-manager_2",
+ "hyprshell": "hyprshell_2",
+ "hyprswitch": "hyprswitch_2",
+ "kmscon": "kmscon_2",
+ "lancache": "lancache_2",
+ "lancache-domains": "lancache-domains_2",
+ "lancache-monolithic": "lancache-monolithic_2",
+ "libtsm": "libtsm_2",
+ "magnetic-catppuccin-gtk": "magnetic-catppuccin-gtk_2",
+ "nix-colors": "nix-colors_2",
+ "nix-minecraft": "nix-minecraft_2",
+ "nix-vscode-extensions": "nix-vscode-extensions_2",
+ "nixfmt-git": "nixfmt-git_2",
+ "nixpkgs": [
+ "nixpkgs"
+ ],
+ "nonfree-fonts": "nonfree-fonts_2",
+ "quartus": "quartus_2",
+ "sops-nix": "sops-nix",
+ "stextCatppuccin": "stextCatppuccin",
+ "stextHooks": "stextHooks",
+ "stextLSP": "stextLSP",
+ "stextNix": "stextNix",
+ "stextPackageControl": "stextPackageControl",
+ "stextSystemVerilog": "stextSystemVerilog",
+ "unstable": [
+ "unstable"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749816075,
+ "narHash": "sha256-1nO7gdIVA49m3PcpIQDYK08jAejieDUOl+X8/k99QMs=",
+ "owner": "Mop-u",
+ "repo": "sidonia",
+ "rev": "702265e0bb190a123c2413c590867de7cb2a7f29",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Mop-u",
+ "repo": "sidonia",
+ "type": "github"
+ }
+ },
"sops-nix": {
+ "inputs": {
+ "nixpkgs": [
+ "sidonia",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1749592509,
+ "narHash": "sha256-VunQzfZFA+Y6x3wYi2UE4DEQ8qKoAZZCnZPUlSoqC+A=",
+ "owner": "Mic92",
+ "repo": "sops-nix",
+ "rev": "50754dfaa0e24e313c626900d44ef431f3210138",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Mic92",
+ "repo": "sops-nix",
+ "type": "github"
+ }
+ },
+ "sops-nix_2": {
"inputs": {
"nixpkgs": [
"nixpkgs"
@@ -650,6 +1298,22 @@
"type": "github"
}
},
+ "stextCatppuccin_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1745279745,
+ "narHash": "sha256-IJkxrZwwZ3IgASJXqcMRBzkdOY87Ft/PUHtUoU4F/4g=",
+ "owner": "catppuccin",
+ "repo": "sublime-text",
+ "rev": "3cbaf58c39d1b1fddb8d7d816ecd71977e542b7d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "catppuccin",
+ "repo": "sublime-text",
+ "type": "github"
+ }
+ },
"stextHooks": {
"flake": false,
"locked": {
@@ -666,6 +1330,22 @@
"type": "github"
}
},
+ "stextHooks_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1441942539,
+ "narHash": "sha256-qPWK/IngqGM3H2NbYLVlEzgwZMDiJNyYJpeqWejEZBY=",
+ "owner": "twolfson",
+ "repo": "sublime-hooks",
+ "rev": "6117eb910eafe1a7d230fd1b889a4b2b88483b85",
+ "type": "github"
+ },
+ "original": {
+ "owner": "twolfson",
+ "repo": "sublime-hooks",
+ "type": "github"
+ }
+ },
"stextLSP": {
"flake": false,
"locked": {
@@ -682,6 +1362,22 @@
"type": "github"
}
},
+ "stextLSP_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1746104331,
+ "narHash": "sha256-LkqBDd5HxHkJOO0OIZxZC9Qw/Fv08LaIaW/pkRVG0QA=",
+ "owner": "sublimelsp",
+ "repo": "LSP",
+ "rev": "4a6dc060e01444412d172e404e99d31bfe1549cc",
+ "type": "github"
+ },
+ "original": {
+ "owner": "sublimelsp",
+ "repo": "LSP",
+ "type": "github"
+ }
+ },
"stextNix": {
"flake": false,
"locked": {
@@ -698,6 +1394,22 @@
"type": "github"
}
},
+ "stextNix_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1739909853,
+ "narHash": "sha256-gZFUFSiY2MxiEiiPDekiyYfQlY8+zUhXb0Y98xCpqrs=",
+ "owner": "wmertens",
+ "repo": "sublime-nix",
+ "rev": "48c497c709c66a2fb118c534a8de8e4e1c4c401d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "wmertens",
+ "repo": "sublime-nix",
+ "type": "github"
+ }
+ },
"stextPackageControl": {
"flake": false,
"locked": {
@@ -714,6 +1426,22 @@
"type": "github"
}
},
+ "stextPackageControl_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1749212433,
+ "narHash": "sha256-0f2ML1jwyzQHsJFc+r4+4WNqsfozyjtBZtKQXwkLel0=",
+ "owner": "wbond",
+ "repo": "package_control",
+ "rev": "6743158f608c51d3343b479a233980cac4754937",
+ "type": "github"
+ },
+ "original": {
+ "owner": "wbond",
+ "repo": "package_control",
+ "type": "github"
+ }
+ },
"stextSystemVerilog": {
"flake": false,
"locked": {
@@ -730,6 +1458,22 @@
"type": "github"
}
},
+ "stextSystemVerilog_2": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1599161250,
+ "narHash": "sha256-hME4OsuBZPPtZXlj/KcW0ctyXjZW31pc6BiPFEkm24A=",
+ "owner": "TheClams",
+ "repo": "SystemVerilog",
+ "rev": "7eca705e87f87b94478fe222fc91d54d488cc8e3",
+ "type": "github"
+ },
+ "original": {
+ "owner": "TheClams",
+ "repo": "SystemVerilog",
+ "type": "github"
+ }
+ },
"systems": {
"locked": {
"lastModified": 1681028828,
@@ -745,6 +1489,21 @@
"type": "github"
}
},
+ "systems_10": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ },
"systems_2": {
"locked": {
"lastModified": 1681028828,
@@ -805,6 +1564,66 @@
"type": "github"
}
},
+ "systems_6": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ },
+ "systems_7": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ },
+ "systems_8": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ },
+ "systems_9": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ },
"unstable": {
"locked": {
"lastModified": 1749285348,
diff --git a/flake.nix b/flake.nix
index 234dccc..ca0ffa3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -15,6 +15,12 @@
nixfmt-git.url = "github:NixOS/nixfmt";
nix-colors.url = "github:misterio77/nix-colors";
+ sidonia = {
+ url = "github:Mop-u/sidonia";
+ inputs.nixpkgs.follows = "nixpkgs";
+ inputs.unstable.follows = "unstable";
+ };
+
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
@@ -125,14 +131,16 @@
mkConfig =
hostName:
let
- otherHosts = lib.mapAttrsToList (n: v: { inherit (self.nixosConfigurations.${n}) config; }) (
- lib.filterAttrs (n: v: n != hostName) hosts
- );
+ otherHostNames = lib.filterAttrs (n: v: n != hostName) hosts;
+ otherHosts = lib.mapAttrsToList (n: v: {
+ inherit (self.nixosConfigurations.${n}) config;
+ }) otherHostNames;
in
(lib.nixosSystem {
specialArgs = { inherit inputs otherHosts; };
modules = [
- ((import ./module.nix) { inherit inputs hostName; })
+ #((import ./module.nix) { inherit inputs; })
+ inputs.sidonia.nixosModules.sidonia
(lib.path.append ./hosts hostName)
];
});
diff --git a/hosts/kaoru/default.nix b/hosts/kaoru/default.nix
index 44ef597..2ed0c66 100644
--- a/hosts/kaoru/default.nix
+++ b/hosts/kaoru/default.nix
@@ -11,6 +11,7 @@
./virtualbox.nix
./quartus.nix
];
+ networking.hostName = "kaoru";
sidonia = {
userName = "hazama";
stateVer = "23.11";
diff --git a/hosts/tsumugi/default.nix b/hosts/tsumugi/default.nix
index f32575b..33fd850 100644
--- a/hosts/tsumugi/default.nix
+++ b/hosts/tsumugi/default.nix
@@ -18,6 +18,7 @@
./reverseProxy.nix
./ups.nix
];
+ networking.hostName = "tsumugi";
sops.secrets."tsumugi/cacheKey.pem" = {};
sidonia = {
userName = "shiraui";
diff --git a/hosts/yure/default.nix b/hosts/yure/default.nix
index 155e384..76d19fd 100644
--- a/hosts/yure/default.nix
+++ b/hosts/yure/default.nix
@@ -9,6 +9,7 @@
imports = [
./hardware-configuration.nix
];
+ networking.hostName = "yure";
sidonia = {
userName = "shinatose";
stateVer = "24.05";
diff --git a/lib/catppuccin.nix b/lib/catppuccin.nix
deleted file mode 100644
index 7b07adb..0000000
--- a/lib/catppuccin.nix
+++ /dev/null
@@ -1,225 +0,0 @@
-{
- catppuccin = {
- latte = {
- rosewater.hex = "dc8a78";
- flamingo.hex = "dd7878";
- pink.hex = "ea76cb";
- mauve.hex = "8839ef";
- red.hex = "d20f39";
- maroon.hex = "e64553";
- peach.hex = "fe640b";
- yellow.hex = "df8e1d";
- green.hex = "40a02b";
- teal.hex = "179299";
- sky.hex = "04a5e5";
- sapphire.hex = "209fb5";
- blue.hex = "1e66f5";
- lavender.hex = "7287fd";
- text.hex = "4c4f69";
- subtext1.hex = "5c5f77";
- subtext0.hex = "6c6f85";
- overlay2.hex = "7c7f93";
- overlay1.hex = "8c8fa1";
- overlay0.hex = "9ca0b0";
- surface2.hex = "acb0be";
- surface1.hex = "bcc0cc";
- surface0.hex = "ccd0da";
- base.hex = "eff1f5";
- mantle.hex = "e6e9ef";
- crust.hex = "dce0e8";
-
- rosewater.rgb = "200, 138, 120";
- flamingo.rgb = "221, 120, 120";
- pink.rgb = "234, 118, 203";
- mauve.rgb = "136, 57, 239";
- red.rgb = "210, 15, 57";
- maroon.rgb = "230, 69, 83";
- peach.rgb = "254, 100, 11";
- yellow.rgb = "223, 142, 29";
- green.rgb = "64, 160, 43";
- teal.rgb = "23, 146, 153";
- sky.rgb = "4, 165, 229";
- sapphire.rgb = "32, 159, 181";
- blue.rgb = "20, 102, 245";
- lavender.rgb = "114, 135, 253";
- text.rgb = "76, 79, 105";
- subtext1.rgb = "92, 95, 119";
- subtext0.rgb = "108, 111, 133";
- overlay2.rgb = "124, 127, 147";
- overlay1.rgb = "140, 143, 161";
- overlay0.rgb = "156, 160, 176";
- surface2.rgb = "172, 176, 190";
- surface1.rgb = "188, 192, 204";
- surface0.rgb = "204, 208, 218";
- base.rgb = "239, 241, 245";
- mantle.rgb = "230, 233, 239";
- crust.rgb = "220, 224, 232";
- };
- frappe = {
- rosewater.hex = "f2d5cf";
- flamingo.hex = "eebebe";
- pink.hex = "f4b8e4";
- mauve.hex = "ca9ee6";
- red.hex = "e78284";
- maroon.hex = "ea999c";
- peach.hex = "ef9f76";
- yellow.hex = "e5c890";
- green.hex = "a6d189";
- teal.hex = "81c8be";
- sky.hex = "99d1db";
- sapphire.hex = "85c1dc";
- blue.hex = "8caaee";
- lavender.hex = "babbf1";
- text.hex = "c6d0f5";
- subtext1.hex = "b5bfe2";
- subtext0.hex = "a5adce";
- overlay2.hex = "949cbb";
- overlay1.hex = "838ba7";
- overlay0.hex = "737994";
- surface2.hex = "626880";
- surface1.hex = "51576d";
- surface0.hex = "414559";
- base.hex = "303446";
- mantle.hex = "292c3c";
- crust.hex = "232634";
-
- rosewater.rgb = "242, 213, 207";
- flamingo.rgb = "238, 190, 190";
- pink.rgb = "244, 184, 228";
- mauve.rgb = "202, 158, 230";
- red.rgb = "231, 130, 132";
- maroon.rgb = "234, 153, 156";
- peach.rgb = "239, 159, 118";
- yellow.rgb = "229, 200, 144";
- green.rgb = "166, 209, 137";
- teal.rgb = "129, 200, 190";
- sky.rgb = "153, 209, 219";
- sapphire.rgb = "133, 193, 220";
- blue.rgb = "140, 170, 238";
- lavender.rgb = "186, 187, 241";
- text.rgb = "198, 208, 245";
- subtext1.rgb = "181, 191, 226";
- subtext0.rgb = "165, 173, 206";
- overlay2.rgb = "148, 156, 187";
- overlay1.rgb = "131, 139, 167";
- overlay0.rgb = "115, 121, 148";
- surface2.rgb = "98, 104, 128";
- surface1.rgb = "81, 87, 109";
- surface0.rgb = "65, 69, 89";
- base.rgb = "48, 52, 70";
- mantle.rgb = "41, 44, 60";
- crust.rgb = "35, 38, 52";
- };
- macchiato = {
- rosewater.hex = "f4dbd6";
- flamingo.hex = "f0c6c6";
- pink.hex = "f5bde6";
- mauve.hex = "c6a0f6";
- red.hex = "ed8796";
- maroon.hex = "ee99a0";
- peach.hex = "f5a97f";
- yellow.hex = "eed49f";
- green.hex = "a6da95";
- teal.hex = "8bd5ca";
- sky.hex = "91d7e3";
- sapphire.hex = "7dc4e4";
- blue.hex = "8aadf4";
- lavender.hex = "b7bdf8";
- text.hex = "cad3f5";
- subtext1.hex = "b8c0e0";
- subtext0.hex = "a5adcb";
- overlay2.hex = "939ab7";
- overlay1.hex = "8087a2";
- overlay0.hex = "6e738d";
- surface2.hex = "5b6078";
- surface1.hex = "494d64";
- surface0.hex = "363a4f";
- base.hex = "24273a";
- mantle.hex = "1e2030";
- crust.hex = "181926";
-
- rosewater.rgb = "244, 219, 214";
- flamingo.rgb = "240, 198, 198";
- pink.rgb = "245, 189, 230";
- mauve.rgb = "198, 160, 246";
- red.rgb = "237, 135, 150";
- maroon.rgb = "238, 153, 160";
- peach.rgb = "245, 169, 127";
- yellow.rgb = "238, 212, 159";
- green.rgb = "166, 218, 149";
- teal.rgb = "139, 213, 202";
- sky.rgb = "145, 215, 227";
- sapphire.rgb = "125, 196, 228";
- blue.rgb = "138, 173, 244";
- lavender.rgb = "183, 189, 248";
- text.rgb = "202, 211, 245";
- subtext1.rgb = "184, 192, 224";
- subtext0.rgb = "165, 173, 203";
- overlay2.rgb = "147, 154, 183";
- overlay1.rgb = "128, 135, 162";
- overlay0.rgb = "110, 115, 141";
- surface2.rgb = "91, 96, 120";
- surface1.rgb = "73, 77, 100";
- surface0.rgb = "54, 58, 79";
- base.rgb = "36, 39, 58";
- mantle.rgb = "30, 32, 48";
- crust.rgb = "24, 25, 38";
- };
- mocha = {
- rosewater.hex = "f5e0dc";
- flamingo.hex = "f2cdcd";
- pink.hex = "f5c2e7";
- mauve.hex = "cba6f7";
- red.hex = "f38ba8";
- maroon.hex = "eba0ac";
- peach.hex = "fab387";
- yellow.hex = "f9e2af";
- green.hex = "a6e3a1";
- teal.hex = "94e2d5";
- sky.hex = "89dceb";
- sapphire.hex = "74c7ec";
- blue.hex = "89b4fa";
- lavender.hex = "b4befe";
- text.hex = "cdd6f4";
- subtext1.hex = "bac2de";
- subtext0.hex = "a6adc8";
- overlay2.hex = "9399b2";
- overlay1.hex = "7f849c";
- overlay0.hex = "6c7086";
- surface2.hex = "585b70";
- surface1.hex = "45475a";
- surface0.hex = "313244";
- base.hex = "1e1e2e";
- mantle.hex = "181825";
- crust.hex = "11111b";
-
- rosewater.rgb = "245, 224, 220";
- flamingo.rgb = "242, 205, 205";
- pink.rgb = "245, 194, 231";
- mauve.rgb = "203, 166, 247";
- red.rgb = "243, 139, 168";
- maroon.rgb = "235, 160, 172";
- peach.rgb = "250, 179, 135";
- yellow.rgb = "249, 226, 175";
- green.rgb = "166, 227, 161";
- teal.rgb = "148, 226, 213";
- sky.rgb = "137, 220, 235";
- sapphire.rgb = "116, 199, 236";
- blue.rgb = "137, 180, 250";
- lavender.rgb = "180, 190, 254";
- text.rgb = "205, 214, 244";
- subtext1.rgb = "186, 194, 222";
- subtext0.rgb = "166, 173, 200";
- overlay2.rgb = "147, 153, 178";
- overlay1.rgb = "127, 132, 156";
- overlay0.rgb = "108, 112, 134";
- surface2.rgb = "88, 91, 112";
- surface1.rgb = "69, 71, 90";
- surface0.rgb = "49, 50, 68";
- base.rgb = "30, 30, 46";
- mantle.rgb = "24, 24, 37";
- crust.rgb = "17, 17, 27";
- };
- };
-
-}
\ No newline at end of file
diff --git a/module.nix b/module.nix
deleted file mode 100644
index a00bc47..0000000
--- a/module.nix
+++ /dev/null
@@ -1,392 +0,0 @@
-{
- inputs,
- hostName,
-}:
-{
- config,
- lib,
- pkgs,
- ...
-}:
-let
- cfg = config.sidonia;
-in
-{
- options = with lib; {
- sidonia = {
- lib = mkOption {
- readOnly = true;
- type = types.attrs;
- default = {
- capitalize =
- str:
- let
- chars = stringToCharacters str;
- in
- concatStrings ([ (toUpper (builtins.head chars)) ] ++ (builtins.tail chars));
-
- isInstalled =
- package:
- builtins.elem package.pname (
- builtins.catAttrs "pname" (
- config.environment.systemPackages
- ++ config.users.users.${cfg.userName}.packages
- ++ config.home-manager.users.${cfg.userName}.home.packages
- )
- );
-
- home = {
- applications = "/home/${cfg.userName}/.nix-profile/share/applications";
- autostart = "/home/${cfg.userName}/.config/autostart";
- };
- configContainerCredential =
- f: service: path:
- let
- rootCredName = "${service}CredentialRoot";
- localCredName = "${service}CredentialLocal";
- in
- {
- extraFlags = [ "--load-credential=${rootCredName}:${path}" ];
- config = lib.mkMerge [
- { systemd.services."${service}".serviceConfig.LoadCredential = "${localCredName}:${rootCredName}"; }
- (f "/run/credentials/${service}.service/${localCredName}")
- ];
- };
- };
- };
- ssh = {
- pubKey = lib.mkOption {
- type = types.str;
- default = "";
- };
- privKeyPath = lib.mkOption {
- type = types.path;
- default = "/home/${cfg.userName}/.ssh/id_ed25519";
- };
- };
- hostName = mkOption {
- readOnly = true;
- type = types.str;
- default = hostName;
- };
- userName = mkOption {
- description = "Username of main user";
- type = types.str;
- };
- stateVer = mkOption {
- description = "NixOS state version";
- type = types.str;
- };
- system = mkOption {
- description = "System architecture";
- type = types.enum [
- "x86_64-linux"
- "x86_64-darwin"
- "i686-linux"
- "aarch64-linux"
- "aarch64-darwin"
- "armv6l-linux"
- "armv7l-linux"
- ];
- default = "x86_64-linux";
- };
- tweaks = {
- withBehringerAudioInterface = mkEnableOption "Apply tweaks for some Behringer audio interfaces such as the UV1 and some UMC devices.";
- };
- geolocation.enable = mkEnableOption "Turn on geolocation related services such as automatic timezone changing and geoclue";
- isLaptop = mkEnableOption "Apply laptop-specific tweaks";
- graphics = {
- enable = mkEnableOption "Enable gui / desktop environment components";
- legacyGpu = mkEnableOption "Apply tweaks for OpenGL ES 2 device support";
- };
- style = {
- # use `apply` attribute in mkOption to convert input options & avoid hacking nixpkgs lib
- catppuccin = mkOption {
- description = "Catppuccin configuration";
- default = { };
- type = types.submodule {
- options = {
- flavor = mkOption {
- description = "Catppuccin theme flavor";
- type = types.enum [
- "latte"
- "frappe"
- "macchiato"
- "mocha"
- ];
- default = "frappe";
- };
- accent = mkOption {
- description = "Catppuccin theme accent";
- type = types.enum [
- "rosewater"
- "flamingo"
- "pink"
- "mauve"
- "red"
- "maroon"
- "peach"
- "yellow"
- "green"
- "teal"
- "sky"
- "sapphire"
- "blue"
- "lavender"
- ];
- default = "mauve";
- };
- };
- };
- apply =
- x:
- let
- theme = (import ./lib/catppuccin.nix).catppuccin.${x.flavor};
- in
- {
- inherit (x) flavor accent;
- highlight = theme.${x.accent};
- color = theme // {
- accent = theme.${x.accent};
- };
- };
- };
- cursorSize = mkOption {
- description = "Cursor size";
- type = types.int;
- default = 30;
- };
- };
- window = mkOption {
- description = "Window configuration";
- default = { };
- type = types.submodule {
- options = {
- float.w = mkOption {
- description = "Default floating window width";
- type = types.int;
- default = 896;
- };
- float.h = mkOption {
- description = "Default floating window height";
- type = types.int;
- default = 504;
- };
- borderSize = mkOption {
- description = "Border width";
- type = types.int;
- default = 2;
- };
- rounding = mkOption {
- description = "Window rounding";
- type = types.int;
- default = 10;
- };
- opacity = mkOption {
- description = "Decimal opacity value for floating window transparency.";
- type = types.float;
- default = 0.8;
- };
- };
- };
- apply = x: {
- float = {
- inherit (x.float) w h;
- wh = (builtins.toString x.float.w) + " " + (builtins.toString x.float.h);
- onCursor = "move onscreen cursor -50% -50%";
- };
- inherit (x) borderSize rounding;
- opacity = {
- dec = x.opacity;
- hex = toHexString (builtins.floor (x.opacity * 255));
- };
- };
- };
- text = {
- smallTermFont = mkEnableOption "Shrink the terminal font slightly";
- comicCode = mkOption {
- default = { };
- type = types.submodule {
- options.enable = mkEnableOption "Use Comic Code monospace font";
- };
- apply = x: {
- inherit (x) enable;
- package = inputs.nonfree-fonts.packages.${config.nixpkgs.system}.comic-code;
- name = if x.enable then "Comic Code" else "ComicShannsMono Nerd Font";
- };
- };
- };
- input = {
- sensitivity = mkOption {
- description = "Mouse sensitivity range from -1.0 to 1.0";
- type = types.float;
- default = 0.0;
- };
- accelProfile = mkOption {
- description = "Hyprland mouse acceleration profile";
- type = types.enum [
- "adaptive"
- "flat"
- "custom"
- ];
- default = "flat";
- };
- keyLayout = mkOption {
- description = "Keyboard layout";
- type = types.str;
- default = "us";
- };
- };
- desktop = {
- monitors = mkOption {
- description = "List of monitor configurations ( see https://wiki.hyprland.org/Configuring/Monitors/ )";
- type =
- with types;
- listOf (submodule {
- options = {
- name = mkOption {
- description = "Name of monitor";
- type = str;
- };
- resolution = mkOption {
- description = "Resolution in the format WIDTHxHEIGHT. Default is highest available resolution.";
- type = str;
- default = "highres";
- };
- position = mkOption {
- description = "Monitor position in scaled pixels WIDTHxHEIGHT";
- type = str;
- default = "auto";
- };
- refresh = mkOption {
- description = "Monitor refresh rate";
- type = float;
- default = 0.0;
- };
- scale = mkOption {
- description = "Monitor scale factor";
- type = float;
- default = 0.0;
- };
- extraArgs = mkOption {
- description = "Extra comma-separated monitor properties";
- type = str;
- default = "";
- };
- };
- });
- default = [ ];
- apply =
- x:
- builtins.map
- (
- monitor:
- let
- hasHz = monitor.refresh != 0.0;
- scaleAuto = monitor.scale == 0.0;
- hasXtra = monitor.extraArgs != "";
- args = concatStringsSep ", " (
- [
- (concatStringsSep "@" (
- [ monitor.resolution ] ++ (optional hasHz (strings.floatToString monitor.refresh))
- ))
- monitor.position
- (if scaleAuto then "auto" else strings.floatToString monitor.scale)
- ]
- ++ (optional hasXtra monitor.extraArgs)
- );
- in
- rec {
- inherit (monitor) name;
- enable = "${name},${args}";
- disable = "${name},disable";
- }
- )
- (
- x
- ++ [
- # Make sure to automatically find any unconfigured monitors
- {
- name = "";
- resolution = "highres";
- position = "auto";
- scale = 0.0;
- refresh = 0.0;
- extraArgs = "";
- }
- ]
- );
- };
- keybinds = mkOption {
- description = "List of keybinds to add to the desktop environment";
- type =
- with types;
- listOf (submodule {
- options = {
- mod = mkOption {
- description = "Modifier keys";
- type = listOf (enum [
- "super"
- "shift"
- "alt"
- ]);
- };
- key = mkOption {
- description = "Key";
- type = str;
- };
- exec = mkOption {
- description = "Command to execute";
- type = str;
- };
- };
- });
- };
- };
- };
- };
-
- imports =
- let
- ls =
- with lib;
- dir: filter: mapAttrsToList (n: v: (path.append dir n)) (filterAttrs filter (builtins.readDir dir));
- lsFiles = dir: ls dir (n: v: v == "regular");
- #prefixList = prefix: list: (builtins.map (x: lib.path.append prefix x) list);
- headless = (lsFiles ./config/headless/core) ++ (lsFiles ./config/headless/optional);
- graphical = (lsFiles ./config/graphical/core) ++ (lsFiles ./config/graphical/optional);
-
- in
- headless
- ++ graphical
- ++ (with inputs; [
- catppuccin.nixosModules.catppuccin
- home-manager.nixosModules.home-manager
- lancache.nixosModules.dns
- lancache.nixosModules.cache
- aagl.nixosModules.default
- sops-nix.nixosModules.sops
- nix-minecraft.nixosModules.minecraft-servers
- quartus.nixosModules.quartus
- ]);
-
- config = lib.mkMerge [
- {
- home-manager.users.${cfg.userName}.imports = with inputs; [
- catppuccin.homeModules.catppuccin
- hyprshell.homeModules.hyprshell
- ];
- }
- (lib.mkIf cfg.tweaks.withBehringerAudioInterface {
- # Fix Behringer UV1 stutter https://github.com/arterro/notes/blob/main/behringer_uv1_linux_stutter.org
- boot = {
- extraModprobeConfig = ''
- options snd_usb_audio implicit_fb=1
- '';
- kernelModules = [
- "snd_usb_audio"
- ];
- };
- })
- ];
-}