This commit is contained in:
joy 2024-11-23 15:30:03 +01:00
parent a9e52914ef
commit 8da40bac23
11 changed files with 28 additions and 50 deletions

View file

@ -13,7 +13,7 @@
username = "joy"; username = "joy";
domain = "joygnu.org"; domain = "joygnu.org";
mail = "mail@joygnu.org"; mail = "mail@joygnu.org";
nixpath = "nix/"; nixpath = "~/nix";
pkgs-stable = nixpkgs-stable.legacyPackages.x86_64-linux; pkgs-stable = nixpkgs-stable.legacyPackages.x86_64-linux;
nixosconf = {modules}: nixosconf = {modules}:

View file

@ -8,8 +8,8 @@
customPkgs = customPkgs =
pkgs pkgs
// { // {
noriskclient = pkgs.appimageTools.wrapType1 { no-risk-client = pkgs.appimageTools.wrapType1 {
name = "noriskclient"; name = "no-risk-client";
version = "0.5.13"; version = "0.5.13";
src = pkgs.fetchurl { src = pkgs.fetchurl {
@ -23,14 +23,14 @@
in { in {
config = lib.mkIf config.games.enable { config = lib.mkIf config.games.enable {
environment.systemPackages = [ environment.systemPackages = [
customPkgs.noriskclient customPkgs.no-risk-client
]; ];
home-manager.users.${username}.xdg = { home-manager.users.${username}.xdg = {
desktopEntries = { desktopEntries = {
NoRiskClient = { no-risk-client = {
name = "NoRisk Client"; name = "no-risk-client";
exec = "noriskclient"; exec = "no-risk-client";
icon = pkgs.fetchurl { icon = pkgs.fetchurl {
url = iconurl; url = iconurl;
sha256 = iconsha256; sha256 = iconsha256;

View file

@ -13,5 +13,6 @@
systemd.packages = with pkgs; [lact]; systemd.packages = with pkgs; [lact];
systemd.services.lactd.wantedBy = ["multi-user.target"]; systemd.services.lactd.wantedBy = ["multi-user.target"];
hardware.amdgpu.initrd.enable = true; hardware.amdgpu.initrd.enable = true;
hardware.graphics.enable = true;
}; };
} }

View file

@ -1,4 +1,4 @@
{lib, ...}: { {
programs.bat = { programs.bat = {
enable = true; enable = true;
}; };

View file

@ -22,25 +22,7 @@
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
texlab
texliveFull
nil nil
clang-tools
javascript-typescript-langserver
vscode-langservers-extracted
rust-analyzer
lldb_18
lua-language-server
jdt-language-server
gopls
dockerfile-language-server-nodejs
python312Packages.python-lsp-server
omnisharp-roslyn
dotnetCorePackages.dotnet_8.sdk
go
marksman
pandoc pandoc
multimarkdown
# md2pdf
]; ];
} }

View file

@ -17,19 +17,17 @@
shellAliases = { shellAliases = {
cn = "cd ~/nix"; cn = "cd ~/nix";
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first"; ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
v = "hx"; v = "${pkgs.helix}/bin/hx";
cat = "bat"; cat = "${pkgs.bat}/bin/bat";
lg = "${pkgs.lazygit}/bin/lazygit"; lg = "${pkgs.lazygit}/bin/lazygit";
rs = "z ~ && ssh root@45.145.42.193"; rs = "z ~ && ssh root@45.145.42.193";
hs = "z ~ && ssh ${username}@${domain}"; hs = "z ~ && ssh ${username}@${domain}";
su = "z ~ && su"; su = "z ~ && su";
ip = "sh ~/${nixpath}modules/programs/zsh/scripts/ip.sh"; ip = "sh ${nixpath}/modules/programs/zsh/scripts/ip.sh";
rb = "sh ~/${nixpath}modules/programs/zsh/scripts/rebuild.sh"; rb = "sh ${nixpath}/modules/programs/zsh/scripts/rebuild.sh";
fr = "doas systemctl reboot --firmware"; fr = "doas systemctl reboot --firmware";
up = "nix flake update --flake ~/${nixpath}"; up = "nix flake update --flake ${nixpath}";
del = "doas nix-collect-garbage -d"; del = "doas nix-collect-garbage -d";
dn = "dotnet new console";
dr = "dotnet run";
}; };
oh-my-zsh = { oh-my-zsh = {

View file

@ -6,5 +6,4 @@
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
services.xserver.excludePackages = [pkgs.xterm]; services.xserver.excludePackages = [pkgs.xterm];
programs.nano.enable = false; programs.nano.enable = false;
programs.java.enable = true;
} }

View file

@ -1,4 +1,8 @@
{pkgs, ...}: let {
pkgs,
config,
...
}: let
gruvboxPlus = import ./gruvbox-plus.nix {inherit pkgs;}; gruvboxPlus = import ./gruvbox-plus.nix {inherit pkgs;};
in { in {
home.file = { home.file = {
@ -9,5 +13,6 @@ in {
enable = true; enable = true;
iconTheme.package = gruvboxPlus; iconTheme.package = gruvboxPlus;
iconTheme.name = "GruvboxPlus"; iconTheme.name = "GruvboxPlus";
gtk2.configLocation = "${config.home.homeDirectory}/.config/gtk-2.0/gtkrc";
}; };
} }

View file

@ -1,13 +1,9 @@
{ {
pkgs, pkgs,
config,
lib, lib,
... ...
}: { }: {
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprpicker
playerctl
rofimoji
pwvucontrol pwvucontrol
pulseaudioFull pulseaudioFull
sent sent
@ -19,7 +15,6 @@
boxbuddy boxbuddy
ferdium ferdium
drawio drawio
distrobox
obs-studio obs-studio
transmission_4-gtk transmission_4-gtk
gnome-clocks gnome-clocks
@ -29,7 +24,6 @@
kdePackages.kdenlive kdePackages.kdenlive
sqlitebrowser sqlitebrowser
]; ];
gtk.gtk2.configLocation = "${config.home.homeDirectory}/.config/gtk-2.0/gtkrc";
xresources.path = ".config/.Xresources"; xresources.path = ".config/.Xresources";
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [

View file

@ -6,7 +6,7 @@
programs.rofi = { programs.rofi = {
enable = true; enable = true;
package = pkgs.rofi-wayland; package = pkgs.rofi-wayland;
theme = "~/${nixpath}modules/wm/home/rofi/gruvbox-material.rasi"; theme = "${nixpath}/modules/wm/home/rofi/gruvbox-material.rasi";
extraConfig = { extraConfig = {
display-drun = ""; display-drun = "";
show-icons = true; show-icons = true;

View file

@ -13,7 +13,7 @@
enable = true; enable = true;
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
"$sciPath" = "~/${nixpath}modules/wm/hyprland/scripts"; "$sciPath" = "${nixpath}/modules/wm/hyprland/scripts";
cursor = { cursor = {
inactive_timeout = "3"; inactive_timeout = "3";
}; };
@ -81,14 +81,13 @@
"$mod, M, exec, mbsync -a && foot -e neomutt" "$mod, M, exec, mbsync -a && foot -e neomutt"
"$mod, N, exec, foot -e newsboat" "$mod, N, exec, foot -e newsboat"
"$mod, A, exec, rofi -show drun" "$mod, A, exec, rofi -show drun"
"$mod, F, exec, freetube" "$mod, C, exec, ${pkgs.hyprpicker}/bin/hyprpicker -a"
"$mod, C, exec, hyprpicker -a" "$mod+Shift, Z, exec, ${pkgs.grim}/bin/grim - | ${pkgs.swappy}/bin/swappy -f -"
"$mod+Shift, Z, exec, grim - | swappy -f -"
''$mod,T, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.tesseract}/bin/tesseract - stdout -l deu --psm 6 | wl-copy'' ''$mod,T, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.tesseract}/bin/tesseract - stdout -l deu --psm 6 | wl-copy''
''$mod,Z, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.swappy}/bin/swappy -f -'' ''$mod,Z, exec, ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" - | ${pkgs.swappy}/bin/swappy -f -''
"$mod, V, exec, cliphist list | rofi show -dmenu | cliphist decode | wl-copy" "$mod, V, exec, cliphist list | rofi show -dmenu | cliphist decode | wl-copy"
"$mod, O, exec, sh $sciPath/mpv.sh" "$mod, O, exec, sh $sciPath/mpv.sh"
"$mod, B, exec, rofimoji" "$mod, B, exec, ${pkgs.rofimoji}/bin/rofimoji"
"$mod, F, exec, foot -e hx" "$mod, F, exec, foot -e hx"
# controls # controls
"$mod, Q, killactive" "$mod, Q, killactive"
@ -103,9 +102,9 @@
"$mod, P, exec, hyprctl dispatch togglefloating && hyprctl dispatch resizeactive exact 854 480 && hyprctl dispatch movewindow d && hyprctl dispatch movewindow r && hyprctl dispatch pin" "$mod, P, exec, hyprctl dispatch togglefloating && hyprctl dispatch resizeactive exact 854 480 && hyprctl dispatch movewindow d && hyprctl dispatch movewindow r && hyprctl dispatch pin"
# cmus # cmus
"$mod, D, exec, [float; pin; size 80% 80%;] sh $sciPath/cmus.sh" "$mod, D, exec, [float; pin; size 80% 80%;] sh $sciPath/cmus.sh"
"$mod, space, exec, playerctl play-pause" "$mod, space, exec, ${pkgs.playerctl}/bin/playerctl play-pause"
"$mod, comma, exec, playerctl previous" "$mod, comma, exec, ${pkgs.playerctl}/bin/playerctl previous"
"$mod, period, exec, playerctl next" "$mod, period, exec, ${pkgs.playerctl}/bin/playerctl next"
"$mod, equal, exec, cmus-remote -v +10%" "$mod, equal, exec, cmus-remote -v +10%"
"$mod, minus, exec, cmus-remote -v -10%" "$mod, minus, exec, cmus-remote -v -10%"
# Move focus # Move focus