Compare commits
2 commits
f77f518349
...
0853afd06e
Author | SHA1 | Date | |
---|---|---|---|
|
0853afd06e | ||
|
a46628ace4 |
|
@ -54,37 +54,25 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PasswordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
|
services.mpd = {
|
||||||
|
enable = true;
|
||||||
|
user = "tacocat";
|
||||||
|
musicDirectory = "/data/music";
|
||||||
|
startWhenNeeded = true;
|
||||||
|
extraConfig = ''
|
||||||
|
audio_output {
|
||||||
|
type "pipewire"
|
||||||
|
name "Pipewire sound server"
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
systemd.services.mpd.environment = {
|
||||||
|
# https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
|
||||||
|
XDG_RUNTIME_DIR = "/run/user/1000";
|
||||||
|
# User-id must match above user. MPD will look inside this directory for
|
||||||
|
# the PipeWire socket.
|
||||||
|
};
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
services.udev.packages = [
|
|
||||||
(pkgs.writeTextFile {
|
|
||||||
name = "xilinx-dilligent-usb-udev";
|
|
||||||
destination = "/etc/udev/rules.d/52-xilinx-digilent-usb.rules";
|
|
||||||
text = ''
|
|
||||||
ATTR{idVendor}=="1443", MODE:="666"
|
|
||||||
ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Digilent", MODE:="666"
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
(pkgs.writeTextFile {
|
|
||||||
name = "xilinx-pcusb-udev";
|
|
||||||
destination = "/etc/udev/rules.d/52-xilinx-pcusb.rules";
|
|
||||||
text = ''
|
|
||||||
ATTR{idVendor}=="03fd", ATTR{idProduct}=="0008", MODE="666"
|
|
||||||
ATTR{idVendor}=="03fd", ATTR{idProduct}=="0007", MODE="666"
|
|
||||||
ATTR{idVendor}=="03fd", ATTR{idProduct}=="0009", MODE="666"
|
|
||||||
ATTR{idVendor}=="03fd", ATTR{idProduct}=="000d", MODE="666"
|
|
||||||
ATTR{idVendor}=="03fd", ATTR{idProduct}=="000f", MODE="666"
|
|
||||||
ATTR{idVendor}=="03fd", ATTR{idProduct}=="0013", MODE="666"
|
|
||||||
ATTR{idVendor}=="03fd", ATTR{idProduct}=="0015", MODE="666"
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
(pkgs.writeTextFile {
|
|
||||||
name = "xilinx-ftdi-usb-udev";
|
|
||||||
destination = "/etc/udev/rules.d/52-xilinx-ftdi-usb.rules";
|
|
||||||
text = ''
|
|
||||||
ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Xilinx", MODE:="666"
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
];
|
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
# 0d28:0204 DAPLink
|
# 0d28:0204 DAPLink
|
||||||
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", MODE:="666"
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", MODE:="666"
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
];
|
];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
fd
|
fd
|
||||||
|
mpc-cli
|
||||||
texliveFull
|
texliveFull
|
||||||
ripgrep
|
ripgrep
|
||||||
matlab
|
matlab
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
./tiny.nix
|
./tiny.nix
|
||||||
./radioboat.nix
|
./radioboat.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
./ncmpcpp.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
|
|
13
users/tacocat/programs/ncmpcpp.nix
Normal file
13
users/tacocat/programs/ncmpcpp.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{...}: {
|
||||||
|
programs.ncmpcpp = {
|
||||||
|
enable = true;
|
||||||
|
bindings = [
|
||||||
|
{ key = "j"; command = "scroll_down"; }
|
||||||
|
{ key = "k"; command = "scroll_up"; }
|
||||||
|
{ key = "J"; command = [ "select_item" "scroll_down" ]; }
|
||||||
|
{ key = "K"; command = [ "select_item" "scroll_up" ]; }
|
||||||
|
];
|
||||||
|
mpdMusicDir = "/data/music";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue