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;
@ -27,7 +28,7 @@ in {
fonts = [ "IBM Plex Mono 11" "Material Icons 11" "Roboto Mono 11" ]; fonts = [ "IBM Plex Mono 11" "Material Icons 11" "Roboto Mono 11" ];
mode = "hide"; mode = "hide";
position = "bottom"; position = "bottom";
workspaceNumbers = false; workspaceNumbers = false;
}]; }];
xdg.configFile."i3blocks/config".text = let xdg.configFile."i3blocks/config".text = let
scr = x: { scr = x: {
@ -39,29 +40,30 @@ in {
interval=60 interval=60
markup=pango markup=pango
'' + genIniOrdered (optional (!isNull config.secrets.mail) (scr "email") '' + genIniOrdered (optional (!isNull config.secrets.mail) (scr "email")
++ [ (scrint "weather" 600) (scr "calendar") (scr "emacs") (scr "nixos") ] ++ [ (scrint "weather" 600) (scr "calendar") (scr "emacs") (scr "nixos") ]
++ optional (!isNull config.secrets.wage) (scrint "youtrack-wage" 3600) ++ optional (!isNull config.secrets.wage) (scrint "youtrack-wage" 3600)
++ [ (scrint "music" 3) (scrint "sound" 1) ] ++ [ ++ [ (scrint "music" 3) (scrint "sound" 1) ] ++ [
(scrint "cpu" 5) (scrint "cpu" 5)
(scrint "freq" 10) (scrint "freq" 10)
(scr "temperature") (scr "temperature")
(scrint "free" 10) (scrint "free" 10)
] ++ 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";
};
}; };
}; };
} }