♻️ config refactor cleanup

This commit is contained in:
2023-07-27 15:51:15 -04:00
parent d4b4ba1d1e
commit 19a01e278e
8 changed files with 22 additions and 31 deletions

View File

@ -1,5 +1,4 @@
{ self, system, pre-commit-hooks, ... }:
with self.pkgs.${system};
{ self, pkgs, system, pre-commit-hooks, ... }:
{
pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
@ -9,4 +8,4 @@ with self.pkgs.${system};
statix.enable = true;
};
};
} // (deploy-rs.lib.deployChecks self.deploy)
} // (pkgs.deploy-rs.lib.deployChecks self.deploy)

View File

@ -10,7 +10,7 @@ let
home-manager.darwinModules.home-manager
(_: {
networking.hostName = hostName;
nixpkgs.pkgs = self.pkgs.${hostSystem};
nixpkgs.overlays = [ self.overlays.default ];
})
] ++ modules;
specialArgs = { inherit dotfiles home-manager; };

View File

@ -10,7 +10,8 @@ let
home-manager.nixosModules.home-manager
(_: {
networking.hostName = hostName;
nixpkgs.pkgs = self.pkgs.${hostSystem};
nixpkgs.overlays = [ self.overlays.default ];
nixpkgs.config.allowUnfree = true;
})
] ++ modules;
specialArgs = { inherit dotfiles nixos-hardware sops-nix; };

View File

@ -1,16 +1,13 @@
{ system, self, ... }:
with self.pkgs.${system};
{ system, pkgs, self, ... }:
let
darwin-local = writeScriptBin "darwin-local" ''
#!${stdenv.shell}
darwin-local = pkgs.writeScriptBin "darwin-local" ''
#!${pkgs.stdenv.shell}
nix build .#darwinConfigurations.$(hostname -s).system
./result/sw/bin/darwin-rebuild switch --flake .
'';
in
{
default = mkShell {
default = pkgs.mkShell {
name = "athens";
buildInputs = with pkgs; [
darwin-local