minidlna
This commit is contained in:
parent
6f0b05d188
commit
c9f084dac7
@ -43,5 +43,6 @@ device:
|
||||
./workspace/kanshi.nix
|
||||
./nginx.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;
|
||||
forceSSL = true;
|
||||
};
|
||||
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
}
|
||||
|
@ -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;
|
||||
@ -27,7 +28,7 @@ in {
|
||||
fonts = [ "IBM Plex Mono 11" "Material Icons 11" "Roboto Mono 11" ];
|
||||
mode = "hide";
|
||||
position = "bottom";
|
||||
workspaceNumbers = false;
|
||||
workspaceNumbers = false;
|
||||
}];
|
||||
xdg.configFile."i3blocks/config".text = let
|
||||
scr = x: {
|
||||
@ -39,29 +40,30 @@ in {
|
||||
interval=60
|
||||
markup=pango
|
||||
'' + genIniOrdered (optional (!isNull config.secrets.mail) (scr "email")
|
||||
++ [ (scrint "weather" 600) (scr "calendar") (scr "emacs") (scr "nixos") ]
|
||||
++ optional (!isNull config.secrets.wage) (scrint "youtrack-wage" 3600)
|
||||
++ [ (scrint "music" 3) (scrint "sound" 1) ] ++ [
|
||||
(scrint "cpu" 5)
|
||||
(scrint "freq" 10)
|
||||
(scr "temperature")
|
||||
(scrint "free" 10)
|
||||
] ++ 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) ]);
|
||||
++ [ (scrint "weather" 600) (scr "calendar") (scr "emacs") (scr "nixos") ]
|
||||
++ optional (!isNull config.secrets.wage) (scrint "youtrack-wage" 3600)
|
||||
++ [ (scrint "music" 3) (scrint "sound" 1) ] ++ [
|
||||
(scrint "cpu" 5)
|
||||
(scrint "freq" 10)
|
||||
(scr "temperature")
|
||||
(scrint "free" 10)
|
||||
] ++ 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)
|
||||
]);
|
||||
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"; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user