minor adjustmenets

feat/kile-v2
Ricard Illa 2022-01-18 10:58:57 +01:00
parent 87613bd62a
commit cb66f2bb4c
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
4 changed files with 8 additions and 6 deletions

View File

@ -31,7 +31,7 @@ in {
# Use a custom configuration.nix location. # Use a custom configuration.nix location.
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
# environment.darwinConfig = "$HOME/configs/nix/darwin-configuration.nix"; environment.darwinConfig = "/Users/rilla/configs/nix-config/echidna.nix";
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;

View File

@ -1,6 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ let musicDir = "${config.home.homeDirectory}/Music";
in {
home.packages = [ pkgs.mpc_cli ]; home.packages = [ pkgs.mpc_cli ];
programs.ncmpcpp = { programs.ncmpcpp = {
@ -21,7 +22,7 @@
{ key = "ctrl-u"; command = "page_up"; } { key = "ctrl-u"; command = "page_up"; }
{ key = "ctrl-d"; command = "page_down"; } { key = "ctrl-d"; command = "page_down"; }
]; ];
mpdMusicDir = "${config.home.homeDirectory}/music"; mpdMusicDir = musicDir;
settings = { settings = {
autocenter_mode = "yes"; autocenter_mode = "yes";
follow_now_playing_lyrics = "yes"; follow_now_playing_lyrics = "yes";

View File

@ -1,11 +1,12 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ let musicDir = "${config.home.homeDirectory}/Music";
in {
imports = [ ./common.nix ]; imports = [ ./common.nix ];
home.packages = [ pkgs.mpc_cli ]; home.packages = [ pkgs.mpc_cli ];
services.mpd = { services.mpd = {
enable = true; enable = true;
musicDirectory = "${config.home.homeDirectory}/music"; musicDirectory = musicDir;
network = { network = {
listenAddress = "any"; listenAddress = "any";
port = 6600; port = 6600;

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
musicDir = "${config.home.homeDirectory}/shared/music"; musicDir = "${config.home.homeDirectory}/Music";
mpdDir = "${config.home.homeDirectory}/.mpd"; mpdDir = "${config.home.homeDirectory}/.mpd";
in { in {
imports = [ ./common.nix ]; imports = [ ./common.nix ];