change formatter to nixfmt-tree, reformat
This commit is contained in:
parent
14eb2e1aaa
commit
506aed82ff
4 changed files with 29 additions and 13 deletions
18
flake.nix
18
flake.nix
|
@ -85,6 +85,19 @@
|
||||||
"ronja-pc"
|
"ronja-pc"
|
||||||
];
|
];
|
||||||
forDevice = f: nixpkgs.lib.mapAttrs f devices;
|
forDevice = f: nixpkgs.lib.mapAttrs f devices;
|
||||||
|
supported-systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
forAllSystems =
|
||||||
|
f:
|
||||||
|
nixpkgs.lib.genAttrs supported-systems (
|
||||||
|
system:
|
||||||
|
f rec {
|
||||||
|
inherit system;
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
}
|
||||||
|
);
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
nixosConfigurations = forDevice (
|
nixosConfigurations = forDevice (
|
||||||
|
@ -148,9 +161,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter = {
|
formatter = forAllSystems ({ pkgs, ... }: pkgs.nixfmt-tree);
|
||||||
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
|
||||||
aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.nixfmt-rfc-style;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
home.packages = with pkgs.gnomeExtensions; [
|
home.packages =
|
||||||
|
with pkgs.gnomeExtensions;
|
||||||
|
[
|
||||||
gsconnect
|
gsconnect
|
||||||
# battery-health-charging
|
# battery-health-charging
|
||||||
quick-settings-tweaker
|
quick-settings-tweaker
|
||||||
solaar-extension
|
solaar-extension
|
||||||
alphabetical-app-grid
|
alphabetical-app-grid
|
||||||
] ++ (with pkgs; [foliate]);
|
]
|
||||||
|
++ (with pkgs; [ foliate ]);
|
||||||
|
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/shell" = {
|
"org/gnome/shell" = {
|
||||||
|
|
|
@ -37,6 +37,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 8776 1337 ];
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
8776
|
||||||
|
1337
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue