Some minor tweaks to make nix check happy
This commit is contained in:
parent
abb4acb1d1
commit
311f724b19
|
@ -104,7 +104,7 @@ in
|
||||||
{ command = "systemctl --user restart waybar"; always = true; }
|
{ command = "systemctl --user restart waybar"; always = true; }
|
||||||
# Startup programs
|
# Startup programs
|
||||||
{ command = "${config.programs.firefox.package}/bin/firefox"; }
|
{ command = "${config.programs.firefox.package}/bin/firefox"; }
|
||||||
{ command = "${pkgs.discord}/bin/discord"; }
|
{ command = "${pkgs.unstable.discord}/bin/discord"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
### Keybindings
|
### Keybindings
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
# This is a stub, until 22.05 merge this
|
|
||||||
{ pkgs, lib, config, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let cfg = config.services.input-remapper; in
|
|
||||||
{
|
|
||||||
options = {
|
|
||||||
services.input-remapper = {
|
|
||||||
enable = mkEnableOption "input-remapper, an easy to use tool to change the mapping of your input device buttons.";
|
|
||||||
package = mkOption {
|
|
||||||
type = types.package;
|
|
||||||
default = pkgs.unstable.input-remapper;
|
|
||||||
};
|
|
||||||
enableUdevRules = mkEnableOption "udev rules added by input-remapper to handle hotplugged devices. Currently disabled by default due to https://github.com/sezanzeb/input-remapper/issues/140";
|
|
||||||
serviceWantedBy = mkOption {
|
|
||||||
default = [ "graphical.target" ];
|
|
||||||
example = [ "multi-user.target" ];
|
|
||||||
type = types.listOf types.str;
|
|
||||||
description = "Specifies the WantedBy setting for the input-remapper service.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
services.udev.packages = mkIf cfg.enableUdevRules [ cfg.package ];
|
|
||||||
services.dbus.packages = [ cfg.package ];
|
|
||||||
systemd.packages = [ cfg.package ];
|
|
||||||
environment.systemPackages = [ cfg.package ];
|
|
||||||
systemd.services.input-remapper.wantedBy = cfg.serviceWantedBy;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -67,9 +67,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Youmubot
|
# Youmubot
|
||||||
sops.secrets.youmubot-env = {};
|
sops.secrets.youmubot-env = { };
|
||||||
services.youmubot = {
|
services.youmubot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
envFile = config.sops.secrets.youmubot-env.path;
|
envFile = config.sops.secrets.youmubot-env.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "21.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
# Some PAM stuff
|
# Some PAM stuff
|
||||||
../modules/services/pam/gnome-keyring.nix
|
../modules/services/pam/gnome-keyring.nix
|
||||||
../modules/services/swaylock.nix
|
../modules/services/swaylock.nix
|
||||||
../modules/services/input-remapper.nix
|
|
||||||
];
|
];
|
||||||
# Use the latest kernel
|
# Use the latest kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
Loading…
Reference in a new issue