Fix lint errors with statix

This commit is contained in:
Erwin Boskma 2022-05-03 18:17:38 +02:00
parent 9655d89655
commit 4585c5e899
Signed by: erwin
GPG key ID: 270B20D17394F7E5
25 changed files with 30 additions and 30 deletions

View file

@ -11,7 +11,7 @@ in
enable = mkEnableOption "enable bat";
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
programs.bat = {
enable = true;
config = {

View file

@ -11,7 +11,7 @@ in
enable = mkEnableOption "activate dunst";
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
services.dunst = {
enable = true;
iconTheme = {

View file

@ -12,8 +12,8 @@ in
wayland = mkEnableOption "set Wayland compatibility settings";
};
config = mkIf (cfg.enable) {
xdg.configFile.electron_conf = mkIf (cfg.wayland) {
config = mkIf cfg.enable {
xdg.configFile.electron_conf = mkIf cfg.wayland {
target = "electron-flags.conf";
text = ''
--enable-features=UseOzonePlatform

View file

@ -31,13 +31,13 @@ in
};
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
programs.emacs = {
enable = true;
package = emacs;
};
services.emacs = mkIf (cfg.daemon) {
services.emacs = mkIf cfg.daemon {
enable = true;
package = emacs;
client.enable = true;

View file

@ -79,7 +79,7 @@ in
};
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
programs.firefox = {
enable = true;
package = pkgs.firefox-bin;

View file

@ -11,7 +11,7 @@ in
enable = mkEnableOption "Enable fish shell";
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
programs.fish = {
enable = true;
functions = import ./functions.nix { inherit (pkgs) git; };
@ -32,9 +32,9 @@ in
# code = "${pkgs.vscode}/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland";
ls = "${pkgs.exa}/bin/exa -Fb --git";
vimdiff = mkIf (config.eboskma.programs.neovim.enable) "nvim -d";
vim = mkIf (config.eboskma.programs.neovim.enable) "nvim";
vi = mkIf (config.eboskma.programs.neovim.enable) "nvim";
vimdiff = mkIf config.eboskma.programs.neovim.enable "nvim -d";
vim = mkIf config.eboskma.programs.neovim.enable "nvim";
vi = mkIf config.eboskma.programs.neovim.enable "nvim";
};
interactiveShellInit = ''
'';

View file

@ -27,7 +27,7 @@ in
};
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
programs.git = {
enable = true;
userName = cfg.name;

View file

@ -11,7 +11,7 @@ in
enable = mkEnableOption "enable gpg";
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
home.packages = with pkgs; [
pinentry-gnome
];

View file

@ -9,7 +9,7 @@ in
{
options.eboskma.programs.solvespace = { enable = mkEnableOption "activate solvespace"; };
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
home.packages = with pkgs; [
solvespace
];

View file

@ -9,7 +9,7 @@ in
{
options.eboskma.programs.ssh = { enable = mkEnableOption "activate ssh"; };
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
programs.ssh = {
enable = true;
hashKnownHosts = true;

View file

@ -11,7 +11,7 @@ in
enable = mkEnableOption "enable tmux";
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
programs.tmux = {
enable = true;
prefix = "C-a";

View file

@ -9,7 +9,7 @@ in
{
options.eboskma.programs.zathura = { enable = mkEnableOption "activate zathura"; };
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
programs.zathura = {
enable = true;

View file

@ -1,6 +1,6 @@
let
krops = builtins.fetchGit {
url = https://cgit.krebsco.de/krops/;
url = "https://cgit.krebsco.de/krops/";
};
lib = import "${krops}/lib";

View file

@ -11,7 +11,7 @@ in
enable = mkEnableOption "enable v4l2loopback kernel module";
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
# Register a v4l2loopback device at boot
boot.kernelModules = [

View file

@ -33,7 +33,7 @@ in
config = {
boot.kernelPackages = cfg.kernel;
boot.plymouth = mkIf (cfg.plymouth.enable) {
boot.plymouth = mkIf cfg.plymouth.enable {
enable = true;
};

View file

@ -11,7 +11,7 @@ in
enable = mkEnableOption "activate bluetooth";
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
hardware.bluetooth.enable = true;
services.blueman.enable = true;
};

View file

@ -10,7 +10,7 @@ in
{
options.eboskma.gitea = { enable = mkEnableOption "gitea"; };
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
services.gitea = {
enable = true;
user = "git";

View file

@ -9,7 +9,7 @@ in
{
options.eboskma.gnome.enable = mkEnableOption "activate gnome support settings";
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
gnomeExtensions.appindicator
papirus-icon-theme

View file

@ -12,7 +12,7 @@ in
};
config =
mkIf (cfg.enable)
mkIf cfg.enable
{
services.greetd = {
enable = true;

View file

@ -19,7 +19,7 @@ in
};
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
eboskma.docker.enable = true;
virtualisation.oci-containers.containers = {

View file

@ -21,7 +21,7 @@ in
};
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
networking = {
networkmanager.enable = true;
interfaces = listToAttrs (builtins.map

View file

@ -9,7 +9,7 @@ in
{
options.eboskma.nginx-proxy-manager = { enable = mkEnableOption "Nginx Proxy Manager"; };
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
eboskma.docker.enable = true;
virtualisation.oci-containers.containers = {

View file

@ -9,7 +9,7 @@ in
{
options.eboskma.sound.enable = mkEnableOption "activate sound settings";
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
sound.enable = true;
services = {
pipewire = {

View file

@ -11,7 +11,7 @@ in
enable = mkEnableOption "activate systemd settings";
};
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
services.resolved = {
enable = true;
};

View file

@ -10,5 +10,5 @@ in
options.eboskma.desktop = { enable = mkEnableOption "desktop configuration"; };
config =
mkIf (cfg.enable) { };
mkIf cfg.enable { };
}