Compare commits

...

2 Commits

Author SHA1 Message Date
962a0ad527 autolinking 2026-04-12 10:37:07 -04:00
23501b5dcf pulse 2026-04-03 12:03:23 -04:00

View File

@@ -70,117 +70,89 @@
backupFileExtension = "not-nix"; # Add this line backupFileExtension = "not-nix"; # Add this line
users.jeremy = { pkgs, ... }: { users.jeremy = { pkgs, ... }: {
home.stateVersion = "25.11"; home.stateVersion = "25.11";
# wayland.windowManager.hyprland = { # Configure hyprland
# enable = true;
# settings = { programs.waybar = {
# general = { enable = true;
# gaps_in = 0; settings = {
# gaps_out = 0; mainBar = {
# border_size = 2; layer = "top";
# }; position = "top";
# decoration = { height = 24;
# rounding = 10; margin-top = 0;
# # active_opacity = 0.9; margin-left = 0;
# # inactive_opacity = 0.8; margin-right = 0;
# # blur = { spacing = 4;
# # enabled = true;
# # size = 10; modules-left = [ "niri/workspaces" "niri/window" ];
# # passes = 3; modules-center = [];
# # vibrancy = 1; modules-right = [ "cpu" "memory" "tray" "battery" "pulseaudio" "clock" ];
# # new_optimizations = true;
# # ignore_opacity = true; "niri/workspaces" = {
# # noise = 0; format = "{index}";
# # brightness = 0.9; active-only = true;
# # }; };
# };
# misc = { "clock" = {
# key_press_enables_dpms = true; format = "{:%H:%M | %a %d}";
# mouse_move_enables_dpms = true; tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
# }; };
# "$mainMod" = "SUPER";
# bind = [ "pulseaudio" = {
# "$mainMod, C, exec, alacritty" format = "{icon} {volume}%";
# "$mainMod, Q, killactive," format-muted = "󰝟";
# "$mainMod, grave, exec, rofi -show drun" format-icons = {
# "$mainMod, F, fullscreen" default = [ "󰕿" "󰖀" "󰕾" ];
# "$mainMod, V, togglefloating," };
# ",F4, exec, rofi -show combi -combi-modes 'drun,filebrowser'" on-click = "pavucontrol";
# "$mainMod, A, togglesplit" };
# ", PRINT, exec, hyprshot -zm region -o ~/pics/screenshots/"
# "SHIFT, PRINT, exec, hyprshot -zm window -o ~/pics/screenshots/" "cpu" = { format = " {usage}%"; };
# "SUPER, PRINT, exec, hyprshot -zm output -o ~/pics/screenshots/" "memory" = { format = "󰍛 {percentage}%"; };
# "$mainMod, N, exec, codium ~/etc/nixos/configuration.nix"
# "$mainMod, L, exec, sleep 1s; hyprctl dispatch dpms off" # screen off
# # Move between windows "battery" = {
# "$mainMod, h, movefocus, l" states = { critical = 15; };
# "$mainMod, j, movefocus, d" format = "{icon} {capacity}%";
# "$mainMod, k, movefocus, u" format-icons = [ "󰁺" "󰁼" "󰁾" "󰂀" "󰁹" ];
# "$mainMod, l, movefocus, r" };
};
# # Switch workspaces with mainMod + [0-9] };
# "$mainMod, 1, workspace, 1"
# "$mainMod, 2, workspace, 2" style = ''
# "$mainMod, 3, workspace, 3" * {
# "$mainMod, 4, workspace, 4" font-family: "JetBrainsMono Nerd Font";
# "$mainMod, 5, workspace, 5" font-size: 15px;
# "$mainMod, 6, workspace, 6" border: none;
# "$mainMod, 7, workspace, 7" border-radius: 0;
# "$mainMod, 8, workspace, 8" }
# "$mainMod, 9, workspace, 9"
# "$mainMod, 0, workspace, 10" window#waybar {
background: #000;
# # Move active window to a workspace with mainMod + SHIFT + [0-9] color: #cdd6f4;
# "$mainMod SHIFT, 1, movetoworkspace, 1" }
# "$mainMod SHIFT, 2, movetoworkspace, 2"
# "$mainMod SHIFT, 3, movetoworkspace, 3" #workspaces button {
# "$mainMod SHIFT, 4, movetoworkspace, 4" padding: 0 8px;
# "$mainMod SHIFT, 5, movetoworkspace, 5" color: #bac2de;
# "$mainMod SHIFT, 6, movetoworkspace, 6" }
# "$mainMod SHIFT, 7, movetoworkspace, 7"
# "$mainMod SHIFT, 8, movetoworkspace, 8" #workspaces button.focused {
# "$mainMod SHIFT, 9, movetoworkspace, 9" color: #7fc8ff;
# "$mainMod SHIFT, 0, movetoworkspace, 10" background: rgba(127, 200, 255, 0.1);
# ]; border-bottom: 2px solid #7fc8ff;
# bindm = [ }
# "$mainMod, mouse:272, movewindow"
# "$mainMod, mouse:273, resizewindow" #clock, #cpu, #memory, #pulseaudio, #battery {
# ]; padding: 0 10px;
# binde = [ margin: 4px 2px;
# ", XF86AudioRaiseVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 && wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+" }
# ", XF86AudioLowerVolume, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 && wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-"
# ]; #clock {
# bindl = [ font-weight: bold;
# ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" color: #89b4fa;
# ]; }
# monitor = [ '';
# "DP-2, 2560x1440@170, 0x0, 1" };
# "HDMI-A-1, 2560x1440@144, 2560x0, 1"
# ];
# windowrulev2 = [
# "tile, initialClass:^(Godot)$, initialTitle: ^(Godot)$"
# "float, class:^(Godot)$, title:^(?!(.*Godot)).*$"
# "float, initialTitle:^(Godot)$, class:^(?!(Godot)).*$"
# ];
# exec-once = [
# "swaybg -i ~/.wallpaper -m fill"
# "nextcloud --background"
# ];
# };
# };
# wayland.windowManager.sway = {
# enable = true;
# config = rec {
# modifier = "Mod4";
# # Use kitty as default terminal
# terminal = "kitty";
# startup = [
# # Launch Firefox on start
# {command = "firefox";}
# ];
# };
# };
programs.neovim = { # Configure nvim programs.neovim = { # Configure nvim
enable = true; enable = true;
@@ -213,58 +185,6 @@
} }
]; ];
}; };
# programs.rofi = { # Rofi config
# enable = true;
# theme = "dmenu";
# font = "sans-serif";
# package = pkgs.rofi;
# modes = [
# "drun"
# "run"
# "window"
# "ssh"
# ];
# extraConfig = {
# show-icons = true;
# display-drun = "";
# drun-display-format = "{name}";
# };
# };
# programs.waybar.enable = true;
# programs.waybar.settings.main = {
# layer = "top";
# position = "top";
# reload_style_on_change = true;
# modules-left = [];
# modules-center = ["hyprland/workspaces"];
# modules-right = [
# "tray"
# "bluetooth"
# "network"
# "clock"
# ];
# };
# home.pointerCursor =
# let
# getFrom = url: hash: name: {
# gtk.enable = true;
# x11.enable = true;
# name = name;
# size = 48;
# package =
# pkgs.runCommand "moveUp" {} ''
# mkdir -p $out/share/icons
# ln -s ${pkgs.fetchzip {
# url = url;
# hash = hash;
# }} $out/share/icons/${name}
# '';
# };
# in
# getFrom
# "https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz"
# "sha256-BvVE9qupMjw7JRqFUj1J0a4ys6kc9fOLBPx2bGaapTk="
# "Fuchsia-Pop";
}; };
}; };
@@ -334,21 +254,11 @@
xwayland-satellite # xwayland support xwayland-satellite # xwayland support
fuzzel # menu fuzzel # menu
# grim # screenshot functionality
# slurp # screenshot functionality
# wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
# mako # notification system developed by swaywm maintainer
]; ];
fonts.packages = [ pkgs.nerd-fonts.jetbrains-mono ];
programs.niri.enable = true; programs.niri.enable = true;
# programs.sway = {
# enable = true;
# wrapperFeatures.gtk = true;
# };
# services.gnome.gnome-keyring.enable = true;
boot.initrd.kernelModules = [ "amdgpu" ]; boot.initrd.kernelModules = [ "amdgpu" ];
environment.sessionVariables = { environment.sessionVariables = {
@@ -360,13 +270,6 @@
powerOnBoot = true; powerOnBoot = true;
}; };
# networking.networkmanager = {
# enable = true;
# plugins = with pkgs; [
# networkmanager-openvpn # for htb
# ];
# };
services.ollama = { services.ollama = {
enable = false; enable = false;
acceleration = "rocm"; acceleration = "rocm";
@@ -377,9 +280,17 @@
HSA_OVERRIDE_GFX_VERSION = "10.3.0"; HSA_OVERRIDE_GFX_VERSION = "10.3.0";
}; };
}; };
services.pipewire.enable = true;
services.pipewire.pulse.enable = true;
services.pulseaudio.enable = false; # Use Pipewire services.pulseaudio.enable = false; # Use Pipewire
services.pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = false;
};
security.rtkit.enable = true; # Enable RealtimeKit for audio purposes security.rtkit.enable = true; # Enable RealtimeKit for audio purposes
services.hardware.openrgb = { # Enable OpenRGB services.hardware.openrgb = { # Enable OpenRGB
enable = true; enable = true;
@@ -438,6 +349,19 @@
) )
]; ];
# Binaries auto linked
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
stdenv.cc.cc
zlib
fuse3
icu
nss
openssl
curl
expat
];
# bootloader device # bootloader device
boot.loader.grub.device = "/dev/sda"; boot.loader.grub.device = "/dev/sda";
@@ -471,4 +395,4 @@
# #
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "25.11"; # Did you read the comment? system.stateVersion = "25.11"; # Did you read the comment?
} }