NixOs/flake.nix
2026-06-15 20:27:49 +02:00

1355 lines
48 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# vim: foldmethod=marker
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hypr-kdeconnect-fix = {
url = "github:niversesu/hypr-kdeconnect-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
noctalia = {
url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-dotfiles = {
url = "git+https://dario48.site/git/Dario48/neovim-dotfiles.git?ref=main";
flake = false;
};
#plasma-manager = {
# url = "github:nix-community/plasma-manager";
# inputs.nixpkgs.follows = "nixpkgs";
# inputs.home-manager.follows = "home-manager";
#};
# in inputs
assets.url = "git+https://dario48.site/git/Dario48/NixOs.git?ref=assets";
zig = {
url = "github:silversquirl/zig-flake";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
zls = {
url = "github:zigtools/zls/0.16.0";
inputs = {
nixpkgs.follows = "nixpkgs";
zig-flake.follows = "zig";
};
};
VSTSpeek = {
url = "git+https://dario48.site/git/Dario48/VSTSpeek_flake.git";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
inputs.hypr-kdeconnect-fix.nixosModules.default
# configure.nix {{{
(
{
config,
pkgs,
inputs,
lib,
...
}: let
# Zen conf {{{
system = pkgs.stdenv.hostPlatform.system;
extension = shortId: guid: {
name = guid;
value = {
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
installation_mode = "normal_installed";
};
};
prefs = {
# Check these out at about:config
"zen.theme.content-element-separation" = 0;
# ...
};
extensions = [
# To add additional extensions, find it on addons.mozilla.org, find
# the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/)
# Then go to https://addons.mozilla.org/api/v5/addons/addon/!SHORT_ID!/ to get the guid
(extension "ublock-origin" "uBlock0@raymondhill.net")
(extension "bitwarden-password-manager" "{446900e4-71c2-419f-a6a7-df9c091e268b}")
# ...
];
zen = (
pkgs.wrapFirefox inputs.zen-browser.packages.${system}.zen-browser-unwrapped {
extraPrefs = lib.concatLines (
lib.mapAttrsToList (
name: value: "lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});"
)
prefs
);
extraPolicies = {
DisableTelemetry = true;
ExtensionSettings = builtins.listToAttrs extensions;
SearchEngines = {
Default = "Kagi";
Add = [
{
Name = "Kagi";
URLTemplate = "https://kagi.com/search?q={searchTerms}";
IconURL = "https://kagi.com/favicon.ico";
Alias = "@k";
}
{
Name = "MDN";
URLTemplate = "https://developer.mozilla.org/en-US/search?q={searchTerms}";
IconURL = "https://developer.mozilla.org/static/img/opengraph-logo.72382e605ce3.png";
Alias = "mdn";
}
{
Name = "nixpkgs packages";
URLTemplate = "https://search.nixos.org/packages?query={searchTerms}";
IconURL = "https://wiki.nixos.org/favicon.ico";
Alias = "@np";
}
{
Name = "NixOS options";
URLTemplate = "https://search.nixos.org/options?query={searchTerms}";
IconURL = "https://wiki.nixos.org/favicon.ico";
Alias = "@no";
}
{
Name = "NixOS Wiki";
URLTemplate = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
IconURL = "https://wiki.nixos.org/favicon.ico";
Alias = "@nw";
}
{
Name = "noogle";
URLTemplate = "https://noogle.dev/q?term={searchTerms}";
IconURL = "https://noogle.dev/favicon.ico";
Alias = "@ng";
}
];
};
};
}
);
# }}}
in {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
services.hypr-kdeconnect-fix.enable = true;
environment.sessionVariables = {
MANPAGER = "nvim +Man!";
KWIN_DRM_NO_SLEEP_DETECTION = "1";
KWIN_DRM_NO_AMS = 1;
KWIN_DRM_DONT_FORCE_AMD_GPU = "1"; # try this too
# KWIN_FORCE_SW_CURSOR = "1"; # decouple cursor from DRM pipeline
# __GL_VRR_ALLOWED = "0";
#KWIN_DRM_DISABLE_TRIPLE_BUFFERING = "1";
};
services.power-profiles-daemon.enable = true;
services.upower.enable = true;
hardware = {
keyboard.qmk.enable = true;
bluetooth.enable = true;
graphics.enable = true;
nvidia = {
# see the note below
open = false; # see the note above
modesetting.enable = true;
powerManagement.enable = true;
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
nvidiaBusId = "PCI:1@0:0:0";
amdgpuBusId = "PCI:5@0:0:0";
};
};
};
services.xserver.videoDrivers = [
"nvidia"
"amdgpu"
];
boot.kernelParams = ["nvidia.NVreg_PreserveVideoMemoryAllocations=1"];
boot.kernel.sysctl."fs.inotify.max_user_watches" = 524288;
services.sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true; # only needed for Wayland -- omit this when using with Xorg
openFirewall = true;
};
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.hosts = {
};
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
security.pam.services.regreet.kwallet.enable = true;
programs.regreet = {
enable = true;
};
networking.networkmanager = {
enable = true;
};
# Set your time zone.
time.timeZone = "Europe/Rome";
# Select internationalisation properties.
i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "it_IT.UTF-8";
LC_IDENTIFICATION = "it_IT.UTF-8";
LC_MEASUREMENT = "it_IT.UTF-8";
LC_MONETARY = "it_IT.UTF-8";
LC_NAME = "it_IT.UTF-8";
LC_NUMERIC = "it_IT.UTF-8";
LC_PAPER = "it_IT.UTF-8";
LC_TELEPHONE = "it_IT.UTF-8";
LC_TIME = "it_IT.UTF-8";
};
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
#services.displayManager.plasma-login-manager = {
# enable = true;
#};
#services.desktopManager.plasma6.enable = true;
programs.hyprland = {
enable = true;
withUWSM = true; # recommended for most users
xwayland.enable = true; # Xwayland can be disabled.
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-hyprland];
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "eu";
variant = "";
};
# Enable CUPS to print documents.
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
services.printing = {
enable = true;
drivers = with pkgs; [
cups-filters
cups-browsed
];
};
services.system-config-printer.enable = true;
services.privoxy = {
enable = true;
enableTor = true;
};
services.tor = {
enable = true;
openFirewall = true;
torsocks.enable = true;
client = {
enable = true;
};
};
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.dario48 = {
isNormalUser = true;
description = "Dario48";
extraGroups = [
"libvirtd"
"networkmanager"
"wheel"
"uinput"
];
packages = with pkgs; [
hyprshutdown
grim
kdePackages.kate
vesktop
ghidra-bin
pwntools
mpvScripts.mpris
jellyfin-mpv-shim
mpv
dino
gimp
unzip
wireguard-tools
# patch elf files to work
binutils
stdenv
nix-index
patchelf
# thunderbird
jellyfin-desktop
jellyfin-rpc
tor-browser
element-desktop
(wrapOBS {
plugins = with pkgs.obs-studio-plugins; [
obs-pipewire-audio-capture
obs-gstreamer
obs-gstreamer
];
})
];
};
programs.obs-studio.enableVirtualCamera = true;
virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu = {
swtpm.enable = true;
};
programs.virt-manager.enable = true;
networking.firewall.trustedInterfaces = ["virbr0"];
networking.firewall.allowedTCPPorts = [5900];
programs.direnv.enable = true;
programs.steam = {
enable = true;
gamescopeSession.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
};
programs.gamemode.enable = true;
programs.gamescope = {
enable = true;
capSysNice = false;
};
services.ananicy = {
enable = true;
package = pkgs.ananicy-cpp;
rulesProvider = pkgs.ananicy-cpp;
extraRules = [
{
"name" = "gamescope";
"nice" = -20;
}
];
};
programs.steam.protontricks.enable = true;
programs.dconf.enable = true;
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
gcc
];
};
fonts.packages = with pkgs;
[]
++ (with nerd-fonts; [
iosevka-term
]);
# Install firefox.
programs.firefox.enable = true;
# Allow unfree packages
nixpkgs.config = {
allowUnfree = true;
cudaSupport = true;
};
nixpkgs.overlays = [
inputs.VSTSpeek.overlays.default
(self: super: {
zig = inputs.zig.packages.${system}.zig_0_16_0;
zls = inputs.zls.packages.${system}.zls;
zen = zen;
wayvnc = pkgs.symlinkJoin {
name = "wayvnc-wrapped";
paths = [super.wayvnc];
buildInputs = [super.makeWrapper];
postBuild = ''
wrapProgram $out/bin/wayvnc --add-flags "--output=eDP-1"
'';
};
element-desktop = super.symlinkJoin {
name = "element-desktop";
paths = [super.element-desktop];
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/element-desktop --set HTTPS_PROXY 127.0.0.1:8118 --set HTTP_PROXY 127.0.0.1:8118
'';
};
dino = super.symlinkJoin {
name = "dino";
paths = [
(
pkgs.writeShellScriptBin "dino" ''
exec ${pkgs.torsocks}/bin/torsocks ${super.dino}/bin/dino "$@"
''
)
super.dino
];
};
jellyfin-desktop = super.symlinkJoin {
name = "jellyfin-desktop";
paths = [
(
pkgs.writeShellScriptBin "jellyfin-desktop" ''
exec nvidia-offload ${super.jellyfin-desktop}/bin/jellyfin-desktop "$@"
''
)
super.jellyfin-desktop
];
};
inherit
(super.lixPackageSets.stable)
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena
;
})
];
nix.package = pkgs.lixPackageSets.stable.lix;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages =
with pkgs;
[
kdePackages.kwallet
kdePackages.kwalletmanager
kdePackages.kwallet-pam
libsecret
swtpm
dnsmasq # libvirt
zen
zig
zls
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
git
sweet-nova
tree-sitter
gcc
man-pages
man-pages-posix
python3
ripgrep
blesh
sshfs
wl-clipboard
cargo
rustc
luajit
via
openrgb-with-all-plugins
]
++ [
reaper
reaper-sws-extension
reaper-reapack-extension
VSTSpeek
]
# music making
;
services.udev = {
enable = true;
packages = with pkgs; [via];
extraRules = ''
#------------------------#
#Glorious GMMK3 100% ANSI#
#------------------------#
SUBSYSTEMS=="usb|hidraw", ATTRS{idVendor}=="504b", ATTRS{idProduct}=="320f", TAG+="uaccess", TAG+="Glorious_GMMK_100_ANSI"
'';
};
services.hardware.openrgb.enable = true;
programs.bash.blesh.enable = true;
documentation.dev.enable = true;
programs.neovim = {
enable = true;
vimAlias = true;
viAlias = true;
defaultEditor = true;
configure.customLuaRC = ''
vim.opt.runtimepath:prepend("${inputs.neovim-dotfiles}")
vim.opt.runtimepath:append("${inputs.neovim-dotfiles}/after")
package.path = "${inputs.neovim-dotfiles}/?.lua;" ..
"${inputs.neovim-dotfiles}/?/init.lua;" ..
package.path
dofile("${inputs.neovim-dotfiles}/init.lua")
'';
# configure = {
# customLuaRC = ''
# -- Add your config directory to package.path
# package.path = package.path .. ";${inputs.neovim-dotfiles}/?.lua;${nvim-config}/?/init.lua"
# -- Source the main init.lua
# dofile("${inputs.neovim-dotfiles}/init.lua")
# '';
# };
};
nix.settings = {
substituters = [
"https://cache.nixos-cuda.org"
];
trusted-public-keys = [
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
];
trusted-users = ["dario48"];
experimental-features = [
"nix-command"
"flakes"
];
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
networking.firewall = {
allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
allowedUDPPortRanges = [
{
from = 1714;
to = 1764;
}
];
};
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# 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 = "25.11"; # Did you read the comment?
}
)
# }}}
# home.nix {{{
home-manager.nixosModules.default
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [
#inputs.plasma-manager.homeModules.plasma-manager
];
users.dario48 = (
{
config,
pkgs,
...
}: {
imports = [
inputs.hypr-kdeconnect-fix.homeManagerModules.default
inputs.noctalia.homeModules.default
];
services = {
mpris-proxy.enable = true;
arrpc.enable = true;
kdeconnect.enable = true;
# eeasyeffects {{{
easyeffects = {
enable = true;
extraPresets = {
default-input = {
# input {{{
input = {
blocklist = [];
plugins_order = [
"rnnoise#0"
];
"rnnoise#0" = {
bypass = false;
enable-vad = true;
input-gain = 0.0;
model-name = "";
output-gain = 0.0;
release = 20.0;
use-standard-model = true;
vad-thres = 50.0;
wet = 1.0;
};
};
# }}}
};
default-output = {
# output {{{
output = {
"bass_enhancer#0" = {
amount = 1.0;
blend = -10.0;
bypass = false;
floor = 20.0;
floor-active = false;
harmonics = 8.5;
input-gain = 0.0;
output-gain = 0.0;
scope = 100.0;
};
blocklist = [];
"crystalizer#0" = {
adaptive-intensity = true;
band0 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band1 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band10 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band11 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band12 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band2 = {
bypass = false;
intensity = -2.0;
mute = false;
};
band3 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band4 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band5 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band6 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band7 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band8 = {
bypass = false;
intensity = 0.0;
mute = false;
};
band9 = {
bypass = false;
intensity = 0.0;
mute = false;
};
bypass = false;
fixed-quantum = false;
input-gain = 0.0;
output-gain = 0.0;
oversampling = true;
oversampling-quality = 5.0;
transition-band = 120.0;
};
plugins_order = [
"crystalizer#0"
"bass_enhancer#0"
];
};
# }}}
};
};
};
# }}}
};
# hyprland {{{
services.hypr-kdeconnect-fix = {
enable = true;
compositor = "hyprland";
};
services.hyprpolkitagent.enable = true;
programs.noctalia-shell = {
enable = true;
};
programs.satty.enable = true;
services.cliphist.enable = true;
services.wayvnc = {
enable = true;
autoStart = true;
settings = {
address = "0.0.0.0";
port = 5900;
};
};
wayland.windowManager.hyprland = let
lua = pkgs.lib.generators.mkLuaInline;
toLua = pkgs.lib.generators.toLua {};
exec = prg: lua "hl.dsp.exec_cmd(\"${prg}\")";
function = prg: lua "function() \n${prg}\nend";
ipc = opt: exec "noctalia-shell ipc call ${opt}";
mod = key: lua "mod .. \" + ${key}\"";
lmb = "mouse:272";
rmb = "mouse:273";
mmb = "mouse:274";
in {
enable = true;
package = null;
portalPackage = null;
configType = "lua";
systemd.enable = false;
settings = {
mod = {
_var = "SUPER";
};
config = {
general = {
gaps_in = 0;
gaps_out = 0;
border_size = 0;
};
dwindle = {
preserve_split = true;
precise_mouse_move = true;
};
decoration = {
rounding = 1;
};
input = {
kb_layout = "eu";
touchpad.natural_scroll = true;
};
};
gesture = [
{
_args = [
{
fingers = 3;
direction = "horizontal";
action = "workspace";
}
];
}
];
monitor = [
{
_args = [
{
output = "desc:AOC Q24G2 ZQVPAHA000946";
mode = "2560x1440@144";
position = "1920x0";
scale = "1";
}
];
}
{
_args = [
{
output = "eDP-1";
mode = "1920x1080@144";
position = "0x0";
scale = "1";
}
];
}
{
_args = [
{
output = "HDMI-A-1";
mode = "1920x1080@60";
position = "4480x0";
scale = "1";
transform = 1;
}
];
}
];
on = let
exec = prg: function "hl.exec_cmd(\"${prg}\")";
in [
{
_args = [
"hyprland.start"
(exec "noctalia-shell")
];
}
];
bind =
(map (key: {
_args = [
(mod key)
(lua "hl.dsp.window.move(${
toLua {
direction = builtins.substring 0 1 key;
}
})")
];
}) ["up" "down" "left" "right"])
++ (map (num: {
_args = [
(mod (toString num))
(lua "hl.dsp.focus(${
toLua {
workspace = num;
}
})")
];
}) (pkgs.lib.lists.range 1 9))
++ [
{
_args = [
(mod "Q")
(lua "hl.dsp.window.close()")
{locked = true;}
];
}
{
_args = [
(mod "SUPER_L")
(ipc "launcher toggle")
];
}
{
_args = [
(mod "F")
(function "hl.dispatch(hl.dsp.window.float({ action = \"toggle\" }))")
];
}
{
_args = [
(mod "SHIFT + F")
(lua "hl.dsp.window.fullscreen()")
];
}
{
_args = [
"SUPER + RETURN"
(exec "ghostty")
];
}
{
_args = [
(mod lmb)
(lua "hl.dsp.window.drag()")
{mouse = true;}
];
}
{
_args = [
(mod rmb)
(lua "hl.dsp.window.resize()")
{mouse = true;}
];
}
{
_args = [
(mod "CTRL")
(lua "hl.dsp.window.drag()")
{mouse = true;}
];
}
{
_args = [
(mod "ALT")
(lua "hl.dsp.window.resize()")
{mouse = true;}
];
}
{
_args = [
"Print"
(exec "grim - | satty -f - --copy-command wl-copy -o '~/Pictures/Screenshots/%Y%m%d_%H%M%S.png'")
];
}
{
_args = [
(mod "V")
(ipc "launcher clipboard")
];
}
{
_args = [
(mod "C")
(ipc "launcher command")
];
}
{
_args = [
"XF86AudioRaiseVolume"
(ipc "volume increase")
{
repeating = true;
locked = true;
}
];
}
{
_args = [
"XF86AudioLowerVolume"
(ipc "volume decrease")
{
repeating = true;
locked = true;
}
];
}
{
_args = [
"XF86AudioMute"
(ipc "volume muteOutput")
{
locked = true;
}
];
}
{
_args = [
"XF86MonBrightnessUp"
(ipc "brightness increase")
{
repeating = true;
locked = true;
}
];
}
{
_args = [
"XF86MonBrightnessDown"
(ipc "brightness decrese")
{
repeating = true;
locked = true;
}
];
}
];
};
};
services.hyprpaper = {
enable = true;
settings = {
preload = [
"${inputs.assets.wallpaper}"
];
wallpaper = [
# By display
#"DP-2,~/wallpapers/wallpaper2.jpg"
# By default/fallback
{
monitor = "";
path = "${inputs.assets.wallpaper}";
}
];
};
};
# }}}
programs = {
# ghostty {{{
ghostty = {
enable = true;
settings = {
theme = "Carbonfox";
font-family = "IosevkaTerm Nerd Font Mono";
background-opacity = 0.5;
background-blur = true;
notify-on-command-finish = "unfocused";
notify-on-command-finish-action = "bell,notify";
window-padding-x = 0;
window-padding-y = 0;
window-theme = "ghostty";
shell-integration-features = true;
cursor-style = "block";
cursor-style-blink = true;
cursor-click-to-move = true;
};
enableBashIntegration = true;
installBatSyntax = true;
installVimSyntax = true;
systemd.enable = true;
};
# }}}
# plasma {{{
#plasma = {
# enable = true;
# fonts.fixedWidth = {
# family = "IosevkaTerm Nerd Font Mono";
# pointSize = 11;
# };
# hotkeys.commands = {
# "kitty" = {
# name = "launch kitty";
# key = "Alt+Return";
# command = "kitty";
# };
# };
# input = {
# keyboard = {
# layouts = [{layout = "eu";}];
# options = ["caps:esc"];
# };
# mice = [
# {
# name = "Logitech USB Optical Mouse";
# vendorId = "046d";
# productId = "c077";
# }
# ];
# touchpads = [
# {
# vendorId = "04f3";
# productId = "3298";
# name = "ELAN07C9:00 04F3:3298 Touchpad";
# disableWhileTyping = false;
# naturalScroll = true;
# }
# ];
# };
# krunner = {
# position = "top";
# shortcuts.launch = "Meta";
# };
# kscreenlocker = {
# appearance.wallpaper = "${inputs.assets.wallpaper}";
# lockOnResume = true;
# passwordRequired = true;
# };
# kwin = {
# borderlessMaximizedWindows = true;
# cornerBarrier = false;
# effects = {
# dimAdminMode.enable = true;
# dimInactive.enable = true;
# hideCursor = {
# enable = true;
# hideOnTyping = true;
# hideOnInactivity = 5;
# };
# magnifier = {
# enable = true;
# height = 200;
# width = 355;
# };
# zoom.scrollGestureModKeys = "Meta+Ctrl";
# shakeCursor.enable = true;
# snapHelper.enable = true;
# };
# };
# shortcuts.kwin = {
# "Window Close" = "Alt+Q";
# "Switch Window Down" = "Alt+J";
# "Switch Window Left" = "Alt+H";
# "Switch Window Right" = "Alt+L";
# "Switch Window Up" = "Alt+K";
# };
# panels = [
# {
# alignment = "center";
# floating = false;
# hiding = "none";
# lengthMode = "fill";
# location = "top";
# offset = 0;
# opacity = "translucent";
# screen = "all";
# widgets = [
# "org.kde.plasma.kickoff"
# "org.kde.plasma.pager"
# "org.kde.plasma.icontasks"
# "org.kde.plasma.marginsseparator"
# {
# systemTray.items = {
# shown = [
# "org.kde.plasma.notifications"
# "org.kde.plasma.clipboard"
# "org.kde.plasma.mediacontroller"
# "org.kde.plasma.networkmanagement"
# "org.kde.plasma.volume"
# "org.kde.plasma.battery"
# "org.kde.plasma.brightness"
# "org.kde.plasma.bluetooth"
# ];
# hidden = [
# "org.kde.plasma.manage-inputmethod"
# "org.kde.plasma.cameraindicator"
# "org.kde.plasma.keyboardlayout"
# "org.kde.plasma.devicenotifier"
# "org.kde.kscreen"
# "org.kde.plasma.keyboardindicator"
# "org.kde.plasma.printmanager"
# "org.kde.plasma.weather"
# ];
# };
# }
# "org.kde.plasma.digitalclock"
# "org.kde.plasma.showdesktop"
# "org.kde.plasma.systemmonitor.cpucore"
# ];
# }
# ];
# powerdevil.AC.whenLaptopLidClosed = "hibernate";
# session.sessionRestore.restoreOpenApplicationsOnLogin = "onLastLogout";
# windows.allowWindowsToRememberPositions = true;
# workspace = {
# colorScheme = "SweetAmbarBlue";
# cursor = {
# theme = "breeze_cursors";
# size = 24;
# };
# iconTheme = "breeze";
# soundTheme = "ocean";
# theme = "Sweet-Ambar-Blue";
# wallpaper = "${inputs.assets.wallpaper}";
# windowDecorations = {
# library = "org.kde.kwin.aurorae.v2";
# theme = "__aurorae__svg__Sweet-ambar-blue";
# };
# };
#};
# }}}
#ssh {{{
ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = let
server = {
ip = "93.94.24.17";
port = 22;
username = "dario48";
};
in {
"*" = {
forwardAgent = false;
addKeysToAgent = "no";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
"git.dario48.site" = {
hostname = server.ip;
identityFile = "~/.ssh/id_ed25519";
port = server.port;
};
home_server = {
hostname = server.ip;
identityFile = "~/.ssh/home_server";
user = server.username;
port = server.port;
};
};
};
# }}}
# hyfetch {{{
fastfetch.enable = true;
hyfetch = {
enable = true;
settings = {
preset = "agender";
mode = "rgb";
auto_detect_light_dark = true;
light_dark = "dark";
lightness = 0.5;
color_align = {
mode = "horizontal";
};
backend = "fastfetch";
args = null;
distro = null;
pride_month_disable = false;
custom_ascii_path = null;
};
};
# }}}
# kitty {{{
kitty = {
enable = true;
themeFile = "Carbonfox";
shellIntegration.enableBashIntegration = true;
font.name = "IosevkaTerm Nerd Font Mono";
font.size = 11;
settings = {
bold_font = "auto";
italic_font = "auto";
bold_italic_font = "auto";
watch_config = "no";
confirm_os_window_close = 0;
dynamic_background_opacity = true;
window_padding_width = 0;
background = "#000000";
background_opacity = "0.5";
background_blur = 64;
};
};
# }}}
};
home = {
stateVersion = "24.11";
shell.enableShellIntegration = true;
pointerCursor = {
gtk.enable = true;
package = pkgs.kdePackages.breeze;
name = "breeze_cursors";
};
file.".config/REAPER/UserPlugins/reaper_reapack-x86_64.so".source = "${pkgs.reaper-reapack-extension}/UserPlugins/reaper_reapack-x86_64.so";
file.".config/REAPER/Scripts/sws_python64.py".source = "${pkgs.reaper-sws-extension}/Scripts/sws_python64.py";
file.".config/REAPER/Scripts/sws_python.py".source = "${pkgs.reaper-sws-extension}/Scripts/sws_python.py";
file.".config/REAPER/UserPlugins/reaper_sws-x86_64.so".source = "${pkgs.reaper-sws-extension}/UserPlugins/reaper_sws-x86_64.so";
};
}
);
};
}
# }}}
];
};
};
}