Fix lint errors with statix
This commit is contained in:
parent
9655d89655
commit
4585c5e899
25 changed files with 30 additions and 30 deletions
|
@ -11,7 +11,7 @@ in
|
||||||
enable = mkEnableOption "enable bat";
|
enable = mkEnableOption "enable bat";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
enable = mkEnableOption "activate dunst";
|
enable = mkEnableOption "activate dunst";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
services.dunst = {
|
services.dunst = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
|
|
|
@ -12,8 +12,8 @@ in
|
||||||
wayland = mkEnableOption "set Wayland compatibility settings";
|
wayland = mkEnableOption "set Wayland compatibility settings";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
xdg.configFile.electron_conf = mkIf (cfg.wayland) {
|
xdg.configFile.electron_conf = mkIf cfg.wayland {
|
||||||
target = "electron-flags.conf";
|
target = "electron-flags.conf";
|
||||||
text = ''
|
text = ''
|
||||||
--enable-features=UseOzonePlatform
|
--enable-features=UseOzonePlatform
|
||||||
|
|
|
@ -31,13 +31,13 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = emacs;
|
package = emacs;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.emacs = mkIf (cfg.daemon) {
|
services.emacs = mkIf cfg.daemon {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = emacs;
|
package = emacs;
|
||||||
client.enable = true;
|
client.enable = true;
|
||||||
|
|
|
@ -79,7 +79,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox-bin;
|
package = pkgs.firefox-bin;
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
enable = mkEnableOption "Enable fish shell";
|
enable = mkEnableOption "Enable fish shell";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
functions = import ./functions.nix { inherit (pkgs) git; };
|
functions = import ./functions.nix { inherit (pkgs) git; };
|
||||||
|
@ -32,9 +32,9 @@ in
|
||||||
# code = "${pkgs.vscode}/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland";
|
# code = "${pkgs.vscode}/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland";
|
||||||
ls = "${pkgs.exa}/bin/exa -Fb --git";
|
ls = "${pkgs.exa}/bin/exa -Fb --git";
|
||||||
|
|
||||||
vimdiff = mkIf (config.eboskma.programs.neovim.enable) "nvim -d";
|
vimdiff = mkIf config.eboskma.programs.neovim.enable "nvim -d";
|
||||||
vim = mkIf (config.eboskma.programs.neovim.enable) "nvim";
|
vim = mkIf config.eboskma.programs.neovim.enable "nvim";
|
||||||
vi = mkIf (config.eboskma.programs.neovim.enable) "nvim";
|
vi = mkIf config.eboskma.programs.neovim.enable "nvim";
|
||||||
};
|
};
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -27,7 +27,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = cfg.name;
|
userName = cfg.name;
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
enable = mkEnableOption "enable gpg";
|
enable = mkEnableOption "enable gpg";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pinentry-gnome
|
pinentry-gnome
|
||||||
];
|
];
|
||||||
|
|
|
@ -9,7 +9,7 @@ in
|
||||||
{
|
{
|
||||||
options.eboskma.programs.solvespace = { enable = mkEnableOption "activate solvespace"; };
|
options.eboskma.programs.solvespace = { enable = mkEnableOption "activate solvespace"; };
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
solvespace
|
solvespace
|
||||||
];
|
];
|
||||||
|
|
|
@ -9,7 +9,7 @@ in
|
||||||
{
|
{
|
||||||
options.eboskma.programs.ssh = { enable = mkEnableOption "activate ssh"; };
|
options.eboskma.programs.ssh = { enable = mkEnableOption "activate ssh"; };
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hashKnownHosts = true;
|
hashKnownHosts = true;
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
enable = mkEnableOption "enable tmux";
|
enable = mkEnableOption "enable tmux";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
prefix = "C-a";
|
prefix = "C-a";
|
||||||
|
|
|
@ -9,7 +9,7 @@ in
|
||||||
{
|
{
|
||||||
options.eboskma.programs.zathura = { enable = mkEnableOption "activate zathura"; };
|
options.eboskma.programs.zathura = { enable = mkEnableOption "activate zathura"; };
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
programs.zathura = {
|
programs.zathura = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
let
|
let
|
||||||
krops = builtins.fetchGit {
|
krops = builtins.fetchGit {
|
||||||
url = https://cgit.krebsco.de/krops/;
|
url = "https://cgit.krebsco.de/krops/";
|
||||||
};
|
};
|
||||||
|
|
||||||
lib = import "${krops}/lib";
|
lib = import "${krops}/lib";
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
enable = mkEnableOption "enable v4l2loopback kernel module";
|
enable = mkEnableOption "enable v4l2loopback kernel module";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
||||||
# Register a v4l2loopback device at boot
|
# Register a v4l2loopback device at boot
|
||||||
boot.kernelModules = [
|
boot.kernelModules = [
|
||||||
|
|
|
@ -33,7 +33,7 @@ in
|
||||||
config = {
|
config = {
|
||||||
boot.kernelPackages = cfg.kernel;
|
boot.kernelPackages = cfg.kernel;
|
||||||
|
|
||||||
boot.plymouth = mkIf (cfg.plymouth.enable) {
|
boot.plymouth = mkIf cfg.plymouth.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
enable = mkEnableOption "activate bluetooth";
|
enable = mkEnableOption "activate bluetooth";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,7 @@ in
|
||||||
{
|
{
|
||||||
options.eboskma.gitea = { enable = mkEnableOption "gitea"; };
|
options.eboskma.gitea = { enable = mkEnableOption "gitea"; };
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "git";
|
user = "git";
|
||||||
|
|
|
@ -9,7 +9,7 @@ in
|
||||||
{
|
{
|
||||||
options.eboskma.gnome.enable = mkEnableOption "activate gnome support settings";
|
options.eboskma.gnome.enable = mkEnableOption "activate gnome support settings";
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gnomeExtensions.appindicator
|
gnomeExtensions.appindicator
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
|
|
|
@ -12,7 +12,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config =
|
||||||
mkIf (cfg.enable)
|
mkIf cfg.enable
|
||||||
{
|
{
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -19,7 +19,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
eboskma.docker.enable = true;
|
eboskma.docker.enable = true;
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
|
|
|
@ -21,7 +21,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
interfaces = listToAttrs (builtins.map
|
interfaces = listToAttrs (builtins.map
|
||||||
|
|
|
@ -9,7 +9,7 @@ in
|
||||||
{
|
{
|
||||||
options.eboskma.nginx-proxy-manager = { enable = mkEnableOption "Nginx Proxy Manager"; };
|
options.eboskma.nginx-proxy-manager = { enable = mkEnableOption "Nginx Proxy Manager"; };
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
eboskma.docker.enable = true;
|
eboskma.docker.enable = true;
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = {
|
||||||
|
|
|
@ -9,7 +9,7 @@ in
|
||||||
{
|
{
|
||||||
options.eboskma.sound.enable = mkEnableOption "activate sound settings";
|
options.eboskma.sound.enable = mkEnableOption "activate sound settings";
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
services = {
|
services = {
|
||||||
pipewire = {
|
pipewire = {
|
||||||
|
|
|
@ -11,7 +11,7 @@ in
|
||||||
enable = mkEnableOption "activate systemd settings";
|
enable = mkEnableOption "activate systemd settings";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,5 +10,5 @@ in
|
||||||
options.eboskma.desktop = { enable = mkEnableOption "desktop configuration"; };
|
options.eboskma.desktop = { enable = mkEnableOption "desktop configuration"; };
|
||||||
|
|
||||||
config =
|
config =
|
||||||
mkIf (cfg.enable) { };
|
mkIf cfg.enable { };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue