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": {
|
||||
"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": {
|
||||
"lastModified": 1587390417,
|
||||
"narHash": "sha256-dLQebnBviLNiN2Ei3Iqyxm73EFwz77YcvitvMYwRNA8=",
|
||||
@ -272,6 +287,7 @@
|
||||
"nixpkgs-old": "nixpkgs-old",
|
||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||
"simple-nixos-mailserver": "simple-nixos-mailserver",
|
||||
"simple-osd-daemons": "simple-osd-daemons",
|
||||
"weechat-notify-send": "weechat-notify-send",
|
||||
"weechat-scripts": "weechat-scripts",
|
||||
"yt-utilities": "yt-utilities"
|
||||
@ -294,6 +310,24 @@
|
||||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
@ -329,7 +363,7 @@
|
||||
"yt-utilities": {
|
||||
"inputs": {
|
||||
"haskell-nix": "haskell-nix",
|
||||
"nixpkgs": "nixpkgs_5"
|
||||
"nixpkgs": "nixpkgs_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1588006875,
|
||||
|
@ -47,6 +47,7 @@
|
||||
ref = "flake";
|
||||
};
|
||||
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: {
|
||||
|
@ -35,6 +35,7 @@ device:
|
||||
./services.nix
|
||||
./power.nix
|
||||
./network.nix
|
||||
./simple-osd-daemons.nix
|
||||
] ++ lib.optionals (device == "AMD-Workstation") [
|
||||
./nextcloud.nix
|
||||
./mailserver.nix
|
||||
|
@ -27,6 +27,8 @@ in {
|
||||
|
||||
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;
|
||||
|
||||
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