diff options
| author | seth <[email protected]> | 2023-02-22 02:22:10 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-02-22 02:22:10 -0500 |
| commit | 01ccb0cead584733e6c89fcad44c441fe05bc5c7 (patch) | |
| tree | 54703a80882ed366b237c27f88b858f3106eb0e3 /flake.nix | |
| parent | 9c4a04054f5c72c3c66973b0bea06d10e042947c (diff) | |
switch back to alejandra
nixpkgs-fmt is weird...
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 124 |
1 files changed, 61 insertions, 63 deletions
@@ -9,73 +9,71 @@ lanzaboote.url = "github:nix-community/lanzaboote"; }; - outputs = - inputs @ { home-manager - , lanzaboote - , nixos-hardware - , nixos-wsl - , nixpkgs - , nixpkgsUnstable - , ... - }: - let - util = import ./util { inherit inputs home-manager; }; - inherit (util) host user; - in - { - homeConfigurations = { - seth = user.mkHMUser { - username = "seth"; - stateVersion = "23.05"; - channel = nixpkgsUnstable; - modules = [ ]; - }; + outputs = inputs @ { + home-manager, + lanzaboote, + nixos-hardware, + nixos-wsl, + nixpkgs, + nixpkgsUnstable, + ... + }: let + util = import ./util {inherit inputs home-manager;}; + inherit (util) host user; + in { + homeConfigurations = { + seth = user.mkHMUser { + username = "seth"; + stateVersion = "23.05"; + channel = nixpkgsUnstable; + modules = []; }; + }; - nixosConfigurations = - (host.mkHost { - name = "glados"; - modules = [ - nixos-hardware.nixosModules.common-cpu-amd-pstate - nixos-hardware.nixosModules.common-gpu-nvidia-nonprime - nixos-hardware.nixosModules.common-pc-ssd - lanzaboote.nixosModules.lanzaboote + nixosConfigurations = + (host.mkHost { + name = "glados"; + modules = [ + nixos-hardware.nixosModules.common-cpu-amd-pstate + nixos-hardware.nixosModules.common-gpu-nvidia-nonprime + nixos-hardware.nixosModules.common-pc-ssd + lanzaboote.nixosModules.lanzaboote - ./users/seth - ]; - specialArgs = { - desktop = "gnome"; - wsl = false; - }; - version = "23.05"; - pkgs = nixpkgsUnstable; - }) - // (host.mkHost { - name = "glados-wsl"; - modules = [ - nixos-wsl.nixosModules.wsl + ./users/seth + ]; + specialArgs = { + desktop = "gnome"; + wsl = false; + }; + version = "23.05"; + pkgs = nixpkgsUnstable; + }) + // (host.mkHost { + name = "glados-wsl"; + modules = [ + nixos-wsl.nixosModules.wsl - { - wsl = { - enable = true; - defaultUser = "seth"; - nativeSystemd = true; - wslConf.network.hostname = "glados-wsl"; - startMenuLaunchers = false; - interop.includePath = false; - }; - } + { + wsl = { + enable = true; + defaultUser = "seth"; + nativeSystemd = true; + wslConf.network.hostname = "glados-wsl"; + startMenuLaunchers = false; + interop.includePath = false; + }; + } - ./users/seth - ]; - specialArgs = { - desktop = ""; - wsl = true; - }; - version = "23.05"; - pkgs = nixpkgsUnstable; - }); + ./users/seth + ]; + specialArgs = { + desktop = ""; + wsl = true; + }; + version = "23.05"; + pkgs = nixpkgsUnstable; + }); - formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt; - }; + formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra; + }; } |
