Compare commits
No commits in common. "dadccdbe20421d5a180d0c1d0651564e47afe769" and "d365273653585ec32db12019e5a287da4c009df6" have entirely different histories.
dadccdbe20
...
d365273653
4 changed files with 11 additions and 18 deletions
|
@ -569,11 +569,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_9": {
|
"nixpkgs_9": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1700390070,
|
"lastModified": 1700204040,
|
||||||
"narHash": "sha256-de9KYi8rSJpqvBfNwscWdalIJXPo8NjdIZcEJum1mH0=",
|
"narHash": "sha256-xSVcS5HBYnD3LTer7Y2K8ZQCDCXMa3QUD1MzRjHzuhI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e4ad989506ec7d71f7302cc3067abd82730a4beb",
|
"rev": "c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
social.enable = true;
|
social.enable = true;
|
||||||
mail.enable = true;
|
mail.enable = true;
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
evremap.enable = true;
|
|
||||||
};
|
};
|
||||||
terminal.enable = true;
|
terminal.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
cloud.enable = true;
|
cloud.enable = true;
|
||||||
social.enable = true;
|
social.enable = true;
|
||||||
gaming.enable = true;
|
gaming.enable = true;
|
||||||
|
ios-compat.enable = true;
|
||||||
mail.enable = true;
|
mail.enable = true;
|
||||||
evremap.enable = false;
|
|
||||||
};
|
};
|
||||||
terminal.enable = true;
|
terminal.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.jade.desktop.evremap;
|
|
||||||
evremap = pkgs.rustPlatform.buildRustPackage {
|
evremap = pkgs.rustPlatform.buildRustPackage {
|
||||||
pname = "evremap";
|
pname = "evremap";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
@ -18,17 +17,12 @@ let
|
||||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||||
buildInputs = [ pkgs.libevdev ];
|
buildInputs = [ pkgs.libevdev ];
|
||||||
};
|
};
|
||||||
in with lib; {
|
in {
|
||||||
options.jade.desktop.evremap = {
|
systemd.services.evremap = {
|
||||||
enable = mkEnableOption "Enable evremap";
|
script = "${evremap}/bin/evremap remap ${../../other/remaps-${config.networking.hostName}.toml}";
|
||||||
};
|
wantedBy = [ "multi-user.target" ];
|
||||||
config = mkIf cfg.enable {
|
unitConfig = {
|
||||||
systemd.services.evremap = {
|
Restart = "on-failure";
|
||||||
script = "${evremap}/bin/evremap remap ${../../other/remaps-${config.networking.hostName}.toml}";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
unitConfig = {
|
|
||||||
Restart = "on-failure";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue