Run statix fix

This commit is contained in:
Erwin Boskma 2022-10-05 11:32:13 +02:00
parent e04d0829c2
commit 63c3e235f6
Signed by: erwin
GPG key ID: 270B20D17394F7E5
9 changed files with 10 additions and 10 deletions

View file

@ -11,7 +11,7 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
nixos-hardware.url = github:NixOS/nixos-hardware; nixos-hardware.url = "github:NixOS/nixos-hardware";
nixos-generators = { nixos-generators = {
url = "github:nix-community/nixos-generators"; url = "github:nix-community/nixos-generators";

View file

@ -41,7 +41,7 @@ in
}; };
}; };
config = mkIf (cfg.enable) { config = mkIf cfg.enable {
home.packages = [ pkgs.rclone ]; home.packages = [ pkgs.rclone ];
systemd.user.services = builtins.listToAttrs (builtins.map systemd.user.services = builtins.listToAttrs (builtins.map
@ -56,7 +56,7 @@ in
Unit = { Unit = {
Description = "rclone mount ${unitName}"; Description = "rclone mount ${unitName}";
After = [ "network.target" ]; After = [ "network.target" ];
AssertPathIsDirectory = (toString mount.local); AssertPathIsDirectory = toString mount.local;
}; };
Service = { Service = {

View file

@ -189,7 +189,7 @@ in
"${mod}+l" = "exec ${swaylockcmd}"; "${mod}+l" = "exec ${swaylockcmd}";
"${mod}+p" = "mode resize"; "${mod}+p" = "mode resize";
"${mod}+c" = mkIf (config.eboskma.programs.emacs.enable) "exec ${config.eboskma.programs.emacs.package}/bin/emacsclient -c"; "${mod}+c" = mkIf config.eboskma.programs.emacs.enable "exec ${config.eboskma.programs.emacs.package}/bin/emacsclient -c";
"${mod}+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq -r '.[] | select(.focused) | .name')"; "${mod}+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq -r '.[] | select(.focused) | .name')";
"${mod}+Shift+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq -r '.[] | select(.focused) | .name') - | ${pkgs.wl-clipboard}/bin/wl-copy -t \"image/png\" -f"; "${mod}+Shift+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq -r '.[] | select(.focused) | .name') - | ${pkgs.wl-clipboard}/bin/wl-copy -t \"image/png\" -f";

View file

@ -6,7 +6,7 @@ in
{ {
options.eboskma.libvirtd = { enable = mkEnableOption "libvirtd"; }; options.eboskma.libvirtd = { enable = mkEnableOption "libvirtd"; };
config = mkIf (cfg.enable) { config = mkIf cfg.enable {
virtualisation.libvirtd = { virtualisation.libvirtd = {
enable = true; enable = true;
allowedBridges = [ "br0" ]; allowedBridges = [ "br0" ];

View file

@ -6,7 +6,7 @@ in
{ {
options.eboskma.nix-serve = { enable = mkEnableOption "nix-serve"; }; options.eboskma.nix-serve = { enable = mkEnableOption "nix-serve"; };
config = mkIf (cfg.enable) { config = mkIf cfg.enable {
services.nix-serve = { services.nix-serve = {
enable = true; enable = true;
secretKeyFile = "/var/cache-priv-key.pem"; secretKeyFile = "/var/cache-priv-key.pem";

View file

@ -6,7 +6,7 @@ in
{ {
options.eboskma.tablet = { enable = mkEnableOption "tablet"; }; options.eboskma.tablet = { enable = mkEnableOption "tablet"; };
config = mkIf (cfg.enable) { config = mkIf cfg.enable {
hardware.opentabletdriver = { hardware.opentabletdriver = {
enable = true; enable = true;
daemon.enable = true; daemon.enable = true;

View file

@ -67,7 +67,7 @@ in
}; };
}; };
config = mkIf (cfg.enable) { config = mkIf cfg.enable {
networking = { networking = {
nat = { nat = {
enable = true; enable = true;

View file

@ -8,7 +8,7 @@ in
{ {
options.eboskma.users.builder = { enable = mkEnableOption "builder"; }; options.eboskma.users.builder = { enable = mkEnableOption "builder"; };
config = mkIf (cfg.enable) { config = mkIf cfg.enable {
users.users.builder = { users.users.builder = {
isSystemUser = true; isSystemUser = true;
group = "builder"; group = "builder";

View file

@ -8,7 +8,7 @@ in
imports = [ ./desktop.nix ]; imports = [ ./desktop.nix ];
config = mkIf (cfg.enable) { config = mkIf cfg.enable {
users.users.erwin = { users.users.erwin = {
isNormalUser = true; isNormalUser = true;