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

View File

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

View File

@ -1,11 +1,26 @@
{ pkgs, config, lib, ... }: {
nixpkgs.overlays = [
(self: old:
rec {
# nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
youtube-to-mpv = pkgs.callPackage ./applications/youtube-to-mpv.nix {};
}
)
(self: old: rec {
# nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
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 = {
packageOverrides = pkgs: {

View File

@ -1,6 +1,39 @@
{ config, lib, pkgs, ... }: {
# 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 = {
# enable = true;