From 8c79754090b059a9ad4f40af5e083a9478e0415c Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Thu, 11 Nov 2021 13:27:05 +0000 Subject: [PATCH] Fix indentation --- flake.nix | 108 +++++++++++++++++++++++++++--------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/flake.nix b/flake.nix index 6f61524..8db7c1d 100644 --- a/flake.nix +++ b/flake.nix @@ -1,70 +1,70 @@ { - description = "My System Configs"; + description = "My System Configs"; - inputs = { - nixpkgs.url = "nixpkgs/nixos-unstable"; + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; - i3utils.url = "git+file:///home/daniel/go/src/i3utils"; + i3utils.url = "git+file:///home/daniel/go/src/i3utils"; - home-manager.url = "github:nix-community/home-manager/master"; - home-manager.inputs.nixpkgs.follows = "nixpkgs"; - }; + home-manager.url = "github:nix-community/home-manager/master"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; - outputs = { nixpkgs, home-manager, i3utils, ... }: - let - system = "x86_64-linux"; + outputs = { nixpkgs, home-manager, i3utils, ... }: + let + system = "x86_64-linux"; - pkgs = import nixpkgs { - inherit system; + pkgs = import nixpkgs { + inherit system; - config = { - allowUnfree = true; - }; - }; + config = { + allowUnfree = true; + }; + }; - lib = nixpkgs.lib; + lib = nixpkgs.lib; - hostSystem = { hostname }: lib.nixosSystem { - inherit system; + hostSystem = { hostname }: lib.nixosSystem { + inherit system; - modules = [ - ./hosts/${hostname}/configuration.nix - ({ pkgs, ... }: { - nixpkgs.overlays = [ i3utils.overlay ]; - }) - ]; - }; + modules = [ + ./hosts/${hostname}/configuration.nix + ({ pkgs, ... }: { + nixpkgs.overlays = [ i3utils.overlay ]; + }) + ]; + }; - mkUserConf = { hostname, extraSauce ? [] }: - home-manager.lib.homeManagerConfiguration { - inherit system pkgs; + mkUserConf = { hostname, extraSauce ? [] }: + home-manager.lib.homeManagerConfiguration { + inherit system pkgs; - username = "daniel"; - homeDirectory = "/home/daniel"; - configuration = { - imports = [ - ./user/daniel/home.nix - ({ pkgs, ... }: { - nixpkgs.overlays = [ i3utils.overlay ]; - }) - ] ++ extraSauce; - }; - stateVersion = "21.05"; - }; + username = "daniel"; + homeDirectory = "/home/daniel"; + configuration = { + imports = [ + ./user/daniel/home.nix + ({ pkgs, ... }: { + nixpkgs.overlays = [ i3utils.overlay ]; + }) + ] ++ extraSauce; + }; + stateVersion = "21.05"; + }; - in { - homeConfigurations = { - daniel-dingbox = mkUserConf { hostname = "dingbox"; }; - daniel-miniding = mkUserConf { - hostname = "miniding"; - extraSauce = [ ./user/host-specific/miniding ]; - }; - }; + in { + homeConfigurations = { + daniel-dingbox = mkUserConf { hostname = "dingbox"; }; + daniel-miniding = mkUserConf { + hostname = "miniding"; + extraSauce = [ ./user/host-specific/miniding ]; + }; + }; - nixosConfigurations = { - dingbox = hostSystem { hostname = "dingbox"; }; - miniding = hostSystem { hostname = "miniding"; }; - }; - }; + nixosConfigurations = { + dingbox = hostSystem { hostname = "dingbox"; }; + miniding = hostSystem { hostname = "miniding"; }; + }; + }; }