minidlna
This commit is contained in:
parent
6f0b05d188
commit
c9f084dac7
@ -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
7
modules/minidlna.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
services.minidlna = {
|
||||||
|
enable = true;
|
||||||
|
announceInterval = 10;
|
||||||
|
mediaDirs = [ "A,/var/lib/music" ];
|
||||||
|
};
|
||||||
|
}
|
@ -67,4 +67,6 @@
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
}
|
}
|
||||||
|
@ -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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user