aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2021-04-11 14:11:54 +0530
committerAkshay Nair <phenax5@gmail.com>2021-04-11 14:11:54 +0530
commitc170e9f364cb057583e8c50f7a4b5a20c1ec0156 (patch)
tree638c39664a4499e0fa3c251721998965fcfc34cc /modules
parent11a7511e208dae9ad1519cc1dfe65dcff015ee7b (diff)
downloadnixos-config-c170e9f364cb057583e8c50f7a4b5a20c1ec0156.tar.gz
nixos-config-c170e9f364cb057583e8c50f7a4b5a20c1ec0156.zip
Adds nix config changes
Diffstat (limited to 'modules')
-rw-r--r--modules/git.home.nix4
-rw-r--r--modules/music.home.nix51
2 files changed, 31 insertions, 24 deletions
diff --git a/modules/git.home.nix b/modules/git.home.nix
index 440a7d5..0d1b792 100644
--- a/modules/git.home.nix
+++ b/modules/git.home.nix
@@ -17,6 +17,9 @@
"color" = {
"ui" = true;
};
+ "init" = {
+ defaultBranch = "main";
+ };
"color \"diff-highlight\"" = {
oldNormal = "red bold";
oldHighlight = "red bold 52";
@@ -31,6 +34,7 @@
new = "green bold";
whitespace = "red reverse";
};
+ #"pull" = { rebase = true; };
};
#signing.key = "GPG-KEY-ID";
#signing.signByDefault = true;
diff --git a/modules/music.home.nix b/modules/music.home.nix
index b7cc0d6..8c5fbcc 100644
--- a/modules/music.home.nix
+++ b/modules/music.home.nix
@@ -7,14 +7,16 @@
musicDirectory = "${config.home.homeDirectory}/Downloads/music";
playlistDirectory = "${config.home.homeDirectory}/Downloads/music/playlist";
network = {
- listenAddress = "0.0.0.0";
+ listenAddress = "127.0.0.1";
port = 6600;
};
extraConfig = ''
+ user "imsohexy"
+ group "users"
restore_paused "yes"
metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
auto_update "yes"
- auto_update_depth "3"
+ auto_update_depth "5"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
input {
@@ -26,10 +28,10 @@
device "hw:0,0"
}
audio_output {
- type "fifo"
- name "my_fifo"
- path "/tmp/mpd.fifo"
- format "44100:16:2"
+ type "fifo"
+ name "my_fifo"
+ path "/tmp/mpd.fifo"
+ format "44100:16:2"
}
filesystem_charset "UTF-8"
'';
@@ -80,23 +82,24 @@
bindings = with builtins; let
toBinding = s: let get = elemAt s; in { key = get 0; command = get 1; };
- in map toBinding [
- ["h" ["previous_column" "master_screen" "jump_to_parent_directory"]]
- ["l" ["next_column" "slave_screen" "enter_directory"]]
- ["k" "scroll_up"]
- ["j" "scroll_down"]
- ["g" "page_up"]
- ["G" "page_down"]
- ["d" "delete_playlist_items"]
- ["n" "next_found_item"]
- ["N" "previous_found_item"]
- ["P" "show_playlist_editor"]
- ["B" "show_browser"]
- ["s" "show_search_engine"]
- ["S" "show_search_engine"]
- ["ctrl-s" "save_playlist"]
- ["c" "clear_main_playlist"]
- ["ctrl-l" "show_lyrics"]
- ];
+ in
+ map toBinding [
+ [ "h" [ "previous_column" "master_screen" "jump_to_parent_directory" ] ]
+ [ "l" [ "next_column" "slave_screen" "enter_directory" ] ]
+ [ "k" "scroll_up" ]
+ [ "j" "scroll_down" ]
+ [ "g" "page_up" ]
+ [ "G" "page_down" ]
+ [ "d" "delete_playlist_items" ]
+ [ "n" "next_found_item" ]
+ [ "N" "previous_found_item" ]
+ [ "P" "show_playlist_editor" ]
+ [ "B" "show_browser" ]
+ [ "s" "show_search_engine" ]
+ [ "S" "show_search_engine" ]
+ [ "ctrl-s" "save_playlist" ]
+ [ "c" "clear_main_playlist" ]
+ [ "ctrl-l" "show_lyrics" ]
+ ];
};
}