This commit is contained in:
Alexander Bantyev 2020-10-02 00:48:27 +03:00
parent 6f0b05d188
commit c9f084dac7
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
4 changed files with 32 additions and 20 deletions

View File

@ -43,5 +43,6 @@ device:
./workspace/kanshi.nix ./workspace/kanshi.nix
./nginx.nix ./nginx.nix
./gitea.nix ./gitea.nix
./minidlna.nix
]; ];
} }

7
modules/minidlna.nix Normal file
View File

@ -0,0 +1,7 @@
{
services.minidlna = {
enable = true;
announceInterval = 10;
mediaDirs = [ "A,/var/lib/music" ];
};
}

View File

@ -67,4 +67,6 @@
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
virtualisation.spiceUSBRedirection.enable = true;
} }

View File

@ -6,6 +6,7 @@ in {
home-manager.users.balsoft = { home-manager.users.balsoft = {
wayland.windowManager.sway.config.bars = [{ wayland.windowManager.sway.config.bars = [{
id = "default"; id = "default";
trayOutput = "primary";
command = "true"; command = "true";
colors = let colors = let
thm = config.themes.colors; thm = config.themes.colors;
@ -49,19 +50,20 @@ in {
] ++ optionals config.deviceSpecific.isLaptop [ ] ++ optionals config.deviceSpecific.isLaptop [
(scr "battery") (scr "battery")
(scrint "brightness" 5) (scrint "brightness" 5)
] ] ++ optional (config.deviceSpecific.devInfo ? bigScreen)
++ optional (config.deviceSpecific.devInfo ? bigScreen) (scrint "network" 1) (scrint "network" 1) ++ [
++ [ (scrint "bluetooth" 3) (scrint "connections" 3) (scr "df") (scr "date") (scrint "time" 1) ]); (scrint "bluetooth" 3)
(scrint "connections" 3)
(scr "df")
(scr "date")
(scrint "time" 1)
]);
systemd.user.services.swaybar = { systemd.user.services.swaybar = {
Unit = { Unit = { Description = "Start default bar"; };
Description = "Start default bar";
};
Install.WantedBy = [ "sway-session.target" ]; Install.WantedBy = [ "sway-session.target" ];
Service = { Service = { ExecStart = "${pkgs.sway}/bin/swaybar -b default"; };
ExecStart = "${pkgs.sway}/bin/swaybar -b default";
};
}; };
}; };
} }