Compare commits
4 Commits
f0abdb3a2c
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a90b640470 | ||
![]() |
45d64858bd | ||
![]() |
3e5e10f5b5 | ||
![]() |
d409d60b72 |
@ -3,6 +3,7 @@
|
||||
imports = [
|
||||
./system/default.nix
|
||||
];
|
||||
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
|
@ -1,5 +1,17 @@
|
||||
{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 = {
|
||||
enable = true;
|
||||
xwayland = true;
|
||||
@ -18,7 +30,7 @@
|
||||
terminal = "alacritty";
|
||||
menu = "${pkgs.rofi}/bin/rofi -show drun -c .config/rofi/config.rasi";
|
||||
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"; }];
|
||||
gaps = {
|
||||
@ -34,7 +46,8 @@
|
||||
"${modifier}+space" = "exec ${menu}";
|
||||
"${modifier}+Q" = "kill";
|
||||
"${modifier}+Shift+R" = "reload";
|
||||
"${modifier}+Shift+S" = "grim -g '$(slurp)'";
|
||||
"Print" = "flameshot gui";
|
||||
|
||||
# WINDOW STUFF #
|
||||
"${modifier}+Shift+space" = "floating toggle";
|
||||
"${modifier}+Shift+F" = "fullscreen toggle";
|
||||
@ -75,10 +88,11 @@
|
||||
"${modifier}+Shift+8" = "move container to workspace number 8";
|
||||
"${modifier}+Shift+9" = "move container to workspace number 9";
|
||||
|
||||
# Audio
|
||||
# Media
|
||||
"XF86AudioRaiseVolume" = "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";
|
||||
"XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
|
||||
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";
|
||||
|
@ -29,7 +29,7 @@
|
||||
* {
|
||||
|
||||
border: none;
|
||||
font-family: JetBrainsMono Nerd Font, sans-serif;
|
||||
font-family: Terminess Nerd Font, sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@ -251,6 +251,7 @@
|
||||
};
|
||||
|
||||
"clock" = {
|
||||
interval = 1;
|
||||
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
||||
format = " {:%H:%M:%S}";
|
||||
format-alt = " {:%A, %B %d, %Y}";
|
||||
@ -286,8 +287,9 @@
|
||||
};
|
||||
|
||||
"network" = {
|
||||
interval = 1;
|
||||
format-wifi = " {essid} {signalStrength}%";
|
||||
format-ethernet = "{ifname}: {ipaddr}/{cidr} ";
|
||||
format-ethernet = " {bandwidthUpBits} / {bandwidthDownBits} | {ipaddr} ";
|
||||
format-linked = "{ifname} (No IP) ";
|
||||
format-disconnected = " Disconnected";
|
||||
on-click-release = "sleep 0";
|
||||
@ -295,6 +297,7 @@
|
||||
};
|
||||
|
||||
"pulseaudio" = {
|
||||
interval = 1;
|
||||
format = "{icon}{volume}% {format_source}";
|
||||
format-bluetooth = "{icon} {volume}%";
|
||||
format-bluetooth-muted = " {volume}%";
|
||||
@ -308,8 +311,8 @@
|
||||
default = [" " " " " "];
|
||||
};
|
||||
tooltip-format = "{desc} {volume}%";
|
||||
on-click = "wpctl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||
on-click-right = "wpctl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||
on-click = "${pkgs.wireplumber}/bin/wpctl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||
on-click-right = "${pkgs.wireplumber}/bin/pctl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||
on-click-middle = "${pkgs.pavucontrol}/bin/pavucontrol";
|
||||
on-click-release = "sleep 0";
|
||||
on-click-middle-release = "sleep 0";
|
||||
|
@ -10,5 +10,23 @@
|
||||
./services.nix
|
||||
./firefox.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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
@ -12,13 +12,14 @@
|
||||
usbutils
|
||||
alsa-utils
|
||||
pavucontrol
|
||||
flameshot
|
||||
(flameshot.override { enableWlrSupport = true; })
|
||||
feh
|
||||
gnumake
|
||||
tree
|
||||
gdb
|
||||
vscode
|
||||
neovide
|
||||
wireshark
|
||||
|
||||
# Command-line utilities
|
||||
neofetch
|
||||
@ -102,9 +103,9 @@
|
||||
qbittorrent
|
||||
superTuxKart
|
||||
adwaita-icon-theme
|
||||
];
|
||||
viewnior
|
||||
];
|
||||
|
||||
|
||||
fonts = {
|
||||
fontconfig.enable = true;
|
||||
packages = with pkgs; [
|
||||
|
47
hosts/default/system/rf.nix
Normal file
47
hosts/default/system/rf.nix
Normal 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 ];
|
||||
}
|
@ -1,14 +1,11 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
|
||||
services = {
|
||||
libinput = {
|
||||
enable = true;
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
dbus.enable = true;
|
||||
mullvad-vpn = {
|
||||
enable = true;
|
||||
@ -17,4 +14,11 @@
|
||||
gnome.gnome-keyring.enable = true;
|
||||
};
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
}
|
||||
|
@ -55,13 +55,6 @@
|
||||
useXkbConfig = true;
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = false;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
nix-ld.enable = true;
|
||||
dconf = {
|
||||
|
@ -54,14 +54,7 @@
|
||||
font = "Lat2-Terminus16";
|
||||
useXkbConfig = true;
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = false;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs = {
|
||||
nix-ld.enable = true;
|
||||
dconf = {
|
||||
|
Reference in New Issue
Block a user