This commit is contained in:
Dmitriy Holkin 2019-09-29 14:45:51 +04:00
parent b1199c76bd
commit 44831a9724
4 changed files with 63 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ pkgs, config, lib, ... }: { pkgs, config, lib, ... }:
with rec { with rec {
inherit (config) deviceSpecific; inherit (config) device deviceSpecific;
}; };
with deviceSpecific; { with deviceSpecific; {
# programs.adb.enable = true; # programs.adb.enable = true;
@ -49,6 +49,7 @@ with deviceSpecific; {
setroot setroot
maim maim
mupdf mupdf
ncmpcpp
] ++ lib.optionals isLaptop [ ] ++ lib.optionals isLaptop [
# Important # Important
acpi acpi
@ -58,12 +59,15 @@ with deviceSpecific; {
blueman blueman
] ++ lib.optionals (!isVM) [ ] ++ lib.optionals (!isVM) [
libreoffice libreoffice
] ++ lib.optionals (device == "AMD-Workstation") [
xonar-fp
]; ];
home-manager.users.alukard.home.packages = with pkgs; [ home-manager.users.alukard.home.packages = with pkgs; [
nix-zsh-completions nix-zsh-completions
qbittorrent qbittorrent
vscodium vscodium
# vscode-with-extensions
xarchiver xarchiver
tdesktop tdesktop
spotifywm spotifywm

View File

@ -53,6 +53,10 @@ with deviceSpecific; {
# package = pkgs.pulseaudioFull; # package = pkgs.pulseaudioFull;
support32Bit = true; support32Bit = true;
# systemWide = true; # systemWide = true;
tcp = {
enable = true;
anonymousClients.allowedIpRanges = ["127.0.0.1"];
};
}; };
# SSD Section # SSD Section

View File

@ -1,11 +1,26 @@
{ pkgs, config, lib, ... }: { { pkgs, config, lib, ... }: {
nixpkgs.overlays = [ nixpkgs.overlays = [
(self: old: (self: old: rec {
rec { # nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
# nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd; youtube-to-mpv = pkgs.callPackage ./applications/youtube-to-mpv.nix {};
youtube-to-mpv = pkgs.callPackage ./applications/youtube-to-mpv.nix {}; xonar-fp = pkgs.writers.writeBashBin "xonar-fp" ''
} CURRENT_STATE=`amixer -c 0 sget "Front Panel" | egrep -o '\[o.+\]'`
) if [[ $CURRENT_STATE == '[on]' ]]; then
amixer -c 0 sset "Front Panel" mute
else
amixer -c 0 sset "Front Panel" unmute
fi
'';
})
(self: super: {
vscode-with-extensions = super.vscode-with-extensions.override {
# When the extension is already available in the default extensions set.
vscodeExtensions = with super.vscode-extensions; [
bbenoist.Nix
ms-python.python
];
};
})
]; ];
nixpkgs.config = { nixpkgs.config = {
packageOverrides = pkgs: { packageOverrides = pkgs: {

View File

@ -1,6 +1,39 @@
{ config, lib, pkgs, ... }: { { config, lib, pkgs, ... }: {
# services.acpid.enable = true; # services.acpid.enable = true;
users.users.mopidy = {
isNormalUser = false;
extraGroups = [
"smbgrp"
];
};
services.mopidy = {
enable = true;
extensionPackages = with pkgs; [ mopidy-local-sqlite ];
configuration = ''
[local]
enabled = true
library = sqlite
media_dir = /shared/files/Music
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
[local-sqlite]
enabled = true
[audio]
output = pulsesink server=127.0.0.1
[mpd]
hostname = 0.0.0.0
'';
};
home-manager.users.alukard.home.file.".ncmpcpp/config".text = ''
mpd_host = 127.0.0.1
mpd_port = 6600
mpd_music_dir = "/shared/files/Music"
'';
# services.mopidy = { # services.mopidy = {
# enable = true; # enable = true;