Configure home-manager via flakes on prefect
Alan Pearce alan@alanpearce.eu
Wed, 12 Oct 2022 09:28:30 +0200
3 files changed, 8 insertions(+), 2 deletions(-)
M flake.nix → flake.nix
@@ -18,6 +18,8 @@ let darwinSystem = "x86_64-darwin"; # aarch64 is still failing on some compiler-rt derivation darwinPkgs = nixpkgs.legacyPackages.${darwinSystem}; + nixosSystem = "x86_64-linux"; + nixosPkgs = nixpkgs.legacyPackages.${nixosSystem}; in { nixosConfigurations.prefect = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -29,9 +31,13 @@ system = darwinSystem; specialArgs = attrs; modules = [ ./system/mba.nix ]; }; - homeConfigurations.mba = home-manager.lib.homeManagerConfiguration { + homeConfigurations.mba= home-manager.lib.homeManagerConfiguration { pkgs = darwinPkgs; modules = [ ./user/mba.nix (secrets + "/default.nix") ]; + }; + homeConfigurations.prefect= home-manager.lib.homeManagerConfiguration { + pkgs = nixosPkgs; + modules = [ ./user/prefect.nix (secrets + "/default.nix") ]; }; }; }
M user/config.nix → user/config.nix
@@ -1,3 +1,4 @@ { pkgs }: { allowUnfree = true; + allowUnfreePredicate = (pkg: true); }
M user/prefect.nix → user/prefect.nix
@@ -2,7 +2,6 @@ { config, pkgs, ... }: { imports = [ - ../private ./settings/base.nix ./settings/dunst.nix ./settings/emacs.nix