renamed 'media' folder to 'assets' because it sounds cooler

This commit is contained in:
pagedmov
2024-10-21 22:03:39 -04:00
parent fe006e1004
commit 4711456fb1
45 changed files with 165 additions and 46 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 314 KiB

After

Width:  |  Height:  |  Size: 314 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 239 KiB

View File

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

View File

Before

Width:  |  Height:  |  Size: 351 KiB

After

Width:  |  Height:  |  Size: 351 KiB

View File

Before

Width:  |  Height:  |  Size: 918 KiB

After

Width:  |  Height:  |  Size: 918 KiB

View File

Before

Width:  |  Height:  |  Size: 4.6 MiB

After

Width:  |  Height:  |  Size: 4.6 MiB

View File

Before

Width:  |  Height:  |  Size: 311 KiB

After

Width:  |  Height:  |  Size: 311 KiB

View File

Before

Width:  |  Height:  |  Size: 144 KiB

After

Width:  |  Height:  |  Size: 144 KiB

View File

Before

Width:  |  Height:  |  Size: 743 KiB

After

Width:  |  Height:  |  Size: 743 KiB

View File

Before

Width:  |  Height:  |  Size: 429 KiB

After

Width:  |  Height:  |  Size: 429 KiB

62
flake.lock generated
View File

@@ -275,11 +275,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728778939, "lastModified": 1729104314,
"narHash": "sha256-WybK5E3hpGxtCYtBwpRj1E9JoiVxe+8kX83snTNaFHE=", "narHash": "sha256-pZRZsq5oCdJt3upZIU4aslS9XwFJ+/nVtALHIciX/BI=",
"owner": "cachix", "owner": "cachix",
"repo": "git-hooks.nix", "repo": "git-hooks.nix",
"rev": "ff68f91754be6f3427e4986d7949e6273659be1d", "rev": "3c3e88f0f544d6bb54329832616af7eb971b6be6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -356,11 +356,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1729260213, "lastModified": 1729459288,
"narHash": "sha256-jAvHoU/1y/yCuXzr2fNF+q6uKmr8Jj2xgAisK4QB9to=", "narHash": "sha256-gBOVJv+q6Mx8jGvwX7cE6J8+sZmi1uxpRVsO7WxvVuQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "09a0c0c02953318bf94425738c7061ffdc4cba75", "rev": "1e27f213d77fc842603628bcf2df6681d7d08f7e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -377,11 +377,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728903686, "lastModified": 1729260213,
"narHash": "sha256-ZHFrGNWDDriZ4m8CA/5kDa250SG1LiiLPApv1p/JF0o=", "narHash": "sha256-jAvHoU/1y/yCuXzr2fNF+q6uKmr8Jj2xgAisK4QB9to=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "e1aec543f5caf643ca0d94b6a633101942fd065f", "rev": "09a0c0c02953318bf94425738c7061ffdc4cba75",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -472,11 +472,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1729195555, "lastModified": 1729523354,
"narHash": "sha256-nTMzcwH5eFX2JM5Lrtw1469BRe6hGgWWxLqJBynEdvo=", "narHash": "sha256-iRLBeVWU6rbMruacoMOJ6y+mgTVMWng4T8JYnIPgsSE=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "0e630e9e74ad34683194a07cfe6afe55a2c0685f", "rev": "9df0f0b66c66706c9ce8cf9f80e834d5abfc1e96",
"revCount": 5352, "revCount": 5364,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland" "url": "https://github.com/hyprwm/Hyprland"
@@ -749,11 +749,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1729070438, "lastModified": 1729256560,
"narHash": "sha256-KOTTUfPkugH52avUvXGxvWy8ibKKj4genodIYUED+Kc=", "narHash": "sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c+cHUJwA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5785b6bb5eaae44e627d541023034e1601455827", "rev": "4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -794,11 +794,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1729196897, "lastModified": 1729530157,
"narHash": "sha256-xftdQl0kxWJZNWCDSl0pU2E7zCmGjhD/N9ZWgPXK0A0=", "narHash": "sha256-JDIlU1gr60xmgKlq2WRf9cgJytljUoErrGHvxDEnY6I=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "3c7b6ae5d1524c691a1b65f7290facd0dc296e40", "rev": "5992a2282193d0d9ef35a63610cd2ee4353dcc2d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -809,11 +809,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1729281115, "lastModified": 1729525671,
"narHash": "sha256-YaBFkGK8lBBEYM0TcX8W3Uea9Jdue+YNuCxzOG97sn0=", "narHash": "sha256-/pZSi3LBtztMfOJti72FOj3OBJvsCb1N/d9Jl5L04fI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "1d80aab638867aeada9aaabaa1f17c520918fc29", "rev": "305d127d2f03fb412de348455a3175df9e66cd04",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -889,11 +889,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1729225092, "lastModified": 1729484282,
"narHash": "sha256-qIWFU7iVs5oTA12jOgHIMlXLY+V1dbdgjt37bbXfwOI=", "narHash": "sha256-VnLaP3OH9rP/+5ZuEsETSyyKtBif5l3mNL3YOxPhBVo=",
"owner": "gerg-l", "owner": "gerg-l",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"rev": "095be8b3a9bb9ec14cbe67cc4710f5e224639da5", "rev": "7dcfbba64faedd15574e6df5d89b2bcf5bb20128",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -919,11 +919,11 @@
"tinted-tmux": "tinted-tmux" "tinted-tmux": "tinted-tmux"
}, },
"locked": { "locked": {
"lastModified": 1728900372, "lastModified": 1729380793,
"narHash": "sha256-hmG/u7qZEm7CTh1XPDi+pg4Oi0nNrv7sL8PgZDRe6wg=", "narHash": "sha256-TV6NYBUqTHI9t5fqNu4Qyr4BZUD2yGxAn3E+d5/mqaI=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "33a2eff15181e557bb6dd9d2073b90f7d218975d", "rev": "fb9399b7e2c855f42dae76a363bab28d4f24aa8d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1049,11 +1049,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1727984844, "lastModified": 1729242555,
"narHash": "sha256-xpRqITAoD8rHlXQafYZOLvUXCF6cnZkPfoq67ThN0Hc=", "narHash": "sha256-6jWSWxv2crIXmYSEb3LEVsFkCkyVHNllk61X4uhqfCs=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "4446c7a6fc0775df028c5a3f6727945ba8400e64", "rev": "d986489c1c757f6921a48c1439f19bfb9b8ecab5",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -41,7 +41,7 @@
} @ inputs: let } @ inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
username = "pagedmov"; username = "pagedmov";
wallpaper = "${self}/media/wallpapers/nord-balloons.png"; wallpaper = "${self}/assets/wallpapers/dark-waves.jpg";
base16scheme = "nord"; # can be easily changed with the chscheme script base16scheme = "nord"; # can be easily changed with the chscheme script
# Map colors from yaml to attribute set # Map colors from yaml to attribute set

