Add simple-osd-daemons
This commit is contained in:
parent
41bc4b331d
commit
68373dcfb5
36
flake.lock
generated
36
flake.lock
generated
@ -244,6 +244,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1599773960,
|
||||||
|
"narHash": "sha256-5bL52aaUOOyOBjgKh9/6jQlFbeE+WfVX7dpvjohmD+w=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "5916b9637048446755629c84ae6f13361f623d13",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1587390417,
|
"lastModified": 1587390417,
|
||||||
"narHash": "sha256-dLQebnBviLNiN2Ei3Iqyxm73EFwz77YcvitvMYwRNA8=",
|
"narHash": "sha256-dLQebnBviLNiN2Ei3Iqyxm73EFwz77YcvitvMYwRNA8=",
|
||||||
@ -272,6 +287,7 @@
|
|||||||
"nixpkgs-old": "nixpkgs-old",
|
"nixpkgs-old": "nixpkgs-old",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"simple-nixos-mailserver": "simple-nixos-mailserver",
|
"simple-nixos-mailserver": "simple-nixos-mailserver",
|
||||||
|
"simple-osd-daemons": "simple-osd-daemons",
|
||||||
"weechat-notify-send": "weechat-notify-send",
|
"weechat-notify-send": "weechat-notify-send",
|
||||||
"weechat-scripts": "weechat-scripts",
|
"weechat-scripts": "weechat-scripts",
|
||||||
"yt-utilities": "yt-utilities"
|
"yt-utilities": "yt-utilities"
|
||||||
@ -294,6 +310,24 @@
|
|||||||
"url": "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver"
|
"url": "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"simple-osd-daemons": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_5"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1600036524,
|
||||||
|
"narHash": "sha256-Xyb2qLHhqgW+oyl2qQAh1Zcoj5Y69IHRkaGd9htEEC0=",
|
||||||
|
"ref": "master",
|
||||||
|
"rev": "ee4bf80484acbf18ab7d9f2da83ee3dfc9c1f722",
|
||||||
|
"revCount": 3,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://code.balsoft.ru/balsoft/simple-osd-daemons"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://code.balsoft.ru/balsoft/simple-osd-daemons"
|
||||||
|
}
|
||||||
|
},
|
||||||
"weechat-notify-send": {
|
"weechat-notify-send": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -329,7 +363,7 @@
|
|||||||
"yt-utilities": {
|
"yt-utilities": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"haskell-nix": "haskell-nix",
|
"haskell-nix": "haskell-nix",
|
||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1588006875,
|
"lastModified": 1588006875,
|
||||||
|
@ -47,6 +47,7 @@
|
|||||||
ref = "flake";
|
ref = "flake";
|
||||||
};
|
};
|
||||||
nixos-fhs-compat.url = github:balsoft/nixos-fhs-compat;
|
nixos-fhs-compat.url = github:balsoft/nixos-fhs-compat;
|
||||||
|
simple-osd-daemons.url = git+https://code.balsoft.ru/balsoft/simple-osd-daemons;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, nix, self, ... }@inputs: {
|
outputs = { nixpkgs, nix, self, ... }@inputs: {
|
||||||
|
@ -35,6 +35,7 @@ device:
|
|||||||
./services.nix
|
./services.nix
|
||||||
./power.nix
|
./power.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
|
./simple-osd-daemons.nix
|
||||||
] ++ lib.optionals (device == "AMD-Workstation") [
|
] ++ lib.optionals (device == "AMD-Workstation") [
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./mailserver.nix
|
./mailserver.nix
|
||||||
|
@ -27,6 +27,8 @@ in {
|
|||||||
|
|
||||||
inherit (inputs.lambda-launcher.packages.x86_64-linux) lambda-launcher;
|
inherit (inputs.lambda-launcher.packages.x86_64-linux) lambda-launcher;
|
||||||
|
|
||||||
|
simple-osd = { inherit (inputs.simple-osd-daemons.packages.x86_64-linux) battery bluetooth brightness pulseaudio; };
|
||||||
|
|
||||||
inherit old;
|
inherit old;
|
||||||
|
|
||||||
yt-utilities = inputs.yt-utilities.defaultPackage.x86_64-linux;
|
yt-utilities = inputs.yt-utilities.defaultPackage.x86_64-linux;
|
||||||
|
29
modules/simple-osd-daemons.nix
Normal file
29
modules/simple-osd-daemons.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
home-manager.users.balsoft.systemd.user.services = {
|
||||||
|
simple-osd-pulseaudio = {
|
||||||
|
Install.WantedBy = [ "default.target" ];
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.simple-osd.pulseaudio}/bin/simple-osd-pulseaudio";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
simple-osd-bluetooth = {
|
||||||
|
Install.WantedBy = [ "default.target" ];
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.simple-osd.bluetooth}/bin/simple-osd-bluetooth";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
} // pkgs.lib.optionalAttrs (config.deviceSpecific.isLaptop) {
|
||||||
|
simple-osd-battery = {
|
||||||
|
Install.WantedBy = [ "default.target" ];
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.simple-osd.battery}/bin/simple-osd-battery";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
simple-osd-brightness = {
|
||||||
|
Install.WantedBy = [ "default.target" ];
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.simple-osd.brightness}/bin/simple-osd-brightness";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user