restructure
This commit is contained in:
		@@ -1,8 +0,0 @@
 | 
				
			|||||||
{ config, ... }:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  powerManagement = {
 | 
					 | 
				
			||||||
    enable = true;
 | 
					 | 
				
			||||||
    cpuFreqGovernor = "ondemand";
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -26,7 +26,7 @@
 | 
				
			|||||||
#        useOSProber = true;
 | 
					#        useOSProber = true;
 | 
				
			||||||
        efiSupport =  true;
 | 
					        efiSupport =  true;
 | 
				
			||||||
        device = "nodev";
 | 
					        device = "nodev";
 | 
				
			||||||
        splashImage = "/etc/cirno.png"; #hehe
 | 
					        splashImage = ../modules/cirno.png;
 | 
				
			||||||
        splashMode = "stretch";
 | 
					        splashMode = "stretch";
 | 
				
			||||||
        configurationName = "nixbruh";
 | 
					        configurationName = "nixbruh";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,13 +0,0 @@
 | 
				
			|||||||
{ lib, config, ...}:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  imports =
 | 
					 | 
				
			||||||
    [
 | 
					 | 
				
			||||||
      ./hardware.nix
 | 
					 | 
				
			||||||
      ./stuff.nix
 | 
					 | 
				
			||||||
      ./pkgs.nix
 | 
					 | 
				
			||||||
      ./networking.nix
 | 
					 | 
				
			||||||
      ./boot.nix
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
  system.stateVersion = "20.09";
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -4,14 +4,12 @@
 | 
				
			|||||||
  imports =
 | 
					  imports =
 | 
				
			||||||
    [
 | 
					    [
 | 
				
			||||||
      (modulesPath + "/installer/scan/not-detected.nix")
 | 
					      (modulesPath + "/installer/scan/not-detected.nix")
 | 
				
			||||||
      ./Hardware/power.nix
 | 
					 | 
				
			||||||
      ./Hardware/graphicshit.nix
 | 
					 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  fileSystems."/" =
 | 
					  fileSystems."/" =
 | 
				
			||||||
    { device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047";
 | 
					    { device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047";
 | 
				
			||||||
      fsType = "btrfs";
 | 
					      fsType = "btrfs";
 | 
				
			||||||
      options = ["compress=zstd:9"];
 | 
					      options = ["compress=zstd:15"];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  fileSystems."/boot/efi" =
 | 
					  fileSystems."/boot/efi" =
 | 
				
			||||||
@@ -46,4 +44,8 @@
 | 
				
			|||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  swapDevices = [ {device = "/dev/nvme0n1p7";} ];
 | 
					  swapDevices = [ {device = "/dev/nvme0n1p7";} ];
 | 
				
			||||||
 | 
					  powerManagement = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    cpuFreqGovernor = "powersave";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,17 +1,16 @@
 | 
				
			|||||||
{lib, config, agenix, ... }:
 | 
					{lib, config, agenix, pkgs, ... }:
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  imports = [
 | 
					  imports = [
 | 
				
			||||||
    ./Stuff/sound.nix
 | 
					 | 
				
			||||||
    ./Stuff/fonts.nix
 | 
					    ./Stuff/fonts.nix
 | 
				
			||||||
    ./Stuff/users.nix
 | 
					    ./Stuff/users.nix
 | 
				
			||||||
    ./Stuff/services.nix
 | 
					    ./Stuff/services.nix
 | 
				
			||||||
    ./Stuff/xorg.nix
 | 
					 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  time.timeZone = "Asia/Kolkata";
 | 
					  time.timeZone = "Asia/Kolkata";
 | 
				
			||||||
  environment = {
 | 
					  environment = {
 | 
				
			||||||
    sessionVariables = {
 | 
					    sessionVariables = {
 | 
				
			||||||
      QT_X11_NO_MITSHM="1";
 | 
					      QT_X11_NO_MITSHM="1";
 | 
				
			||||||
      EDITOR = "nvim";
 | 
					      EDITOR = "nvim";
 | 
				
			||||||
 | 
					      QT_QPA_PLATFORMTHEME = "gtk3";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  security={
 | 
					  security={
 | 
				
			||||||
@@ -31,6 +30,8 @@
 | 
				
			|||||||
    automatic = false;
 | 
					    automatic = false;
 | 
				
			||||||
    dates = "20:15";
 | 
					    dates = "20:15";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  nixpkgs.config.allowUnfree = true;
 | 
					  nixpkgs.config = {
 | 
				
			||||||
  nixpkgs.config.allowBroken = true;
 | 
					    allowUnfree = true;
 | 
				
			||||||
 | 
					    allowBroken = true;
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										15
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								flake.nix
									
									
									
									
									
								
							@@ -1,5 +1,4 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
 | 
					 | 
				
			||||||
  inputs = {
 | 
					  inputs = {
 | 
				
			||||||
    stable.url = github:nixos/nixpkgs/nixos-20.09;
 | 
					    stable.url = github:nixos/nixpkgs/nixos-20.09;
 | 
				
			||||||
    nixpkgs.url = github:nixos/nixpkgs/nixos-unstable;
 | 
					    nixpkgs.url = github:nixos/nixpkgs/nixos-unstable;
 | 
				
			||||||
@@ -14,11 +13,11 @@
 | 
				
			|||||||
    agenix.url = github:ryantm/agenix;
 | 
					    agenix.url = github:ryantm/agenix;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  outputs = {self, nixpkgs, stable, home-manager, nur, agenix, ... }:
 | 
					  outputs = inputs@{self, nixpkgs, ... }:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  let
 | 
					  let
 | 
				
			||||||
    system = "x86_64-linux";
 | 
					    system = "x86_64-linux";
 | 
				
			||||||
    ov = (builtins.attrValues self.overlays) ++ [ nur.overlay ];
 | 
					    ov = (builtins.attrValues self.overlays) ++ [ inputs.nur.overlay ];
 | 
				
			||||||
  in
 | 
					  in
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    overlays = {
 | 
					    overlays = {
 | 
				
			||||||
@@ -27,7 +26,7 @@
 | 
				
			|||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    hm-configs = {
 | 
					    hm-configs = {
 | 
				
			||||||
      natto = home-manager.lib.homeManagerConfiguration {
 | 
					      natto = inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
        configuration = { pkgs, lib, ... }: {
 | 
					        configuration = { pkgs, lib, ... }: {
 | 
				
			||||||
          imports = [ 
 | 
					          imports = [ 
 | 
				
			||||||
            ./home/natto.nix 
 | 
					            ./home/natto.nix 
 | 
				
			||||||
@@ -43,14 +42,14 @@
 | 
				
			|||||||
    nixosConfigurations.Satori = nixpkgs.lib.nixosSystem {
 | 
					    nixosConfigurations.Satori = nixpkgs.lib.nixosSystem {
 | 
				
			||||||
      system = "${system}";
 | 
					      system = "${system}";
 | 
				
			||||||
      modules = [ 
 | 
					      modules = [ 
 | 
				
			||||||
        ./Satori/configuration.nix 
 | 
					        ./satori.nix 
 | 
				
			||||||
        agenix.nixosModules.age
 | 
					        inputs.agenix.nixosModules.age
 | 
				
			||||||
        home-manager.nixosModules.home-manager
 | 
					        inputs.home-manager.nixosModules.home-manager
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          nixpkgs.overlays = ov;
 | 
					          nixpkgs.overlays = ov;
 | 
				
			||||||
 | 
					          #environment.systemPackages = with inputs; [ claudius ];
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,24 +0,0 @@
 | 
				
			|||||||
music_directory			"~/Music"
 | 
					 | 
				
			||||||
playlist_directory		"~/.config/mpd/playlists"
 | 
					 | 
				
			||||||
db_file				"~/.config/mpd/database"
 | 
					 | 
				
			||||||
log_file			"~/.config/mpd/log"
 | 
					 | 
				
			||||||
pid_file			"~/.config/mpd/pid"
 | 
					 | 
				
			||||||
state_file			"~/.config/mpd/state"
 | 
					 | 
				
			||||||
bind_to_address			"~/.config/mpd/socket"
 | 
					 | 
				
			||||||
bind_to_address			"localhost"
 | 
					 | 
				
			||||||
port				"6600"
 | 
					 | 
				
			||||||
restore_paused "yes"
 | 
					 | 
				
			||||||
input {
 | 
					 | 
				
			||||||
        plugin "curl"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
audio_output {
 | 
					 | 
				
			||||||
	type "pulse"
 | 
					 | 
				
			||||||
	name "pulse audio"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
audio_output {
 | 
					 | 
				
			||||||
	type "fifo"
 | 
					 | 
				
			||||||
	name "Visualizer feed"
 | 
					 | 
				
			||||||
	path "/tmp/g.fifo"
 | 
					 | 
				
			||||||
	format "44100:16:2"
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
filesystem_charset "UTF-8"
 | 
					 | 
				
			||||||
@@ -1,62 +0,0 @@
 | 
				
			|||||||
autocenter_mode = "yes"
 | 
					 | 
				
			||||||
follow_now_playing_lyrics = "yes"
 | 
					 | 
				
			||||||
lyrics_directory = "~/.lyrics"
 | 
					 | 
				
			||||||
mpd_music_dir="~/Music"
 | 
					 | 
				
			||||||
fetch_lyrics_for_current_song_in_background = "yes"
 | 
					 | 
				
			||||||
#store_lyrics_in_song_dir = yes
 | 
					 | 
				
			||||||
browser_sort_mode=mtime
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
colors_enabled = "yes"
 | 
					 | 
				
			||||||
main_window_color = "white"
 | 
					 | 
				
			||||||
header_window_color = "180"
 | 
					 | 
				
			||||||
volume_color = "215"
 | 
					 | 
				
			||||||
progressbar_color = "180"
 | 
					 | 
				
			||||||
progressbar_elapsed_color = "16"
 | 
					 | 
				
			||||||
statusbar_color = "43"
 | 
					 | 
				
			||||||
active_window_border = "blue"
 | 
					 | 
				
			||||||
user_interface = "alternative"
 | 
					 | 
				
			||||||
#song_list_format="(4)[230]{l}"
 | 
					 | 
				
			||||||
song_columns_list_format = "(4)[230]{l} (30)[219]{t} (15)[180]{a} (15)[215]{b}"
 | 
					 | 
				
			||||||
song_list_format = "{$(219)%a} - {$(230)%t}"
 | 
					 | 
				
			||||||
#song_list_format = "{$7%a - $9}{$5%t$9}|{$5%f$9}$R{$6%b $9}{$3%l$9}"
 | 
					 | 
				
			||||||
song_status_format = " $6%a $7⟫⟫ $3%t $7⟫⟫ $4%b "
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
visualizer_data_source  = "/tmp/g.fifo"
 | 
					 | 
				
			||||||
#visualizer_output_name = "my_fifo"
 | 
					 | 
				
			||||||
visualizer_type = "spectrum"
 | 
					 | 
				
			||||||
#visualizer_type = "ellipse"
 | 
					 | 
				
			||||||
visualizer_fps = 144
 | 
					 | 
				
			||||||
visualizer_in_stereo = "yes"
 | 
					 | 
				
			||||||
visualizer_look = "◆▋"
 | 
					 | 
				
			||||||
visualizer_spectrum_smooth_look="yes"
 | 
					 | 
				
			||||||
playlist_editor_display_mode = "classic"
 | 
					 | 
				
			||||||
playlist_display_mode = "columns"
 | 
					 | 
				
			||||||
cyclic_scrolling = "yes"
 | 
					 | 
				
			||||||
lines_scrolled = "2"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
system_encoding = "utf-8"
 | 
					 | 
				
			||||||
regular_expressions = "extended"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#selected_item_prefix = "* "
 | 
					 | 
				
			||||||
#discard_colors_if_item_is_selected = "no"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#incremental_seeking = "yes"
 | 
					 | 
				
			||||||
#seek_time = "1"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Visibility ##
 | 
					 | 
				
			||||||
header_visibility = "yes"
 | 
					 | 
				
			||||||
statusbar_visibility = "yes"
 | 
					 | 
				
			||||||
titles_visibility = "yes"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Progress Bar ##
 | 
					 | 
				
			||||||
progressbar_look =  "▃▃▃"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Now Playing ##
 | 
					 | 
				
			||||||
now_playing_prefix = "> "
 | 
					 | 
				
			||||||
centered_cursor = "yes"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Misc
 | 
					 | 
				
			||||||
display_bitrate = "yes"
 | 
					 | 
				
			||||||
enable_window_title = "yes"
 | 
					 | 
				
			||||||
empty_tag_marker = ""
 | 
					 | 
				
			||||||
#execute_on_song_change="~/.config/ncmpcpp/cover_obs.sh"
 | 
					 | 
				
			||||||
@@ -8,7 +8,7 @@ map S rotate
 | 
				
			|||||||
map f zoom in
 | 
					map f zoom in
 | 
				
			||||||
map q zoom out
 | 
					map q zoom out
 | 
				
			||||||
map p follow link
 | 
					map p follow link
 | 
				
			||||||
map m left
 | 
					map m scroll left
 | 
				
			||||||
map i right
 | 
					map i scroll right
 | 
				
			||||||
map n down
 | 
					map n scroll down
 | 
				
			||||||
map e up
 | 
					map e scroll up
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,13 +37,14 @@ in
 | 
				
			|||||||
      curl
 | 
					      curl
 | 
				
			||||||
      pamixer
 | 
					      pamixer
 | 
				
			||||||
      mpdas
 | 
					      mpdas
 | 
				
			||||||
      mpd
 | 
					 | 
				
			||||||
      dunst
 | 
					      dunst
 | 
				
			||||||
      pavucontrol
 | 
					      pavucontrol
 | 
				
			||||||
      anup
 | 
					      anup
 | 
				
			||||||
      proxychains
 | 
					      proxychains
 | 
				
			||||||
      cmake
 | 
					      cmake
 | 
				
			||||||
      xfce.thunar
 | 
					      xfce.thunar
 | 
				
			||||||
 | 
					      xfce.xfconf
 | 
				
			||||||
 | 
					      xfce.tumbler
 | 
				
			||||||
      discord
 | 
					      discord
 | 
				
			||||||
      customscripts
 | 
					      customscripts
 | 
				
			||||||
      mpd_discord_richpresence
 | 
					      mpd_discord_richpresence
 | 
				
			||||||
@@ -60,14 +61,6 @@ in
 | 
				
			|||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    file = {
 | 
					    file = {
 | 
				
			||||||
      ncmpcpp = {
 | 
					 | 
				
			||||||
        source = ./config/ncmpcpp/config;
 | 
					 | 
				
			||||||
        target = "${home}/.config/ncmpcpp/config";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
      mpd = {
 | 
					 | 
				
			||||||
        source = ./config/mpd/mpd.conf;
 | 
					 | 
				
			||||||
        target = "${home}/.config/mpd/mpd.conf";
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
      dwm-autostart = {
 | 
					      dwm-autostart = {
 | 
				
			||||||
        source = ./config/dwm/autostart.sh;
 | 
					        source = ./config/dwm/autostart.sh;
 | 
				
			||||||
        target = "${home}/.dwm/autostart.sh";
 | 
					        target = "${home}/.dwm/autostart.sh";
 | 
				
			||||||
 
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							@@ -2,9 +2,18 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  gtk = {
 | 
					  gtk = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    iconTheme.name = "Gruvbox-Material-Dark";
 | 
					    iconTheme = {
 | 
				
			||||||
    iconTheme.package = pkgs.gruvbox-icons;
 | 
					      name = "Gruvbox-Material-Dark";
 | 
				
			||||||
    theme.name = "Equilux";
 | 
					      package = pkgs.gruvbox-icons;
 | 
				
			||||||
    theme.package = pkgs.equilux-theme;
 | 
					    };
 | 
				
			||||||
 | 
					    theme = {
 | 
				
			||||||
 | 
					      name = "Equilux";
 | 
				
			||||||
 | 
					      package = pkgs.equilux-theme;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					 /*   gtk3 = {
 | 
				
			||||||
 | 
					      bookmarks = [
 | 
				
			||||||
 | 
					        "folder:///mnt/Stuff/Memes/Discord"
 | 
				
			||||||
 | 
					      ];
 | 
				
			||||||
 | 
					    };*/
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,6 +2,7 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  imports = [
 | 
					  imports = [
 | 
				
			||||||
    ./programs/nvim.nix
 | 
					    ./programs/nvim.nix
 | 
				
			||||||
 | 
					    ./programs/ncmpcpp.nix
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  programs = {
 | 
					  programs = {
 | 
				
			||||||
    firefox = {
 | 
					    firefox = {
 | 
				
			||||||
@@ -19,12 +20,9 @@
 | 
				
			|||||||
      options = {
 | 
					      options = {
 | 
				
			||||||
        recolor = true;
 | 
					        recolor = true;
 | 
				
			||||||
        recolor-lightcolor = "rgba(0,0,0,0)";
 | 
					        recolor-lightcolor = "rgba(0,0,0,0)";
 | 
				
			||||||
        default-bg = "rgba(0,0,0,0.7)";
 | 
					        default-bg = "rgba(0,0,0,0.8)";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    ncmpcpp = {
 | 
					 | 
				
			||||||
      enable = true;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
    mpv = {
 | 
					    mpv = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
      config = {
 | 
					      config = {
 | 
				
			||||||
@@ -33,5 +31,8 @@
 | 
				
			|||||||
        save-position-on-quit = "yes";
 | 
					        save-position-on-quit = "yes";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					    emacs = {
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										57
									
								
								home/stuff/programs/ncmpcpp.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								home/stuff/programs/ncmpcpp.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,57 @@
 | 
				
			|||||||
 | 
					{config, ...}:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  programs.ncmpcpp = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    mpdMusicDir = ~/Music;
 | 
				
			||||||
 | 
					    settings = {
 | 
				
			||||||
 | 
					      autocenter_mode = "yes";
 | 
				
			||||||
 | 
					      follow_now_playing_lyrics = "yes";
 | 
				
			||||||
 | 
					      lyrics_directory = "~/.lyrics";
 | 
				
			||||||
 | 
					      fetch_lyrics_for_current_song_in_background = "yes";
 | 
				
			||||||
 | 
					      #store_lyrics_in_song_dir = yes;
 | 
				
			||||||
 | 
					      browser_sort_mode="mtime";
 | 
				
			||||||
 | 
					      colors_enabled = "yes";
 | 
				
			||||||
 | 
					      main_window_color = "white";
 | 
				
			||||||
 | 
					      header_window_color = "180";
 | 
				
			||||||
 | 
					      volume_color = "215";
 | 
				
			||||||
 | 
					      progressbar_color = "180";
 | 
				
			||||||
 | 
					      progressbar_elapsed_color = "16";
 | 
				
			||||||
 | 
					      statusbar_color = "43";
 | 
				
			||||||
 | 
					      active_window_border = "blue";
 | 
				
			||||||
 | 
					      user_interface = "alternative";
 | 
				
			||||||
 | 
					      #song_list_format="(4)[230]{l}";
 | 
				
			||||||
 | 
					      song_columns_list_format = "(4)[230]{l} (20)[219]{t} (12)[180]{a} (16)[215]{b}";
 | 
				
			||||||
 | 
					      song_list_format = "{$(219)%a} - {$(230)%t}";
 | 
				
			||||||
 | 
					      #song_list_format = "{$7%a - $9}{$5%t$9}|{$5%f$9}$R{$6%b $9}{$3%l$9}";
 | 
				
			||||||
 | 
					      song_status_format = " $6%a $7⟫⟫ $3%t $7⟫⟫ $4%b ";
 | 
				
			||||||
 | 
					      visualizer_data_source  = "/tmp/g.fifo";
 | 
				
			||||||
 | 
					      #visualizer_output_name = "my_fifo";
 | 
				
			||||||
 | 
					      visualizer_type = "spectrum";
 | 
				
			||||||
 | 
					      #visualizer_type = "ellipse";
 | 
				
			||||||
 | 
					      visualizer_fps = "144";
 | 
				
			||||||
 | 
					      visualizer_in_stereo = "yes";
 | 
				
			||||||
 | 
					      visualizer_look = "◆▋";
 | 
				
			||||||
 | 
					      visualizer_spectrum_smooth_look="yes";
 | 
				
			||||||
 | 
					      playlist_editor_display_mode = "classic";
 | 
				
			||||||
 | 
					      playlist_display_mode = "columns";
 | 
				
			||||||
 | 
					      cyclic_scrolling = "yes";
 | 
				
			||||||
 | 
					      lines_scrolled = "2";
 | 
				
			||||||
 | 
					      system_encoding = "utf-8";
 | 
				
			||||||
 | 
					      regular_expressions = "extended";
 | 
				
			||||||
 | 
					      #selected_item_prefix = "* "
 | 
				
			||||||
 | 
					      #discard_colors_if_item_is_selected = "no"
 | 
				
			||||||
 | 
					      #incremental_seeking = "yes"
 | 
				
			||||||
 | 
					      #seek_time = "1"
 | 
				
			||||||
 | 
					      header_visibility = "yes";
 | 
				
			||||||
 | 
					      statusbar_visibility = "yes";
 | 
				
			||||||
 | 
					      titles_visibility = "yes";
 | 
				
			||||||
 | 
					      progressbar_look =  "▃▃▃";
 | 
				
			||||||
 | 
					      now_playing_prefix = "> ";
 | 
				
			||||||
 | 
					      centered_cursor = "yes";
 | 
				
			||||||
 | 
					      display_bitrate = "yes";
 | 
				
			||||||
 | 
					      enable_window_title = "yes";
 | 
				
			||||||
 | 
					      empty_tag_marker = "";
 | 
				
			||||||
 | 
					      execute_on_song_change="${config.home.homeDirectory}/.config/ncmpcpp/ncmpcpp-ueberzug/ncmpcpp_cover_art.sh";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -44,5 +44,36 @@ in
 | 
				
			|||||||
        enable = false;
 | 
					        enable = false;
 | 
				
			||||||
        extraConfig = builtins.readFile ./config/sxhkd/sxhkdrc;
 | 
					        extraConfig = builtins.readFile ./config/sxhkd/sxhkdrc;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      mpd = {
 | 
				
			||||||
 | 
					        enable = true;
 | 
				
			||||||
 | 
					        musicDirectory = "${config.home.homeDirectory}/Music";
 | 
				
			||||||
 | 
					        extraConfig = ''
 | 
				
			||||||
 | 
					          playlist_directory              "~/.config/mpd/playlists"
 | 
				
			||||||
 | 
					          db_file                         "~/.config/mpd/database"
 | 
				
			||||||
 | 
					          log_file                        "~/.config/mpd/log"
 | 
				
			||||||
 | 
					          pid_file                        "~/.config/mpd/pid"
 | 
				
			||||||
 | 
					          state_file                      "~/.config/mpd/state"
 | 
				
			||||||
 | 
					          bind_to_address                 "~/.config/mpd/socket"
 | 
				
			||||||
 | 
					          bind_to_address                 "localhost"
 | 
				
			||||||
 | 
					          port                            "6600"
 | 
				
			||||||
 | 
					          restore_paused "yes"
 | 
				
			||||||
 | 
					          input {
 | 
				
			||||||
 | 
					                  plugin "curl"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					          audio_output {
 | 
				
			||||||
 | 
					                  type "pulse"
 | 
				
			||||||
 | 
					                  name "pulse audio"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					          audio_output {
 | 
				
			||||||
 | 
					                  type "fifo"
 | 
				
			||||||
 | 
					                  name "Visualizer feed"
 | 
				
			||||||
 | 
					                  path "/tmp/g.fifo"
 | 
				
			||||||
 | 
					                  format "44100:16:2"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					          filesystem_charset "UTF-8"
 | 
				
			||||||
 | 
					          '';
 | 
				
			||||||
 | 
					        network.startWhenNeeded = true;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,5 +5,9 @@
 | 
				
			|||||||
      enable = false;
 | 
					      enable = false;
 | 
				
			||||||
      extraConfig = builtins.readFile ./config/bspwm/bspwmrc;
 | 
					      extraConfig = builtins.readFile ./config/bspwm/bspwmrc;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					    pointerCursor = {
 | 
				
			||||||
 | 
					      package = pkgs.numix-cursor-theme;
 | 
				
			||||||
 | 
					      name = "Numix";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								modules/cirno.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								modules/cirno.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 34 KiB  | 
@@ -1,4 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env sh
 | 
				
			||||||
killall mpd
 | 
					 | 
				
			||||||
killall mpd_discord_richpresence
 | 
					 | 
				
			||||||
killall mpdas
 | 
					killall mpdas
 | 
				
			||||||
 | 
					killall mpd_discord_richpresence
 | 
				
			||||||
 | 
					systemctl stop mpd.socket --user
 | 
				
			||||||
 | 
					systemctl stop mpd.service --user
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env sh
 | 
				
			||||||
mpd
 | 
					systemctl start mpd.service --user
 | 
				
			||||||
 | 
					#systemctl start mpd.socket --user
 | 
				
			||||||
mpdas &
 | 
					mpdas &
 | 
				
			||||||
mpd_discord_richpresence &
 | 
					mpd_discord_richpresence &
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										19
									
								
								overlays/customscripts/src/ncm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								overlays/customscripts/src/ncm
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/env sh
 | 
				
			||||||
 | 
					#credits: https://github.com/alnj/ncmpcpp-ueberzug
 | 
				
			||||||
 | 
					export FIFO_UEBERZUG="/tmp/mpd-ueberzug-${PPID}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cleanup() {
 | 
				
			||||||
 | 
					    rm "$FIFO_UEBERZUG" 2>/dev/null
 | 
				
			||||||
 | 
					    rm /tmp/mpd_cover.jpg 2>/dev/null
 | 
				
			||||||
 | 
					    pkill -P $$ 2>/dev/null
 | 
				
			||||||
 | 
					    pkill ncmpcpp_cover_art.sh
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pkill -P $$ 2>/dev/null
 | 
				
			||||||
 | 
					rm "$FIFO_UEBERZUG" 2>/dev/null
 | 
				
			||||||
 | 
					mkfifo "$FIFO_UEBERZUG" >/dev/null
 | 
				
			||||||
 | 
					trap cleanup EXIT 2>/dev/null
 | 
				
			||||||
 | 
					tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser simple >/dev/null 2>&1 &
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ncmpcpp
 | 
				
			||||||
 | 
					cleanup
 | 
				
			||||||
							
								
								
									
										16
									
								
								satori.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								satori.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					{ lib, config, ...}:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  imports =
 | 
				
			||||||
 | 
					    [
 | 
				
			||||||
 | 
					      ./Satori/hardware.nix
 | 
				
			||||||
 | 
					      ./Satori/stuff.nix
 | 
				
			||||||
 | 
					      ./Satori/pkgs.nix
 | 
				
			||||||
 | 
					      ./Satori/networking.nix
 | 
				
			||||||
 | 
					      ./Satori/boot.nix
 | 
				
			||||||
 | 
					#      ./modules/nvidia-offload.nix
 | 
				
			||||||
 | 
					      ./modules/pipewire.nix
 | 
				
			||||||
 | 
					      ./modules/xorg.nix
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					  system.stateVersion = "20.09";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user