View File

@@ -156,7 +156,7 @@
"super, e, exec, [float;size 45% 70%;move 10 50] kitty btop" "super, e, exec, [float;size 45% 70%;move 10 50] kitty btop"
"super, n, exec, [float;size 50% 35%;move 10 50] pavucontrol" "super, n, exec, [float;size 50% 35%;move 10 50] pavucontrol"
"super, p, exec, [float;size 25% 30%;move onscreen cursor 20 20] [ ! -f /tmp/passhelperfile ] && kitty passhelper" "super, p, exec, [float;size 25% 30%;move onscreen cursor 20 20] [ ! -f /tmp/passhelperfile ] && kitty passhelper"
"super, 0, exec, aplay ~/media/sound/soundtest.wav" "super, 0, exec, aplay ~/assets/sound/soundtest.wav"
"super shift, q, exit," "super shift, q, exit,"
"super, m, exec, fuzzel" "super, m, exec, fuzzel"
"super, r, exec, neovide" "super, r, exec, neovide"

View File

@@ -63,7 +63,7 @@
unalias ls unalias ls
ls() { ls() {
eza -1 --group-directories-first --icons "$@" eza -1 --group-directories-first --icons "$@"
scheck && runbg aplay ${self}/media/sound/ls.wav scheck && runbg aplay ${self}/assets/sound/ls.wav
} }
y() { y() {
@@ -80,7 +80,7 @@
eza -1 --group-directories-first --icons "$@" eza -1 --group-directories-first --icons "$@"
builtin cd "$@" || exit builtin cd "$@" || exit
export SOUNDS_ENABLED=1 export SOUNDS_ENABLED=1
scheck && runbg aplay ${self}/media/sound/cd.wav scheck && runbg aplay ${self}/assets/sound/cd.wav
} }
if [ ! -e $HOME/.zsh_history ]; then if [ ! -e $HOME/.zsh_history ]; then
touch $HOME/.zsh_history touch $HOME/.zsh_history
@@ -126,7 +126,7 @@
unalias ls unalias ls
clear clear
splash splash
scheck && runbg aplay ${self}/media/sound/sh-source.wav scheck && runbg aplay ${self}/assets/sound/sh-source.wav
''; '';
}; };
} }

