mirror of
https://github.com/danbulant/dotfiles
synced 2026-07-05 19:21:10 +00:00
small updates
This commit is contained in:
parent
9a8b255305
commit
ac9b508f71
5 changed files with 248 additions and 147 deletions
|
|
@ -35,7 +35,7 @@ cursor {
|
||||||
|
|
||||||
source = ~/.config/hypr/monitors.conf
|
source = ~/.config/hypr/monitors.conf
|
||||||
source = ~/.config/hypr/workspaces.conf
|
source = ~/.config/hypr/workspaces.conf
|
||||||
source = ~/.config/hypr/hyprland.colors.conf
|
#source = ~/.config/hypr/hyprland.colors.conf
|
||||||
|
|
||||||
monitor=desc:ASUSTek COMPUTER INC VG27AQL5A T7LMQS022027,2560x1440@144.0,0x0,1.0,bitdepth,10
|
monitor=desc:ASUSTek COMPUTER INC VG27AQL5A T7LMQS022027,2560x1440@144.0,0x0,1.0,bitdepth,10
|
||||||
monitor=eDP-1,1920x1200@60.0,2560x0,1.0,bitdepth,10,cm,srgb
|
monitor=eDP-1,1920x1200@60.0,2560x0,1.0,bitdepth,10,cm,srgb
|
||||||
|
|
@ -102,10 +102,12 @@ exec-once = wl-paste --type text --watch cliphist store
|
||||||
exec-once = wl-paste --type image --watch cliphist store
|
exec-once = wl-paste --type image --watch cliphist store
|
||||||
exec-once = fcitx5
|
exec-once = fcitx5
|
||||||
exec-once = easyeffects --gapplication-service
|
exec-once = easyeffects --gapplication-service
|
||||||
|
exec-once = dms run
|
||||||
|
|
||||||
|
|
||||||
#$swaylock = swaylock --screenshots --clock --indicator --effect-blur 6x6 --fade-in 0.2 --ring-color 4e9dc2 --key-hl-color 71b0ce
|
#$swaylock = swaylock --screenshots --clock --indicator --effect-blur 6x6 --fade-in 0.2 --ring-color 4e9dc2 --key-hl-color 71b0ce
|
||||||
$swaylock = hyprlock
|
$swaylock = hyprlock
|
||||||
exec-once=hypridle
|
# exec-once=hypridle
|
||||||
|
|
||||||
# exec-once=swayidle -w timeout 300 '$swaylock --grace 2' before-sleep '$swaylock'
|
# exec-once=swayidle -w timeout 300 '$swaylock --grace 2' before-sleep '$swaylock'
|
||||||
# Needs repackaging...
|
# Needs repackaging...
|
||||||
|
|
@ -294,6 +296,15 @@ layerrule = blur on, match:namespace quickshell:sidebarRight
|
||||||
layerrule = blur_popups on, match:namespace quickshell:sidebarRight
|
layerrule = blur_popups on, match:namespace quickshell:sidebarRight
|
||||||
layerrule = ignore_alpha .2, match:namespace quickshell:sidebarRight
|
layerrule = ignore_alpha .2, match:namespace quickshell:sidebarRight
|
||||||
|
|
||||||
|
layerrule {
|
||||||
|
name="blur dms"
|
||||||
|
match:namespace = dms:(color-picker|clipboard|spotlight|settings)
|
||||||
|
blur = on
|
||||||
|
ignore_alpha = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# layerrule = noanim, match:namespace ^(dms)$
|
||||||
|
|
||||||
blurls=gtk-layer-shell
|
blurls=gtk-layer-shell
|
||||||
blurls=lockscreen
|
blurls=lockscreen
|
||||||
blurls = rofi
|
blurls = rofi
|
||||||
|
|
@ -302,10 +313,10 @@ $dir = ~/.config
|
||||||
#! quickshell
|
#! quickshell
|
||||||
bindr = SUPER+ALT, R, exec, pkill rofi || $dir/rofi/bin/launcher
|
bindr = SUPER+ALT, R, exec, pkill rofi || $dir/rofi/bin/launcher
|
||||||
# bind = SUPER, r, global, quickshell:overviewSearchToggle
|
# bind = SUPER, r, global, quickshell:overviewSearchToggle
|
||||||
bind = SUPER, r, exec, dms ipc call spotlight toggle
|
# bind = SUPER, r, exec, dms ipc call spotlight toggle
|
||||||
bind = SUPER+ALT, P, exec, pkill rofi || $dir/rofi/bin/powermenu
|
bind = SUPER+ALT, P, exec, pkill rofi || $dir/rofi/bin/powermenu
|
||||||
bind = SUPER, p, exec, dms ipc call powermenu open
|
# bind = SUPER, p, exec, dms ipc call powermenu open
|
||||||
bind = SUPER, tab, exec, dms ipc call hypr toggleOverview
|
# bind = SUPER, tab, exec, dms ipc call hypr toggleOverview
|
||||||
# bind = SUPER, p, global, quickshell:sessionToggle
|
# bind = SUPER, p, global, quickshell:sessionToggle
|
||||||
# bind = SUPER, m, global, quickshell:mediaControlsToggle
|
# bind = SUPER, m, global, quickshell:mediaControlsToggle
|
||||||
# bind = SUPER, grave, global, quickshell:sidebarLeftToggle
|
# bind = SUPER, grave, global, quickshell:sidebarLeftToggle
|
||||||
|
|
@ -401,7 +412,7 @@ bind = ,Print,exec,hyprshot --clipboard-only --mode active --mode output
|
||||||
# bind = SUPER+SHIFT,S,exec,spectacle --copy-image --region --background # no gui
|
# bind = SUPER+SHIFT,S,exec,spectacle --copy-image --region --background # no gui
|
||||||
# bind = SUPER+SHIFT,S,exec,grim -g "$(slurp)" - | wl-copy
|
# bind = SUPER+SHIFT,S,exec,grim -g "$(slurp)" - | wl-copy
|
||||||
bind = SUPER+SHIFT,S,exec,hyprshot --freeze --clipboard-only --mode region
|
bind = SUPER+SHIFT,S,exec,hyprshot --freeze --clipboard-only --mode region
|
||||||
bind = SUPER, L,exec,$swaylock
|
# bind = SUPER, L,exec,$swaylock
|
||||||
|
|
||||||
#! move windows to workspaces
|
#! move windows to workspaces
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||||
|
|
@ -469,3 +480,8 @@ decoration {
|
||||||
#windowrule = monitor 1,title:flameshot
|
#windowrule = monitor 1,title:flameshot
|
||||||
#windowrule = move 0 0,title:flameshot
|
#windowrule = move 0 0,title:flameshot
|
||||||
#windowrule = noanim,title:flameshot
|
#windowrule = noanim,title:flameshot
|
||||||
|
|
||||||
|
#enable once dms fixes config; uses old hyprland syntax
|
||||||
|
source = ~/.config/hypr/dms/colors.conf
|
||||||
|
source = ~/.config/hypr/dms/binds.conf
|
||||||
|
source = ~/.config/hypr/dms/layout.conf
|
||||||
|
|
|
||||||
|
|
@ -1,35 +1,42 @@
|
||||||
|
|
||||||
# Edit this configuration file to define what should be installed on
|
# Edit this configuration file to define what should be installed on
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, /*hyprland,*/ options, /*hyprland-plugins, */nixpkgs-unstable, lib, nixos-hardware, zen-browser/*, kwin-effects-forceblur*/, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
options,
|
||||||
|
nixpkgs-unstable,
|
||||||
|
lib,
|
||||||
|
dms,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
unstable-pkgs = nixpkgs-unstable.legacyPackages.x86_64-linux; #import nixpkgs-unstable.nixosModules.readOnlyPkgs {};
|
unstable-pkgs = nixpkgs-unstable.legacyPackages.x86_64-linux; # import nixpkgs-unstable.nixosModules.readOnlyPkgs {};
|
||||||
# unstable-pkgs = hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
# unstable-pkgs = hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
# nixos-hardware.nixosModules.lenovo-legion-16ach6h-hybrid # this is borked in latest update for some reason, edid doesn't build
|
||||||
# nixos-hardware.nixosModules.lenovo-legion-16ach6h-hybrid # this is borked in latest update for some reason, edid doesn't build
|
# nixos-hardware.nixosModules.common-cpu-amd
|
||||||
# nixos-hardware.nixosModules.common-cpu-amd
|
# nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||||
# nixos-hardware.nixosModules.common-cpu-amd-pstate
|
# nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
||||||
# nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
# nixos-hardware.nixosModules.common-gpu-amd
|
||||||
# nixos-hardware.nixosModules.common-gpu-amd
|
# nixos-hardware.nixosModules.common-gpu-nvidia
|
||||||
# nixos-hardware.nixosModules.common-gpu-nvidia
|
# nixos-hardware.nixosModules.common-pc-laptop
|
||||||
# nixos-hardware.nixosModules.common-pc-laptop
|
# nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||||
# nixos-hardware.nixosModules.common-pc-laptop-ssd
|
./hardware-configuration.nix
|
||||||
./hardware-configuration.nix
|
dms.nixosModules.greeter
|
||||||
# /etc/nixos/cachix.nix
|
# /etc/nixos/cachix.nix
|
||||||
];
|
];
|
||||||
# nyx.low-power.enable = true;
|
# nyx.low-power.enable = true;
|
||||||
hardware.nvidia.dynamicBoost.enable = lib.mkForce false;
|
hardware.nvidia.dynamicBoost.enable = lib.mkForce false;
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"olm-3.2.16"
|
"olm-3.2.16"
|
||||||
"cinny-unwrapped-4.2.3"
|
"cinny-unwrapped-4.2.3"
|
||||||
"cinny-4.2.3"
|
"cinny-4.2.3"
|
||||||
"libsoup-2.74.3"
|
"libsoup-2.74.3"
|
||||||
# "qbittorrent-4.6.4"
|
# "qbittorrent-4.6.4"
|
||||||
# "cinny-3.2.0"
|
# "cinny-3.2.0"
|
||||||
"dotnet-sdk-wrapped-7.0.410"
|
"dotnet-sdk-wrapped-7.0.410"
|
||||||
|
|
@ -40,7 +47,6 @@ in
|
||||||
"electron-33.4.11"
|
"electron-33.4.11"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
|
@ -76,10 +82,13 @@ in
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
# networking.nameservers = ["1.1.1.1"];
|
# networking.nameservers = ["1.1.1.1"];
|
||||||
services.dnsmasq.settings.server = [ "100.100.100.100" "127.0.0.1#5053" ];
|
services.dnsmasq.settings.server = [
|
||||||
|
"100.100.100.100"
|
||||||
|
"127.0.0.1#5053"
|
||||||
|
];
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.networkmanager.plugins = with pkgs; [networkmanager-openconnect];
|
networking.networkmanager.plugins = with pkgs; [ networkmanager-openconnect ];
|
||||||
networking.networkmanager.dns = "none";
|
networking.networkmanager.dns = "none";
|
||||||
|
|
||||||
services.dnscrypt-proxy = {
|
services.dnscrypt-proxy = {
|
||||||
|
|
@ -95,9 +104,9 @@ in
|
||||||
cache_file = "/var/lib/dnscrypt-proxy/public-resolvers.md";
|
cache_file = "/var/lib/dnscrypt-proxy/public-resolvers.md";
|
||||||
};
|
};
|
||||||
|
|
||||||
listen_addresses = ["127.0.0.1:5053"];
|
listen_addresses = [ "127.0.0.1:5053" ];
|
||||||
ipv6_servers = false;
|
ipv6_servers = false;
|
||||||
block_ipv6 = ! (false);
|
block_ipv6 = !(false);
|
||||||
|
|
||||||
require_dnssec = true;
|
require_dnssec = true;
|
||||||
require_nolog = false;
|
require_nolog = false;
|
||||||
|
|
@ -125,9 +134,9 @@ in
|
||||||
services.dnsmasq.enable = true;
|
services.dnsmasq.enable = true;
|
||||||
services.displayManager.sddm.enable = true;
|
services.displayManager.sddm.enable = true;
|
||||||
services.displayManager.sddm.wayland.enable = true;
|
services.displayManager.sddm.wayland.enable = true;
|
||||||
services.desktopManager.plasma6 = {
|
services.desktopManager.plasma6 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
# services.desktopManager.gnome.enable = true;
|
# services.desktopManager.gnome.enable = true;
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
|
@ -148,12 +157,14 @@ in
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
security.pam.loginLimits = [{
|
security.pam.loginLimits = [
|
||||||
domain = "*";
|
{
|
||||||
type = "soft";
|
domain = "*";
|
||||||
item = "nofile";
|
type = "soft";
|
||||||
value = "64000";
|
item = "nofile";
|
||||||
}];
|
value = "64000";
|
||||||
|
}
|
||||||
|
];
|
||||||
services.geoclue2.enable = true;
|
services.geoclue2.enable = true;
|
||||||
services.localtimed.enable = true;
|
services.localtimed.enable = true;
|
||||||
services.lorri.enable = true;
|
services.lorri.enable = true;
|
||||||
|
|
@ -171,14 +182,32 @@ in
|
||||||
|
|
||||||
users.users.dan = {
|
users.users.dan = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "John";
|
description = "Dan";
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" "fuse" "video" "wireshark" "gamemode" "scanner" "lp" "kvm" "adbusers" "dialout"];
|
extraGroups = [
|
||||||
|
"i2c"
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
"docker"
|
||||||
|
"fuse"
|
||||||
|
"video"
|
||||||
|
"wireshark"
|
||||||
|
"gamemode"
|
||||||
|
"scanner"
|
||||||
|
"lp"
|
||||||
|
"kvm"
|
||||||
|
"adbusers"
|
||||||
|
"dialout"
|
||||||
|
];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
kdePackages.kate
|
kdePackages.kate
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nix.settings.trusted-users = [ "root" "@wheel" "dan" ];
|
nix.settings.trusted-users = [
|
||||||
|
"root"
|
||||||
|
"@wheel"
|
||||||
|
"dan"
|
||||||
|
];
|
||||||
|
|
||||||
# Other defaults are set in home.nix
|
# Other defaults are set in home.nix
|
||||||
# environment.sessionVariables.DEFAULT_BROWSER = "firefox";
|
# environment.sessionVariables.DEFAULT_BROWSER = "firefox";
|
||||||
|
|
@ -200,11 +229,11 @@ in
|
||||||
"cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM="
|
"cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Comment out below for the first time to avoid cache miss, if using flake
|
# Comment out below for the first time to avoid cache miss, if using flake
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# package = hyprland.packages.${pkgs.system}.hyprland;
|
# package = hyprland.packages.${pkgs.system}.hyprland;
|
||||||
# portalPackage = hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland.override
|
# portalPackage = hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland.override
|
||||||
# {
|
# {
|
||||||
# inherit (pkgs) mesa;
|
# inherit (pkgs) mesa;
|
||||||
|
|
@ -213,9 +242,16 @@ in
|
||||||
# package = unstable-pkgs.hyprland;
|
# package = unstable-pkgs.hyprland;
|
||||||
};
|
};
|
||||||
# End comment out
|
# End comment out
|
||||||
|
#
|
||||||
|
programs.dank-material-shell.greeter = {
|
||||||
|
enable = true;
|
||||||
|
compositor.name = "hyprland"; # Or "hyprland" or "sway"
|
||||||
|
configHome = "/home/dan";
|
||||||
|
};
|
||||||
|
|
||||||
#xdg.configFile."menus/applications.menu".text = builtins.readFile ./applications.menu;
|
#xdg.configFile."menus/applications.menu".text = builtins.readFile ./applications.menu;
|
||||||
environment.etc."/xdg/menus/plasma-applications.menu".text = builtins.readFile "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
environment.etc."/xdg/menus/plasma-applications.menu".text =
|
||||||
|
builtins.readFile "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
||||||
|
|
||||||
# programs.hyprland.enable = true;
|
# programs.hyprland.enable = true;
|
||||||
programs.hyprlock.enable = true;
|
programs.hyprlock.enable = true;
|
||||||
|
|
@ -225,14 +261,17 @@ in
|
||||||
# Fix dynamic binaries from outside of nix
|
# Fix dynamic binaries from outside of nix
|
||||||
programs.nix-ld = {
|
programs.nix-ld = {
|
||||||
enable = true;
|
enable = true;
|
||||||
libraries = options.programs.nix-ld.libraries.default ++ (with pkgs; [
|
libraries =
|
||||||
libdrm
|
options.programs.nix-ld.libraries.default
|
||||||
mesa
|
++ (with pkgs; [
|
||||||
libxkbcommon
|
libdrm
|
||||||
openssl
|
mesa
|
||||||
libGL libva
|
libxkbcommon
|
||||||
libelf
|
openssl
|
||||||
]);
|
libGL
|
||||||
|
libva
|
||||||
|
libelf
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
|
|
@ -245,7 +284,7 @@ in
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableOnBoot = false;
|
enableOnBoot = false;
|
||||||
# enableNvidia = true;
|
# enableNvidia = true;
|
||||||
};
|
};
|
||||||
# hardware.nvidia-container-toolkit.enable = true;
|
# hardware.nvidia-container-toolkit.enable = true;
|
||||||
services.avahi.enable = true;
|
services.avahi.enable = true;
|
||||||
|
|
@ -263,26 +302,26 @@ in
|
||||||
|
|
||||||
# Visuals
|
# Visuals
|
||||||
plymouth = {
|
plymouth = {
|
||||||
enable = false;
|
enable = false;
|
||||||
theme = "deus_ex"; # motion is also cool
|
theme = "deus_ex"; # motion is also cool
|
||||||
themePackages = with pkgs; [
|
themePackages = with pkgs; [
|
||||||
(adi1090x-plymouth-themes.override {
|
(adi1090x-plymouth-themes.override {
|
||||||
selected_themes = [ "deus_ex" ];
|
selected_themes = [ "deus_ex" ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
# attempt to fix nvidia perf
|
# attempt to fix nvidia perf
|
||||||
#"nvidia_drm.fbdev=1" "nvidia_drm.modeset=1" "module_blacklist=i915"
|
#"nvidia_drm.fbdev=1" "nvidia_drm.modeset=1" "module_blacklist=i915"
|
||||||
"delayacct"
|
"delayacct"
|
||||||
"initcall_blacklist=sysfb_init"
|
"initcall_blacklist=sysfb_init"
|
||||||
#"quiet"
|
#"quiet"
|
||||||
#"splash"
|
#"splash"
|
||||||
"boot.shell_on_fail"
|
"boot.shell_on_fail"
|
||||||
"loglevel=3"
|
"loglevel=3"
|
||||||
"rd.systemd.show_status=false"
|
"rd.systemd.show_status=false"
|
||||||
"rd.udev.log_level=3"
|
"rd.udev.log_level=3"
|
||||||
"udev.log_priority=3"
|
"udev.log_priority=3"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Removing support for unneeded stuff
|
# Removing support for unneeded stuff
|
||||||
|
|
@ -315,13 +354,12 @@ in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
# nvtopPackages.full
|
# nvtopPackages.full
|
||||||
btop
|
btop
|
||||||
lshw
|
lshw
|
||||||
hyprpolkitagent
|
hyprpolkitagent
|
||||||
|
|
||||||
# lenovo-legion
|
# lenovo-legion
|
||||||
|
|
||||||
|
|
||||||
# required for quickshell config; needs to be here for them to be included in import/plugin path
|
# required for quickshell config; needs to be here for them to be included in import/plugin path
|
||||||
kdePackages.qt5compat
|
kdePackages.qt5compat
|
||||||
|
|
@ -338,77 +376,82 @@ in
|
||||||
libsForQt5.kirigami2
|
libsForQt5.kirigami2
|
||||||
kdePackages.syntax-highlighting
|
kdePackages.syntax-highlighting
|
||||||
|
|
||||||
(python313.withPackages(ps: with ps; [
|
(python313.withPackages (
|
||||||
build
|
ps: with ps; [
|
||||||
pillow
|
build
|
||||||
cffi
|
pillow
|
||||||
libsass
|
cffi
|
||||||
material-color-utilities
|
libsass
|
||||||
materialyoucolor
|
material-color-utilities
|
||||||
numpy
|
materialyoucolor
|
||||||
packaging
|
numpy
|
||||||
pillow
|
packaging
|
||||||
psutil
|
pillow
|
||||||
pycparser
|
psutil
|
||||||
pyproject-hooks
|
pycparser
|
||||||
pywayland
|
pyproject-hooks
|
||||||
setproctitle
|
pywayland
|
||||||
setuptools
|
setproctitle
|
||||||
setuptools-scm
|
setuptools
|
||||||
wheel
|
setuptools-scm
|
||||||
|
wheel
|
||||||
|
|
||||||
pwntools
|
pwntools
|
||||||
]))
|
]
|
||||||
|
))
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.variables = let
|
environment.variables =
|
||||||
qtVersions = with pkgs; [
|
let
|
||||||
qt5
|
qtVersions = with pkgs; [
|
||||||
qt6
|
qt5
|
||||||
];
|
qt6
|
||||||
in
|
];
|
||||||
{
|
in
|
||||||
QT_PLUGIN_PATH = map (qt: "/${qt.qtbase.qtPluginPrefix}") qtVersions;
|
{
|
||||||
QML2_IMPORT_PATH = map (qt: "/${qt.qtbase.qtQmlPrefix}") qtVersions ++ (with unstable-pkgs; [
|
QT_PLUGIN_PATH = map (qt: "/${qt.qtbase.qtPluginPrefix}") qtVersions;
|
||||||
|
QML2_IMPORT_PATH =
|
||||||
|
map (qt: "/${qt.qtbase.qtQmlPrefix}") qtVersions
|
||||||
|
++ (with unstable-pkgs; [
|
||||||
"${quickshell}/lib/qt-6/qml/"
|
"${quickshell}/lib/qt-6/qml/"
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.config.cudaSupport = true;
|
nixpkgs.config.cudaSupport = true;
|
||||||
|
|
||||||
# The nvidia fun part
|
# The nvidia fun part
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# package = unstable-pkgs.mesa.drivers;
|
# package = unstable-pkgs.mesa.drivers;
|
||||||
# Steam support
|
# Steam support
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
# package32 = unstable-pkgs.pkgsi686Linux.mesa.drivers;
|
# package32 = unstable-pkgs.pkgsi686Linux.mesa.drivers;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
|
||||||
# Required for modern Intel GPUs (Xe iGPU and ARC)
|
# Required for modern Intel GPUs (Xe iGPU and ARC)
|
||||||
intel-media-driver # VA-API (iHD) userspace
|
intel-media-driver # VA-API (iHD) userspace
|
||||||
vpl-gpu-rt # oneVPL (QSV) runtime
|
vpl-gpu-rt # oneVPL (QSV) runtime
|
||||||
|
|
||||||
# Optional (compute / tooling):
|
# Optional (compute / tooling):
|
||||||
intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
|
intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
|
||||||
# libvdpau-va-gl
|
# libvdpau-va-gl
|
||||||
# nvidia-vaapi-driver
|
# nvidia-vaapi-driver
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
LIBVA_DRIVER_NAME = "iHD";
|
LIBVA_DRIVER_NAME = "iHD";
|
||||||
};
|
};
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
#boot.kernelModules = ["amdgpu" "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" "lenovo-legion-module"];
|
#boot.kernelModules = ["amdgpu" "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" "lenovo-legion-module"];
|
||||||
#hardware.nvidia = {
|
#hardware.nvidia = {
|
||||||
# open = false;
|
# open = false;
|
||||||
# modesetting.enable = true;
|
# modesetting.enable = true;
|
||||||
# powerManagement.enable = true;
|
# powerManagement.enable = true;
|
||||||
# nvidiaSettings = true;
|
# nvidiaSettings = true;
|
||||||
# prime = {
|
# prime = {
|
||||||
# hardware specific, beware!
|
# hardware specific, beware!
|
||||||
# amdgpuBusId = lib.mkForce "PCI:06:00:0";
|
# amdgpuBusId = lib.mkForce "PCI:06:00:0";
|
||||||
# nvidiaBusId = lib.mkForce "PCI:01:00:0";
|
# nvidiaBusId = lib.mkForce "PCI:01:00:0";
|
||||||
# };
|
# };
|
||||||
|
|
@ -417,12 +460,14 @@ in
|
||||||
services.cpupower-gui.enable = true;
|
services.cpupower-gui.enable = true;
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
services.power-profiles-daemon.enable = false;
|
services.power-profiles-daemon.enable = false;
|
||||||
services.tlp = {
|
# services.tlp = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
# USB_DENYLIST = "04d9:a0b8";
|
# USB_DENYLIST = "04d9:a0b8";
|
||||||
};
|
# };
|
||||||
# powerManagement.powertop.enable = true;
|
powerManagement.enable = true;
|
||||||
# powerManagement.cpuFreqGovernor = "powersave";
|
powerManagement.powertop.enable = true;
|
||||||
|
powerManagement.cpuFreqGovernor = "schedutil";
|
||||||
|
services.thermald.enable = true;
|
||||||
|
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
|
|
@ -446,14 +491,15 @@ in
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
5353 # Google cast discovery
|
5353 # Google cast discovery
|
||||||
42000 # warpinator
|
42000 # warpinator
|
||||||
42001 # warpinator
|
42001 # warpinator
|
||||||
67 68 # dhcp
|
67
|
||||||
|
68 # dhcp
|
||||||
1716 # kdeconnect
|
1716 # kdeconnect
|
||||||
];
|
];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
hardware.wooting.enable = true;
|
hardware.wooting.enable = true;
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
|
|
@ -461,7 +507,6 @@ in
|
||||||
services.lldpd.enable = true;
|
services.lldpd.enable = true;
|
||||||
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||||
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
@ -470,9 +515,11 @@ in
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
system.stateVersion = "25.11"; # Did you read the comment?
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
# /etc/hosts :)
|
# /etc/hosts :)
|
||||||
networking.extraHosts = ''
|
networking.extraHosts = "";
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
27
flake.lock
27
flake.lock
|
|
@ -78,6 +78,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"danksearch": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771177088,
|
||||||
|
"narHash": "sha256-n6e4e0iHNwtdGOlkJlDR9lbFhYalLMuqeQ3jDfp1CaA=",
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "danksearch",
|
||||||
|
"rev": "3b3b79514acf349c166ae53db2225470a28be9e6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "AvengeMedia",
|
||||||
|
"repo": "danksearch",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"determinate": {
|
"determinate": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"determinate-nixd-aarch64-darwin": "determinate-nixd-aarch64-darwin",
|
"determinate-nixd-aarch64-darwin": "determinate-nixd-aarch64-darwin",
|
||||||
|
|
@ -143,11 +163,11 @@
|
||||||
"quickshell": "quickshell"
|
"quickshell": "quickshell"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1768575133,
|
"lastModified": 1771347696,
|
||||||
"narHash": "sha256-P//moH3z9r4PXirTzXVsccQINsK5AIlF9RWOBwK3vLc=",
|
"narHash": "sha256-O9NIJqfuSjwY//7OyFH3FqxRHe5M0vmmsXcryOi/bAE=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "DankMaterialShell",
|
"repo": "DankMaterialShell",
|
||||||
"rev": "a7cdb39b0b89b9af86160ad4e847a7d14ea44512",
|
"rev": "dd4c41a6b2d90f3238f543d1cc54f5f062d685a6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -1201,6 +1221,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"colmena": "colmena",
|
"colmena": "colmena",
|
||||||
"copyparty": "copyparty",
|
"copyparty": "copyparty",
|
||||||
|
"danksearch": "danksearch",
|
||||||
"determinate": "determinate",
|
"determinate": "determinate",
|
||||||
"dms": "dms",
|
"dms": "dms",
|
||||||
"dolphin-overlay": "dolphin-overlay",
|
"dolphin-overlay": "dolphin-overlay",
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
url = "github:AvengeMedia/DankMaterialShell/stable";
|
url = "github:AvengeMedia/DankMaterialShell/stable";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
danksearch = {
|
||||||
|
url = "github:AvengeMedia/danksearch";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
niri = {
|
niri = {
|
||||||
url = "github:sodiboo/niri-flake";
|
url = "github:sodiboo/niri-flake";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
||||||
37
home.nix
37
home.nix
|
|
@ -7,6 +7,7 @@
|
||||||
nixpkgs-unstable, # suyu,
|
nixpkgs-unstable, # suyu,
|
||||||
hyprland-plugins, # , hyprland
|
hyprland-plugins, # , hyprland
|
||||||
pkgs,
|
pkgs,
|
||||||
|
danksearch,
|
||||||
niri,
|
niri,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
|
|
@ -19,12 +20,13 @@ let
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# system = stdenv.hostPlatform.system;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
zen-browser.homeModules.beta
|
zen-browser.homeModules.beta
|
||||||
dms.homeModules.dank-material-shell
|
dms.homeModules.dank-material-shell
|
||||||
|
danksearch.homeModules.default
|
||||||
# niri.homeManagerModules.default
|
# niri.homeManagerModules.default
|
||||||
# dms.homeModules.niri
|
# dms.homeModules.niri
|
||||||
];
|
];
|
||||||
|
|
@ -32,7 +34,17 @@ in
|
||||||
stateVersion = "25.11";
|
stateVersion = "25.11";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
bun
|
||||||
|
lenovo-legion
|
||||||
|
itch
|
||||||
|
filezilla
|
||||||
|
nicotine-plus
|
||||||
|
protonvpn-gui
|
||||||
|
dgop
|
||||||
mysql-workbench
|
mysql-workbench
|
||||||
|
i2c-tools
|
||||||
|
kdePackages.kimageformats
|
||||||
|
power-profiles-daemon
|
||||||
tail-tray
|
tail-tray
|
||||||
steam
|
steam
|
||||||
helium
|
helium
|
||||||
|
|
@ -43,7 +55,7 @@ in
|
||||||
samply
|
samply
|
||||||
font-awesome
|
font-awesome
|
||||||
arduino-ide
|
arduino-ide
|
||||||
xorg.libxkbfile
|
libxkbfile
|
||||||
|
|
||||||
# dioxus-cli
|
# dioxus-cli
|
||||||
cosmic-files
|
cosmic-files
|
||||||
|
|
@ -233,7 +245,7 @@ in
|
||||||
inxi
|
inxi
|
||||||
numbat
|
numbat
|
||||||
wireshark
|
wireshark
|
||||||
nixfmt-rfc-style
|
nixfmt
|
||||||
qpwgraph
|
qpwgraph
|
||||||
|
|
||||||
nixpkgs-unstable.legacyPackages.${system}.zed-editor
|
nixpkgs-unstable.legacyPackages.${system}.zed-editor
|
||||||
|
|
@ -315,9 +327,10 @@ in
|
||||||
# hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprtrails
|
# hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprtrails
|
||||||
# ];
|
# ];
|
||||||
};
|
};
|
||||||
|
programs.dsearch.enable = true;
|
||||||
programs.dank-material-shell = {
|
programs.dank-material-shell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = false;
|
||||||
# niri = {
|
# niri = {
|
||||||
# enableKeybinds = false; # Sets static preset keybinds
|
# enableKeybinds = false; # Sets static preset keybinds
|
||||||
# # enableSpawn = true; # Auto-start DMS with niri, if enabled
|
# # enableSpawn = true; # Auto-start DMS with niri, if enabled
|
||||||
|
|
@ -380,23 +393,23 @@ in
|
||||||
|
|
||||||
# ];
|
# ];
|
||||||
};
|
};
|
||||||
|
difftastic.enable = true;
|
||||||
difftastic.git.enable = true;
|
difftastic.git.enable = true;
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Daniel Bulant";
|
settings = {
|
||||||
userEmail = "danbulant@gmail.com";
|
user.name = "Daniel Bulant";
|
||||||
difftastic.enable = true;
|
user.email = "danbulant@gmail.com";
|
||||||
signing = {
|
|
||||||
signByDefault = true;
|
|
||||||
key = "/home/dan/.ssh/id_ed25519";
|
|
||||||
};
|
|
||||||
extraConfig = {
|
|
||||||
pull.rebase = false;
|
pull.rebase = false;
|
||||||
pull.ff = "only";
|
pull.ff = "only";
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
gpg.ssh.allowedSignersFile = "/home/dan/allowed_signers";
|
gpg.ssh.allowedSignersFile = "/home/dan/allowed_signers";
|
||||||
};
|
};
|
||||||
|
signing = {
|
||||||
|
signByDefault = true;
|
||||||
|
key = "/home/dan/.ssh/id_ed25519";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
gitui.enable = true;
|
gitui.enable = true;
|
||||||
btop.enable = true;
|
btop.enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue