Skip to content

Commit

Permalink
style: add statix formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
brckd committed Sep 28, 2024
1 parent 0a9a79a commit 0a87c0c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion configs/home/droid/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{...}: {
_: {
stylix = {
enable = true;
autoEnable = false;
Expand Down
2 changes: 1 addition & 1 deletion configs/home/john/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{...}: {
_: {
home = {
username = "john";
homeDirectory = "/home/john";
Expand Down
2 changes: 1 addition & 1 deletion configs/home/personal/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{...}: {
_: {
home = {
username = "personal";
homeDirectory = "/home/personal";
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
treefmt.config = {
projectRootFile = "flake.nix";
programs = {
statix.enable = true;
alejandra.enable = true;
prettier.enable = true;
};
Expand Down
2 changes: 1 addition & 1 deletion modules/droid/default.nix
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{...}: {
_: {
}
4 changes: 2 additions & 2 deletions modules/home/heroic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ in {

settings = {
general = mkOption {
type = json.type;
inherit (json) type;
default = {};
description = "Attribute set of general Heroic settings.";
};

store = mkOption {
type = json.type;
inherit (json) type;
default = {};
description = "Attribute set of Heroic store settings.";
};
Expand Down
12 changes: 6 additions & 6 deletions modules/nixos/nautilus/extensions/open-any-terminal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ with lib; let
cfg = config.programs.nautilus.extensions.open-any-terminal;
in {
options.programs.nautilus.extensions.open-any-terminal = {
enable = mkEnableOption "opening terminal emulators other than gnome-terminal";
terminal = mkOption {
type = with types; nullOr str;
default = null;
};
enable = mkEnableOption "opening terminal emulators other than gnome-terminal";
terminal = mkOption {
type = with types; nullOr str;
default = null;
};
};
config = mkIf cfg.enable {
programs.nautilus-open-any-terminal = {
enable = true;
terminal = cfg.terminal;
inherit (cfg) terminal;
};

programs.nautilus.extensions.python.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/nautilus/extensions/python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ in {
"/share/nautilus-python/extensions"
];

systemPackages = with pkgs; [ nautilus-python ];
systemPackages = with pkgs; [nautilus-python];
};
};
}

0 comments on commit 0a87c0c

Please sign in to comment.