Skip to content

Commit

Permalink
Add formatter to flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Aug 13, 2024
1 parent 9302fa2 commit 36d76d1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
};

nixosModules.tclip = {
pkgs,
config,
lib,
...
Expand All @@ -40,7 +41,7 @@
description = ''
tclip package to use
'';
default = self.packages."${system}".tclipd;
default = self.packages."${pkgs.system}".tclipd;
};

dataDir = mkOption {
Expand Down Expand Up @@ -85,7 +86,7 @@
};
config = mkIf cfg.enable {
environment.systemPackages = [
self.packages."${system}".tclip
self.packages."${pkgs.system}".tclip
];

users.users."${cfg.user}" = {
Expand Down Expand Up @@ -154,6 +155,10 @@
};
version = builtins.substring 0 8 self.lastModifiedDate;
in {
# Formatter for your nix files, available through 'nix fmt'
# Other options beside 'alejandra' include 'nixpkgs-fmt'
formatter = pkgs.alejandra;

packages = rec {
tclipd = pkgs.buildGoApplication {
pname = "tclipd";
Expand Down

0 comments on commit 36d76d1

Please sign in to comment.