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
./nginx.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;
forceSSL = true;
};
virtualisation.spiceUSBRedirection.enable = true;
}

View File

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