all repos — nixfiles @ 628ecc905b8f61033263d678fa43f9a68c9956e0

System and user configuration, managed by nix and home-manager

Configure home-manager via flakes on prefect
Alan Pearce alan@alanpearce.eu
Wed, 12 Oct 2022 09:28:30 +0200
commit

628ecc905b8f61033263d678fa43f9a68c9956e0

parent

017d0672aaa6ff6d05f5bce4f7f7bdc19f679b26

3 files changed, 8 insertions(+), 2 deletions(-)

jump to
M flake.nixflake.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.nixuser/config.nix
@@ -1,3 +1,4 @@ { pkgs }: {
   allowUnfree = true;
+  allowUnfreePredicate = (pkg: true);
 }
M user/prefect.nixuser/prefect.nix
@@ -2,7 +2,6 @@ { config, pkgs, ... }: 
 {
   imports = [
-    ../private
     ./settings/base.nix
     ./settings/dunst.nix
     ./settings/emacs.nix