Compare commits

..

4 Commits

Author SHA1 Message Date
Sojus07
a90b640470 kekl 2025-06-04 15:38:06 +02:00
Sojus07
45d64858bd kekl 2025-06-02 00:24:17 +02:00
Sojus07
3e5e10f5b5 kekl 2025-06-01 15:03:20 +02:00
Sojus07
d409d60b72 kekl 2025-06-01 12:00:08 +02:00
9 changed files with 105 additions and 31 deletions

View File

@ -3,6 +3,7 @@
imports = [ imports = [
./system/default.nix ./system/default.nix
]; ];
hardware = { hardware = {
bluetooth = { bluetooth = {
enable = true; enable = true;

View File

@ -1,5 +1,17 @@
{config, pkgs, ... }: {config, pkgs, ... }:
{ {
home.packages = with pkgs; [
grim
swaybg
slurp
dunst
xdg-desktop-portal
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
xdg-desktop-portal-gnome
];
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
xwayland = true; xwayland = true;
@ -18,7 +30,7 @@
terminal = "alacritty"; terminal = "alacritty";
menu = "${pkgs.rofi}/bin/rofi -show drun -c .config/rofi/config.rasi"; menu = "${pkgs.rofi}/bin/rofi -show drun -c .config/rofi/config.rasi";
startup = [ startup = [
{command = "${pkgs.swaybg}/bin/swaybg -i $HOME/.wp/gruvbox-dark-blue.png";} {command = "${pkgs.swaybg}/bin/swaybg -i $HOME/.wp/gruvbox-dark-blue.png; ${pkgs.dunst}/bin/dunst";}
]; ];
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }]; bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
gaps = { gaps = {
@ -34,7 +46,8 @@
"${modifier}+space" = "exec ${menu}"; "${modifier}+space" = "exec ${menu}";
"${modifier}+Q" = "kill"; "${modifier}+Q" = "kill";
"${modifier}+Shift+R" = "reload"; "${modifier}+Shift+R" = "reload";
"${modifier}+Shift+S" = "grim -g '$(slurp)'"; "Print" = "flameshot gui";
# WINDOW STUFF # # WINDOW STUFF #
"${modifier}+Shift+space" = "floating toggle"; "${modifier}+Shift+space" = "floating toggle";
"${modifier}+Shift+F" = "fullscreen toggle"; "${modifier}+Shift+F" = "fullscreen toggle";
@ -75,10 +88,11 @@
"${modifier}+Shift+8" = "move container to workspace number 8"; "${modifier}+Shift+8" = "move container to workspace number 8";
"${modifier}+Shift+9" = "move container to workspace number 9"; "${modifier}+Shift+9" = "move container to workspace number 9";
# Audio # Media
"XF86AudioRaiseVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%"; "XF86AudioRaiseVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%";
"XF86AudioLowerVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%"; "XF86AudioLowerVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%";
"XF86AudioMute" = "exec ${pkgs.pulseaudio}/bin/pactl set-volume toggle-mute"; "XF86AudioMute" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume toggle-mute";
"XF86AudioStop" = "exec ${pkgs.playerctl}/bin/playerctl stop"; "XF86AudioStop" = "exec ${pkgs.playerctl}/bin/playerctl stop";
"XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous"; "XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next"; "XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";

View File

@ -29,7 +29,7 @@
* { * {
border: none; border: none;
font-family: JetBrainsMono Nerd Font, sans-serif; font-family: Terminess Nerd Font, sans-serif;
font-size: 14px; font-size: 14px;
} }
@ -251,6 +251,7 @@
}; };
"clock" = { "clock" = {
interval = 1;
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"; tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
format = " {:%H:%M:%S}"; format = " {:%H:%M:%S}";
format-alt = " {:%A, %B %d, %Y}"; format-alt = " {:%A, %B %d, %Y}";
@ -286,8 +287,9 @@
}; };
"network" = { "network" = {
interval = 1;
format-wifi = " {essid} {signalStrength}%"; format-wifi = " {essid} {signalStrength}%";
format-ethernet = "{ifname}: {ipaddr}/{cidr} 󰈀 "; format-ethernet = " {bandwidthUpBits} / {bandwidthDownBits} | {ipaddr} 󰈀 ";
format-linked = "{ifname} (No IP) "; format-linked = "{ifname} (No IP) ";
format-disconnected = "󰤮 Disconnected"; format-disconnected = "󰤮 Disconnected";
on-click-release = "sleep 0"; on-click-release = "sleep 0";
@ -295,6 +297,7 @@
}; };
"pulseaudio" = { "pulseaudio" = {
interval = 1;
format = "{icon}{volume}% {format_source}"; format = "{icon}{volume}% {format_source}";
format-bluetooth = "{icon} {volume}%"; format-bluetooth = "{icon} {volume}%";
format-bluetooth-muted = " {volume}%"; format-bluetooth-muted = " {volume}%";
@ -308,8 +311,8 @@
default = [" " " " " "]; default = [" " " " " "];
}; };
tooltip-format = "{desc} {volume}%"; tooltip-format = "{desc} {volume}%";
on-click = "wpctl set-sink-mute @DEFAULT_SINK@ toggle"; on-click = "${pkgs.wireplumber}/bin/wpctl set-sink-mute @DEFAULT_SINK@ toggle";
on-click-right = "wpctl set-source-mute @DEFAULT_SOURCE@ toggle"; on-click-right = "${pkgs.wireplumber}/bin/pctl set-source-mute @DEFAULT_SOURCE@ toggle";
on-click-middle = "${pkgs.pavucontrol}/bin/pavucontrol"; on-click-middle = "${pkgs.pavucontrol}/bin/pavucontrol";
on-click-release = "sleep 0"; on-click-release = "sleep 0";
on-click-middle-release = "sleep 0"; on-click-middle-release = "sleep 0";

View File

@ -10,5 +10,23 @@
./services.nix ./services.nix
./firefox.nix ./firefox.nix
./pkgs.nix ./pkgs.nix
./rf.nix
]; ];
xdg = {
portal = {
enable = true;
xdgOpenUsePortal = true;
config = {
common.default = "*";
};
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
};
} }

View File

@ -12,13 +12,14 @@
usbutils usbutils
alsa-utils alsa-utils
pavucontrol pavucontrol
flameshot (flameshot.override { enableWlrSupport = true; })
feh feh
gnumake gnumake
tree tree
gdb gdb
vscode vscode
neovide neovide
wireshark
# Command-line utilities # Command-line utilities
neofetch neofetch
@ -102,9 +103,9 @@
qbittorrent qbittorrent
superTuxKart superTuxKart
adwaita-icon-theme adwaita-icon-theme
]; viewnior
];
fonts = { fonts = {
fontconfig.enable = true; fontconfig.enable = true;
packages = with pkgs; [ packages = with pkgs; [

View File

@ -0,0 +1,47 @@
{ config, pkgs, ... }:
{
environment.systemPackages =
let
satdump = with pkgs;
stdenv.mkDerivation rec {
pname = "satdump";
version = "1.2.0";
src = fetchgit {
url = "https://github.com/SatDump/SatDump.git";
rev = version;
sha256 = "sha256-QGegi5/geL5U3/ecc3hsdW+gp25UE9fOYVLFJUo/N50=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
# required deps
fftwFloat
libpng
libtiff
jemalloc
volk
(nng.overrideAttrs (old: {
cmakeFlags = old.cmakeFlags ++ [ "-DBUILD_SHARED_LIBS=ON" ];
}))
rtl-sdr-librtlsdr
hackrf
airspy
airspyhf
glfw
zenity
zstd
# optional hw support
libad9361
libiio
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
];
};
in
[ satdump ];
}

View File

@ -1,14 +1,11 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
services = { services = {
libinput = { libinput = {
enable = true; enable = true;
}; };
pipewire = {
enable = true;
pulse.enable = true;
wireplumber.enable = true;
};
dbus.enable = true; dbus.enable = true;
mullvad-vpn = { mullvad-vpn = {
enable = true; enable = true;
@ -17,4 +14,11 @@
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
}; };
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
};
} }

View File

@ -55,13 +55,6 @@
useXkbConfig = true; useXkbConfig = true;
}; };
xdg.portal = {
enable = false;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
programs = { programs = {
nix-ld.enable = true; nix-ld.enable = true;
dconf = { dconf = {

View File

@ -54,14 +54,7 @@
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";
useXkbConfig = true; useXkbConfig = true;
}; };
xdg.portal = {
enable = false;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
programs = { programs = {
nix-ld.enable = true; nix-ld.enable = true;
dconf = { dconf = {