Compare commits

..

No commits in common. "820d6448469e97ad7668c229eb855f7ac2530b9d" and "78614bccb93d92ecb94c583fb2ba522fa5e0b916" have entirely different histories.

10 changed files with 7 additions and 41 deletions

View File

@ -42,11 +42,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1693028636,
"narHash": "sha256-WOG42JO/yyvgYK3jQktDEy2qtZI7R+s3Lo4Y9gBr6XM=",
"lastModified": 1692808169,
"narHash": "sha256-x9Opq06rIiwdwGeK2Ykj69dNc2IvUH1fY55Wm7atwrE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e61ea96d43505ba0d2c066134eb9d67cadfddce7",
"rev": "9201b5ff357e781bf014d0330d18555695df7ba8",
"type": "github"
},
"original": {

View File

@ -2,8 +2,6 @@
let
packages = ps: with ps; [
numpy
matplotlib
tkinter
pillow
psycopg

View File

@ -2,9 +2,6 @@
{
programs.yt-dlp.enable = true;
home.packages = with pkgs; [
flac
];
home.file.".local/bin/ytdlp-music" = {
source = ./yt-dlp/ytdlp-music.sh;

View File

@ -1,24 +1,6 @@
#!/usr/bin/env sh
printf "YT URL: " && read url
printf "Title: " && read title
printf "Artist: " && read artist
echo "Name:" && read name
echo "URL:" && read url
# Download file from youtube
yt-dlp -x --no-playlist --embed-thumbnail --no-embed-metadata --audio-quality 0 --audio-format flac -o "$title.flac" "$url"
# Set metadata flags
metaflac --set-tag="TITLE=$title" --set-tag="ARTIST=$artist" "$title.flac"
# Export thumbnail
metaflac --export-picture-to="$title.png" "$title.flac"
# Convert png to jpg
mogrify -format jpg "$title.png"
rm -rf "$title.png"
# Convert to square
convert "$title.jpg" -gravity center -crop 1:1 "$title.jpg"
# Move the files to the correct directory
mv "$title.flac" "$title.jpg" $HOME/Music/iPod
yt-dlp -x --no-playlist --embed-thumbnail --no-embed-metadata --audio-quality 0 --audio-format flac -o "$name" "$url"

0
maddie/nixos/dmenu/dmenu-code Normal file → Executable file
View File

0
maddie/nixos/dmenu/dmenu-man Normal file → Executable file
View File

View File

@ -7,20 +7,11 @@
];
# Setup bootloader
boot.loader.systemd-boot = {
enable = true;
consoleMode = "max";
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.initrd.systemd.enable = true;
# Plymouth
boot.plymouth = {
enable = true;
#logo = ./plymouth/logo.png;
};
# Setup crypto keyfile
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;

View File

@ -4,7 +4,6 @@
fonts.packages = with pkgs; [
nerdfonts
font-awesome
source-sans
source-han-sans
source-han-serif
source-han-code-jp

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

View File

@ -57,7 +57,6 @@
# Learning
"anki"
"obsidian"
# Tools
"boop"