mirror of
https://github.com/danbulant/dotfiles
synced 2026-07-10 21:51:13 +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/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=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 = fcitx5
|
||||
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 = hyprlock
|
||||
exec-once=hypridle
|
||||
# exec-once=hypridle
|
||||
|
||||
# exec-once=swayidle -w timeout 300 '$swaylock --grace 2' before-sleep '$swaylock'
|
||||
# Needs repackaging...
|
||||
|
|
@ -294,6 +296,15 @@ layerrule = blur on, match:namespace quickshell:sidebarRight
|
|||
layerrule = blur_popups on, 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=lockscreen
|
||||
blurls = rofi
|
||||
|
|
@ -302,10 +313,10 @@ $dir = ~/.config
|
|||
#! quickshell
|
||||
bindr = SUPER+ALT, R, exec, pkill rofi || $dir/rofi/bin/launcher
|
||||
# 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, p, exec, dms ipc call powermenu open
|
||||
bind = SUPER, tab, exec, dms ipc call hypr toggleOverview
|
||||
# bind = SUPER, p, exec, dms ipc call powermenu open
|
||||
# bind = SUPER, tab, exec, dms ipc call hypr toggleOverview
|
||||
# bind = SUPER, p, global, quickshell:sessionToggle
|
||||
# bind = SUPER, m, global, quickshell:mediaControlsToggle
|
||||
# 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,grim -g "$(slurp)" - | wl-copy
|
||||
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
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
|
|
@ -469,3 +480,8 @@ decoration {
|
|||
#windowrule = monitor 1,title:flameshot
|
||||
#windowrule = move 0 0,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,16 +1,22 @@
|
|||
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# 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
|
||||
unstable-pkgs = nixpkgs-unstable.legacyPackages.x86_64-linux; # import nixpkgs-unstable.nixosModules.readOnlyPkgs {};
|
||||
# unstable-pkgs = hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
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.common-cpu-amd
|
||||
# nixos-hardware.nixosModules.common-cpu-amd-pstate
|
||||
|
|
@ -20,6 +26,7 @@ in
|
|||
# nixos-hardware.nixosModules.common-pc-laptop
|
||||
# nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||
./hardware-configuration.nix
|
||||
dms.nixosModules.greeter
|
||||
# /etc/nixos/cachix.nix
|
||||
];
|
||||
# nyx.low-power.enable = true;
|
||||
|
|
@ -40,7 +47,6 @@ in
|
|||
"electron-33.4.11"
|
||||
];
|
||||
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
|
|
@ -76,7 +82,10 @@ in
|
|||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
# 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.plugins = with pkgs; [ networkmanager-openconnect ];
|
||||
|
|
@ -148,12 +157,14 @@ in
|
|||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
security.pam.loginLimits = [{
|
||||
security.pam.loginLimits = [
|
||||
{
|
||||
domain = "*";
|
||||
type = "soft";
|
||||
item = "nofile";
|
||||
value = "64000";
|
||||
}];
|
||||
}
|
||||
];
|
||||
services.geoclue2.enable = true;
|
||||
services.localtimed.enable = true;
|
||||
services.lorri.enable = true;
|
||||
|
|
@ -171,14 +182,32 @@ in
|
|||
|
||||
users.users.dan = {
|
||||
isNormalUser = true;
|
||||
description = "John";
|
||||
extraGroups = [ "networkmanager" "wheel" "docker" "fuse" "video" "wireshark" "gamemode" "scanner" "lp" "kvm" "adbusers" "dialout"];
|
||||
description = "Dan";
|
||||
extraGroups = [
|
||||
"i2c"
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
"docker"
|
||||
"fuse"
|
||||
"video"
|
||||
"wireshark"
|
||||
"gamemode"
|
||||
"scanner"
|
||||
"lp"
|
||||
"kvm"
|
||||
"adbusers"
|
||||
"dialout"
|
||||
];
|
||||
shell = pkgs.fish;
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
];
|
||||
};
|
||||
nix.settings.trusted-users = [ "root" "@wheel" "dan" ];
|
||||
nix.settings.trusted-users = [
|
||||
"root"
|
||||
"@wheel"
|
||||
"dan"
|
||||
];
|
||||
|
||||
# Other defaults are set in home.nix
|
||||
# environment.sessionVariables.DEFAULT_BROWSER = "firefox";
|
||||
|
|
@ -213,9 +242,16 @@ in
|
|||
# package = unstable-pkgs.hyprland;
|
||||
};
|
||||
# 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;
|
||||
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.hyprlock.enable = true;
|
||||
|
|
@ -225,12 +261,15 @@ in
|
|||
# Fix dynamic binaries from outside of nix
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
libraries = options.programs.nix-ld.libraries.default ++ (with pkgs; [
|
||||
libraries =
|
||||
options.programs.nix-ld.libraries.default
|
||||
++ (with pkgs; [
|
||||
libdrm
|
||||
mesa
|
||||
libxkbcommon
|
||||
openssl
|
||||
libGL libva
|
||||
libGL
|
||||
libva
|
||||
libelf
|
||||
]);
|
||||
};
|
||||
|
|
@ -322,7 +361,6 @@ in
|
|||
|
||||
# lenovo-legion
|
||||
|
||||
|
||||
# required for quickshell config; needs to be here for them to be included in import/plugin path
|
||||
kdePackages.qt5compat
|
||||
kdePackages.qtdeclarative
|
||||
|
|
@ -338,7 +376,8 @@ in
|
|||
libsForQt5.kirigami2
|
||||
kdePackages.syntax-highlighting
|
||||
|
||||
(python313.withPackages(ps: with ps; [
|
||||
(python313.withPackages (
|
||||
ps: with ps; [
|
||||
build
|
||||
pillow
|
||||
cffi
|
||||
|
|
@ -358,10 +397,12 @@ in
|
|||
wheel
|
||||
|
||||
pwntools
|
||||
]))
|
||||
]
|
||||
))
|
||||
];
|
||||
|
||||
environment.variables = let
|
||||
environment.variables =
|
||||
let
|
||||
qtVersions = with pkgs; [
|
||||
qt5
|
||||
qt6
|
||||
|
|
@ -369,7 +410,9 @@ in
|
|||
in
|
||||
{
|
||||
QT_PLUGIN_PATH = map (qt: "/${qt.qtbase.qtPluginPrefix}") qtVersions;
|
||||
QML2_IMPORT_PATH = map (qt: "/${qt.qtbase.qtQmlPrefix}") qtVersions ++ (with unstable-pkgs; [
|
||||
QML2_IMPORT_PATH =
|
||||
map (qt: "/${qt.qtbase.qtQmlPrefix}") qtVersions
|
||||
++ (with unstable-pkgs; [
|
||||
"${quickshell}/lib/qt-6/qml/"
|
||||
]);
|
||||
};
|
||||
|
|
@ -417,12 +460,14 @@ in
|
|||
services.cpupower-gui.enable = true;
|
||||
services.upower.enable = true;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
# services.tlp = {
|
||||
# enable = true;
|
||||
# USB_DENYLIST = "04d9:a0b8";
|
||||
};
|
||||
# powerManagement.powertop.enable = true;
|
||||
# powerManagement.cpuFreqGovernor = "powersave";
|
||||
# };
|
||||
powerManagement.enable = true;
|
||||
powerManagement.powertop.enable = true;
|
||||
powerManagement.cpuFreqGovernor = "schedutil";
|
||||
services.thermald.enable = true;
|
||||
|
||||
security.polkit.enable = true;
|
||||
|
||||
|
|
@ -447,7 +492,8 @@ in
|
|||
5353 # Google cast discovery
|
||||
42000 # warpinator
|
||||
42001 # warpinator
|
||||
67 68 # dhcp
|
||||
67
|
||||
68 # dhcp
|
||||
1716 # kdeconnect
|
||||
];
|
||||
# Or disable the firewall altogether.
|
||||
|
|
@ -461,7 +507,6 @@ in
|
|||
services.lldpd.enable = true;
|
||||
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||
|
||||
|
||||
# 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
|
||||
|
|
@ -470,9 +515,11 @@ in
|
|||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
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 :)
|
||||
networking.extraHosts = ''
|
||||
'';
|
||||
networking.extraHosts = "";
|
||||
}
|
||||
|
|
|
|||
27
flake.lock
27
flake.lock
|
|
@ -78,6 +78,26 @@
|
|||
"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": {
|
||||
"inputs": {
|
||||
"determinate-nixd-aarch64-darwin": "determinate-nixd-aarch64-darwin",
|
||||
|
|
@ -143,11 +163,11 @@
|
|||
"quickshell": "quickshell"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1768575133,
|
||||
"narHash": "sha256-P//moH3z9r4PXirTzXVsccQINsK5AIlF9RWOBwK3vLc=",
|
||||
"lastModified": 1771347696,
|
||||
"narHash": "sha256-O9NIJqfuSjwY//7OyFH3FqxRHe5M0vmmsXcryOi/bAE=",
|
||||
"owner": "AvengeMedia",
|
||||
"repo": "DankMaterialShell",
|
||||
"rev": "a7cdb39b0b89b9af86160ad4e847a7d14ea44512",
|
||||
"rev": "dd4c41a6b2d90f3238f543d1cc54f5f062d685a6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -1201,6 +1221,7 @@
|
|||
"inputs": {
|
||||
"colmena": "colmena",
|
||||
"copyparty": "copyparty",
|
||||
"danksearch": "danksearch",
|
||||
"determinate": "determinate",
|
||||
"dms": "dms",
|
||||
"dolphin-overlay": "dolphin-overlay",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@
|
|||
url = "github:AvengeMedia/DankMaterialShell/stable";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
danksearch = {
|
||||
url = "github:AvengeMedia/danksearch";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
niri = {
|
||||
url = "github:sodiboo/niri-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
|||
37
home.nix
37
home.nix
|
|
@ -7,6 +7,7 @@
|
|||
nixpkgs-unstable, # suyu,
|
||||
hyprland-plugins, # , hyprland
|
||||
pkgs,
|
||||
danksearch,
|
||||
niri,
|
||||
inputs,
|
||||
...
|
||||
|
|
@ -19,12 +20,13 @@ let
|
|||
allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
# system = stdenv.hostPlatform.system;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
zen-browser.homeModules.beta
|
||||
dms.homeModules.dank-material-shell
|
||||
danksearch.homeModules.default
|
||||
# niri.homeManagerModules.default
|
||||
# dms.homeModules.niri
|
||||
];
|
||||
|
|
@ -32,7 +34,17 @@ in
|
|||
stateVersion = "25.11";
|
||||
|
||||
packages = with pkgs; [
|
||||
bun
|
||||
lenovo-legion
|
||||
itch
|
||||
filezilla
|
||||
nicotine-plus
|
||||
protonvpn-gui
|
||||
dgop
|
||||
mysql-workbench
|
||||
i2c-tools
|
||||
kdePackages.kimageformats
|
||||
power-profiles-daemon
|
||||
tail-tray
|
||||
steam
|
||||
helium
|
||||
|
|
@ -43,7 +55,7 @@ in
|
|||
samply
|
||||
font-awesome
|
||||
arduino-ide
|
||||
xorg.libxkbfile
|
||||
libxkbfile
|
||||
|
||||
# dioxus-cli
|
||||
cosmic-files
|
||||
|
|
@ -233,7 +245,7 @@ in
|
|||
inxi
|
||||
numbat
|
||||
wireshark
|
||||
nixfmt-rfc-style
|
||||
nixfmt
|
||||
qpwgraph
|
||||
|
||||
nixpkgs-unstable.legacyPackages.${system}.zed-editor
|
||||
|
|
@ -315,9 +327,10 @@ in
|
|||
# hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprtrails
|
||||
# ];
|
||||
};
|
||||
programs.dsearch.enable = true;
|
||||
programs.dank-material-shell = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
systemd.enable = false;
|
||||
# niri = {
|
||||
# enableKeybinds = false; # Sets static preset keybinds
|
||||
# # enableSpawn = true; # Auto-start DMS with niri, if enabled
|
||||
|
|
@ -380,23 +393,23 @@ in
|
|||
|
||||
# ];
|
||||
};
|
||||
difftastic.enable = true;
|
||||
difftastic.git.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Daniel Bulant";
|
||||
userEmail = "danbulant@gmail.com";
|
||||
difftastic.enable = true;
|
||||
signing = {
|
||||
signByDefault = true;
|
||||
key = "/home/dan/.ssh/id_ed25519";
|
||||
};
|
||||
extraConfig = {
|
||||
settings = {
|
||||
user.name = "Daniel Bulant";
|
||||
user.email = "danbulant@gmail.com";
|
||||
pull.rebase = false;
|
||||
pull.ff = "only";
|
||||
gpg.format = "ssh";
|
||||
commit.gpgsign = true;
|
||||
gpg.ssh.allowedSignersFile = "/home/dan/allowed_signers";
|
||||
};
|
||||
signing = {
|
||||
signByDefault = true;
|
||||
key = "/home/dan/.ssh/id_ed25519";
|
||||
};
|
||||
};
|
||||
gitui.enable = true;
|
||||
btop.enable = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue