dotfiles

My PC Dotfiles & Website
commit a4dee7d433589a24dc6d04476387e6b8108e3a70
parent c40ba7339d66a1996bf00ebb0c674414093777a5
Author: maydayv7 <maydayv7@gmail.com>
Date:   Tue,  9 Sep 2025 16:31:25 +0530

feat: Support Blockchain

Diffstat:

9 files changed, 54 insertions(+), 38 deletions(-)

diff --git a/devices/valkyrie/default.nix b/devices/valkyrie/default.nix @@ -31,6 +31,7 @@ "mobile" "printer" "virtualisation" + "blockchain" ]; vm = { diff --git a/devices/vortex.nix b/devices/vortex.nix @@ -62,7 +62,6 @@ user = { name = "v7"; description = "V 7"; - uid = 1000; shell = "zsh"; shells = [ "bash" ]; groups = [ diff --git a/files/niri/theme/waybar.css b/files/niri/theme/waybar.css @@ -8,6 +8,7 @@ window#waybar { background-color: alpha(@base00, 0.9); border: 2px solid @base00; + border-radius: 0; } tooltip { background: alpha(@base00, 0.9); @@ -75,7 +76,6 @@ window#waybar.empty #window { color: @base05; opacity: 0.8; border: 2px solid @base04; - margin-bottom: 10px; } #bluetooth { @@ -183,6 +183,10 @@ window#waybar.empty #window { padding-left: 0.4em; } +#keyboard-state { + margin-bottom: 10px; +} + #window { margin: 2px; padding-top: 3px; diff --git a/modules/README.md b/modules/README.md @@ -68,7 +68,7 @@ Configuration [Builder](./configuration.nix) - `mode`: CPU Frequency Governor Mode - `"ondemand" / "performance" / "powersave"` - `gpu`: Discrete GPU Support - `null / "nvidia"` - `modules`: List of Hardware Configuration Modules imported from [`inputs.hardware`](https://github.com/nixos/nixos-hardware) - Ex. `[ "common-pc" ]` - - `support`: List of Additional Supported Hardware - `[ "laptop" "mobile" "printer" "virtualisation" ]` + - `support`: List of Additional Supported Hardware - `[ "laptop" "mobile" "printer" "virtualisation" "blockchain" ]` - `vm`: Configure Virtualisation Support - - `android`: Enable Android Virtualisation - `true / false` - `vfio`: Configure VFIO PCI passthrough - `true / false` diff --git a/modules/gui/desktop/_shared/utilities.nix b/modules/gui/desktop/_shared/utilities.nix @@ -16,7 +16,6 @@ in font-manager gnome-clocks gnome-disk-utility - hyprpicker nwg-drawer overskride qalculate-gtk @@ -26,11 +25,12 @@ in # Utilities custom.sysutils + hyprpicker pavucontrol wev - wlclock wl-clipboard wl-screenrec + wlclock wlr-randr # Network Settings @@ -64,32 +64,30 @@ in "video" ]; - user = { - homeConfig = { - systemd.user.services.wlclock = - let - target = [ "graphical-session.target" ]; - in - { - Install.WantedBy = target; - Unit = { - Description = "Desktop Clock"; - After = target; - }; - Service.ExecStart = - with colors; - "${getExe pkgs.wlclock} --layer bottom --exclusive-zone true --position top-right --margin 10 --size 300 --corner-radius 10 --border-size 2 --hand-width 7 --marking-width 3 --background-colour #${base00}4d --clock-colour #${base0D} --border-colour #${base00}"; + user.homeConfig = { + systemd.user.services.wlclock = + let + target = [ "graphical-session.target" ]; + in + { + Install.WantedBy = target; + Unit = { + Description = "Desktop Clock"; + After = target; }; - - # Network Settings - xdg.desktopEntries."org.gnome.Settings" = { - name = "Network Settings"; - comment = "Gnome Control Center"; - icon = "org.gnome.Settings"; - exec = "env XDG_CURRENT_DESKTOP=gnome gnome-control-center"; - categories = [ "X-Preferences" ]; - terminal = false; + Service.ExecStart = + with colors; + "${getExe pkgs.wlclock} --layer bottom --exclusive-zone true --position top-right --margin 10 --size 300 --corner-radius 10 --border-size 2 --hand-width 7 --marking-width 3 --background-colour #${base00}4d --clock-colour #${base0D} --border-colour #${base00}"; }; + + # Network Settings + xdg.desktopEntries."org.gnome.Settings" = { + name = "Network Settings"; + comment = "Gnome Control Center"; + icon = "org.gnome.Settings"; + exec = "env XDG_CURRENT_DESKTOP=gnome gnome-control-center"; + categories = [ "X-Preferences" ]; + terminal = false; }; }; }; diff --git a/modules/gui/desktop/niri/apps/panel.nix b/modules/gui/desktop/niri/apps/panel.nix @@ -19,10 +19,7 @@ in position = "left"; width = 40; spacing = 3; - margin-top = 5; - margin-right = 0; - margin-bottom = 5; - margin-left = 3; + margin = "0"; "group/users" = { orientation = "vertical"; diff --git a/modules/gui/desktop/niri/settings/default.nix b/modules/gui/desktop/niri/settings/default.nix @@ -9,10 +9,7 @@ keyboard.numlock = true; warp-mouse-to-focus.enable = true; workspace-auto-back-and-forth = true; - focus-follows-mouse = { - enable = true; - max-scroll-amount = "25%"; - }; + focus-follows-mouse.enable = true; }; layout = { @@ -26,6 +23,7 @@ { proportion = 1.0 / 3.0; } { proportion = 0.5; } { proportion = 2.0 / 3.0; } + { proportion = 0.85; } ]; preset-window-heights = [ { proportion = 1.0 / 3.0; } diff --git a/modules/hardware/blockchain.nix b/modules/hardware/blockchain.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + pkgs, + ... +}: +let + enable = builtins.elem "blockchain" config.hardware.support; +in +{ + + ## Blockchain Support ## + config = lib.mkIf enable { + virtualisation.docker.enable = true; + user.groups = [ "docker" ]; + environment.systemPackages = [ pkgs.hyperledger-fabric ]; + }; +} diff --git a/shells/js.nix b/shells/js.nix @@ -3,8 +3,9 @@ pkgs: { shellHook = ''echo "## JavaScript Development Shell ##"''; packages = with pkgs; [ nodejs - eslint + typescript + eslint nodemon postman ];