View File

@@ -51,7 +51,7 @@ in {
}; };
}; };
security.sudo.extraConfig = '' security.sudo.extraConfig = ''
${username} ALL=(ALL) NOPASSWD: /etc/profiles/per-user/pagedmov/bin/rebuild ${username} ALL=(ALL) NOPASSWD: /etc/profiles/per-user/${username}/bin/rebuild
''; '';
nix.settings.allowed-users = ["${username}"]; nix.settings.allowed-users = ["${username}"];
} }

View File

@@ -1,7 +1,7 @@
{...}: { {username, ...}: {
programs.git = { programs.git = {
enable = true; enable = true;
userEmail = "pagedmov@gmail.com"; userEmail = "${username}@gmail.com";
userName = "pagedmov"; userName = "${username}";
}; };
} }

View File

@@ -0,0 +1,118 @@
{
self,
pkgs,
...
}:
{
home.file.".config/neofetch/config".text = ''
username=$(whoami)
name_length=''${#username}
total_width=40
side_length=$(( (total_width - name_length - 2) / 2 ))
top_line=$(printf "%.0s" $(seq 1 $side_length))
top_line="$top_line $username "
top_line+=$(printf "%.0s" $(seq 1 $side_length))
if (( (total_width - name_length) % 2 != 0 )); then
top_line+=""
fi
print_info() {
prin "$top_line"
info " " distro
info " " kernel
info " " wm
info " " shell
info " " term
info " " term_font
info " 󰏗 " packages
prin ""
info cols
prin "\n \n \n \n \n ''${cl3} \n \n ''${cl5} \n \n ''${cl2} \n \n ''${cl6} \n \n ''${cl4} \n \n ''${cl1} \n \n ''${cl7} \n \n ''${cl0}"
}
kernel_shorthand="on"
distro_shorthand="on"
os_arch="off"
uptime_shorthand="on"
memory_percent="on"
package_managers="off"
shell_path="off"
shell_version="on"
speed_type="bios_limit"
speed_shorthand="on"
gtk_shorthand="on"
gtk2="on"
gtk3="on"
colors=(distro)
bold="on"
underline_enabled="on"
underline_char="-"
separator=" "
color_blocks="off"
block_range=(0 15) # Colorblocks
# Colors for custom colorblocks
magenta="\033[1;35m"
green="\033[1;32m"
white="\033[1;37m"
blue="\033[1;34m"
red="\033[1;31m"
black="\033[1;40;30m"
yellow="\033[1;33m"
cyan="\033[1;36m"
reset="\033[0m"
bgyellow="\033[1;43;33m"
bgwhite="\033[1;47;37m"
cl0="''${reset}"
cl1="''${magenta}"
cl2="''${green}"
cl3="''${white}"
cl4="''${blue}"
cl5="''${red}"
cl6="''${yellow}"
cl7="''${cyan}"
cl8="''${black}"
cl9="''${bgyellow}"
cl10="''${bgwhite}"
block_width=4
block_height=1
bar_char_elapsed="-"
bar_char_total="="
bar_border="on"
bar_length=15
bar_color_elapsed="distro"
bar_color_total="distro"
cpu_display="on"
memory_display="on"
battery_display="on"
disk_display="on"
image_backend="kitty"
image_source="${self}/assets/images/nixos-logo.png"
image_size="250px"
image_loop="off"
aascii_distro="auto"
ascii_colors=(distro)
ascii_bold="on"
crop_mode="normal"
crop_offset="center"
gap=2
yoffset=0
xoffset=0
stdout="off"
'';
movfetch = pkgs.writeShellScriptBin "movfetch" ''
neofetch --config $HOME/.config/neofetch/config
'';
}

View File

@@ -14,6 +14,7 @@ pkgs.writeShellScriptBin "chscheme" ''
printf "\033[48;2;%d;%d;%dm %-20s %s \033[0m\n" $r $g $b $key $clean_value; \ printf "\033[48;2;%d;%d;%dm %-20s %s \033[0m\n" $r $g $b $key $clean_value; \
fi; \ fi; \
done' | xargs -I {} sed -i '/base16scheme \=/s/\".*\"/\"{}\"/' "$HOME"/.sysflake/flake.nix && \ done' | xargs -I {} sed -i '/base16scheme \=/s/\".*\"/\"{}\"/' "$HOME"/.sysflake/flake.nix && \
[[ $? -ne 0 ]] && echo "Aborting color scheme change." && exit 0
echo "Successfully changed system color scheme. Rebuild now?" && \ echo "Successfully changed system color scheme. Rebuild now?" && \
select choice in "Yes" "No"; do select choice in "Yes" "No"; do
case $choice in case $choice in

View File

@@ -10,7 +10,7 @@ pkgs.writeShellScriptBin "garbage-collect" ''
echo -e "\033[1;4;38;2;243;139;168mThis process is irreversible.\033[0m Are you sure?" echo -e "\033[1;4;38;2;243;139;168mThis process is irreversible.\033[0m Are you sure?"
select yn in "Yes" "No"; do select yn in "Yes" "No"; do
case $yn in case $yn in
Yes ) echo "Sweeping system...";scheck && runbg aplay "$HOME/media/sound/sys/collectgarbage.wav";break;; Yes ) echo "Sweeping system...";scheck && runbg aplay "$HOME/assets/sound/sys/collectgarbage.wav";break;;
No ) echo "Canceling garbage collection."; return;; No ) echo "Canceling garbage collection."; return;;
esac esac
done done
@@ -28,5 +28,5 @@ pkgs.writeShellScriptBin "garbage-collect" ''
fi fi
total_freed=$(echo "$nix_freed + $rm_freed" | bc) total_freed=$(echo "$nix_freed + $rm_freed" | bc)
echo -e "System cleaning complete, freed \033[1;4;38;2;166;227;161m$total_freed MiB\033[0m in total" echo -e "System cleaning complete, freed \033[1;4;38;2;166;227;161m$total_freed MiB\033[0m in total"
scheck && runbg aplay "$HOME/media/sound/sys/rm.wav" scheck && runbg aplay "$HOME/assets/sound/sys/rm.wav"
'' ''

