Compare commits

..

No commits in common. "20cc9f7d24a67fc814b05c217e0a3ed105b0b2b6" and "3439390ee834e965b3a347fa2033ab826890bcde" have entirely different histories.

11 changed files with 30 additions and 87 deletions

View File

@ -9,7 +9,6 @@
./hardware-configuration.nix ./hardware-configuration.nix
./file-systems.nix ./file-systems.nix
./home-manager.nix ./home-manager.nix
./snapcast.nix
outputs.nixosModules.common outputs.nixosModules.common
outputs.nixosModules.desktop outputs.nixosModules.desktop
]; ];

View File

@ -15,9 +15,7 @@
imports = [ imports = [
outputs.homeManagerModules.common outputs.homeManagerModules.common
outputs.homeManagerModules.extra outputs.homeManagerModules.extra
outputs.homeManagerModules.snapclient
]; ];
snapclient.enable = true;
}; };
}; };
} }

View File

@ -1,25 +0,0 @@
{ config, pkgs, ... }:
{
services.snapserver = {
enable = true;
codec = "flac";
streams = {
pipewire = {
type = "pipe";
location = "/run/snapserver/pipewire";
};
};
};
systemd.user.services.snapcast-sink = {
wantedBy = [ "pipewire.service" ];
after = [ "pipewire.service" ];
bindsTo = [ "pipewire.service" ];
path = with pkgs; [ gawk pulseaudio ];
script = ''
pactl load-module module-pipe-sink file=/run/snapserver/pipewire sink_name=Snapcast format=s16le rate=48000
'';
};
}

View File

@ -3,11 +3,8 @@
{ {
home.packages = [ pkgs.librewolf pkgs.tor-browser-bundle-bin ]; home.packages = [ pkgs.librewolf pkgs.tor-browser-bundle-bin ];
programs.firefox = { programs.firefox.enable = true;
enable = true; home.sessionVariables.BROWSER = "${pkgs.firefox}/bin/firefox";
package = pkgs.firefox-esr;
};
home.sessionVariables.BROWSER = "${pkgs.firefox-esr}/bin/firefox";
programs.chromium = { programs.chromium = {
enable = true; enable = true;

View File

@ -29,7 +29,7 @@
neovim = import ./neovim; neovim = import ./neovim;
pass = import ./pass; pass = import ./pass;
rss = import ./rss; rss = import ./rss;
snapclient = import ./snapclient; snapcast = import ./snapcast;
sound = import ./sound; sound = import ./sound;
ssh = import ./ssh; ssh = import ./ssh;
syncthing = import ./syncthing; syncthing = import ./syncthing;

View File

@ -2,11 +2,10 @@
{ {
imports = [ imports = [
./kile
./bemenu.nix ./bemenu.nix
./fusuma.nix
./init.nix ./init.nix
./kanshi.nix ./kanshi.nix
./kile
./mako.nix ./mako.nix
./swaybg.nix ./swaybg.nix
./swaylock.nix ./swaylock.nix

View File

@ -1,14 +0,0 @@
{ config, pkgs, ... }:
{
services.fusuma = {
enable = true;
extraPackages = with pkgs; [ coreutils ydotool ];
settings = {};
# settings = {
# swipe."3" = {
# left.command = "do the thing";
# };
# };
};
}

View File

@ -20,6 +20,7 @@
../msg ../msg
../music ../music
../rss ../rss
../snapcast
../sound ../sound
../syncthing ../syncthing
../theming ../theming

View File

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
let snapserver_ip = "192.168.1.144";
in
{
home.packages = [ pkgs.snapcast ];
systemd.user.services.snapclient = {
Unit = {
After = [ "pipewire.service" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.snapcast}/bin/snapclient --host ${snapserver_ip}";
};
Install = {
WantedBy = [ "pipewire.service" ];
};
};
}

View File

@ -1,33 +0,0 @@
{ config, lib, pkgs, ... }:
let
cfg = config.snapclient;
in
{
options.snapclient = {
enable = lib.mkEnableOption "snapclient";
snapserver-host = lib.mkOption {
type = lib.types.str;
default = "localhost";
description = "host running snapserver to connect to";
};
package = lib.mkOption {
type = lib.types.package;
default = pkgs.snapcast;
defaultText = "pkgs.snapcast";
description = "package for snapcast";
};
};
config = lib.mkIf cfg.enable {
systemd.user.services.snapclient = {
Service = {
Type = "simple";
ExecStart = "${cfg.package}/bin/snapclient --host ${cfg.snapserver-host}";
};
Unit.After = [ "pipewire.service" ];
Install.WantedBy = [ "pipewire.service" ];
};
};
}