From 72d083fdf7d1f8b29a1050307cd3beace5ae8096 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 29 Aug 2022 22:13:34 +0200 Subject: [PATCH] nix: set flake formatter to alejandra, do fmt --- flake.nix | 31 ++++++++++++++++++------------- home.nix | 10 +++++----- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/flake.nix b/flake.nix index 969c202..7c12793 100644 --- a/flake.nix +++ b/flake.nix @@ -10,20 +10,25 @@ }; }; - outputs = { nixpkgs, home-manager, ... }: - let - system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.${system}; - in { - homeConfigurations.vis = home-manager.lib.homeManagerConfiguration { - inherit pkgs; + outputs = { + nixpkgs, + home-manager, + ... + }: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra; - # Specify your home configuration modules here, for example, - # the path to your home.nix. - modules = [ ./home.nix ]; + homeConfigurations.vis = home-manager.lib.homeManagerConfiguration { + inherit pkgs; - # Optionally use extraSpecialArgs - # to pass through arguments to home.nix - }; + # Specify your home configuration modules here, for example, + # the path to your home.nix. + modules = [./home.nix]; + + # Optionally use extraSpecialArgs + # to pass through arguments to home.nix }; + }; } diff --git a/home.nix b/home.nix index 86ab24a..71f035d 100644 --- a/home.nix +++ b/home.nix @@ -1,7 +1,7 @@ {pkgs, ...}: { - home.username = "vis"; - home.homeDirectory = "/home/vis"; - home.stateVersion = "22.11"; - programs.home-manager.enable = true; - programs.home-manager.path = "$HOME/utils/dotfiles"; + home.username = "vis"; + home.homeDirectory = "/home/vis"; + home.stateVersion = "22.11"; + programs.home-manager.enable = true; + programs.home-manager.path = "$HOME/utils/dotfiles"; }