View File

@@ -6,13 +6,13 @@
pkgs.writeShellScriptBin "rebuild" '' pkgs.writeShellScriptBin "rebuild" ''
#!/run/current-system/sw/bin/bash #!/run/current-system/sw/bin/bash
scheck && runbg aplay ${self}/media/sound/nixswitch-start.wav scheck && runbg aplay ${self}/assets/sound/nixswitch-start.wav
set -e set -e
nh os switch -H ${host} $HOME/.sysflake nh os switch -H ${host} $HOME/.sysflake
sudo nixos-rebuild switch --flake "$HOME/.sysflake#${host}" sudo nixos-rebuild switch --flake "$HOME/.sysflake#${host}"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
scheck && runbg aplay ${self}/media/sound/update.wav scheck && runbg aplay ${self}/assets/sound/update.wav
else else
scheck && runbg aplay ${self}/media/sound/error.wav scheck && runbg aplay ${self}/assets/sound/error.wav
fi fi
'' ''

View File

@@ -12,7 +12,7 @@
image = wallpaper; image = wallpaper;
polarity = "dark"; polarity = "dark";
autoEnable = true; autoEnable = true;
opacity.terminal = 0.95; opacity.terminal = 0.30;
targets = { targets = {
console.enable = true; console.enable = true;
feh.enable = true; feh.enable = true;