force homemanager to be installed from flake (stupid nixos/nix-darwin not leting me import dynamically)

This commit is contained in:
nyxerinys 2026-10-03 22:21:44 -05:00
parent 31e8e6f462
commit c5db0903fa
5 changed files with 9 additions and 17 deletions

View file

@ -63,13 +63,6 @@
outputs = { self, nixpkgs, nix-darwin, home-manager, ... } @ inputs: outputs = { self, nixpkgs, nix-darwin, home-manager, ... } @ inputs:
let let
blades = import ./hosts/servers/blades/systems.nix { inherit inputs; }; blades = import ./hosts/servers/blades/systems.nix { inherit inputs; };
homeConf = home-manager.darwinModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
# Pass the home.nix configuration to your specific user profile
home-manager.users."nyxerinys" = import ./modules/home/nyxerinys;
};
in in
{ {
nixosConfigurations = { nixosConfigurations = {
@ -78,6 +71,7 @@
./hosts/base.nix ./hosts/base.nix
./hosts/apollo ./hosts/apollo
./modules/home ./modules/home
home-manager.nixosModules.home-manager
]; ];
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
}; };
@ -109,6 +103,7 @@
# ./hosts/base.nix # ./hosts/base.nix
./hosts/artemis ./hosts/artemis
./modules/home ./modules/home
home-manager.darwinModules.home-manager
]; ];
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
}; };

View file

@ -9,6 +9,10 @@
./hyprland.nix ./hyprland.nix
]; ];
nyxs-nix.services = {
home.enable = true;
};
networking.hostName = "apollo"; networking.hostName = "apollo";
networking.hostId = "40ced703"; networking.hostId = "40ced703";
networking.networkmanager.insertNameservers = [ "10.5.0.1" "1.1.1.1" ]; networking.networkmanager.insertNameservers = [ "10.5.0.1" "1.1.1.1" ];

View file

@ -26,10 +26,7 @@
]; ];
nyxs-nix.services = { nyxs-nix.services = {
home ={ home.enable = true;
enable = true;
isMacOS = true;
};
}; };
security.pam.services.sudo_local.touchIdAuth = true; security.pam.services.sudo_local.touchIdAuth = true;

View file

@ -3,11 +3,7 @@ with lib;
let let
cfg = config.nyxs-nix.services.home; cfg = config.nyxs-nix.services.home;
in { in {
imports = if pkgs.stdenv.isLinux options.nyxs-nix.services.home = with lib.types; {
then [ inputs.home-manager.nixosModules.home-manager ]
else [ inputs.home-manager.darwinModules.home-manager ];
options.nyxs-nix.services.home = with types; {
enable = mkEnableOption "Enable Home Manager"; enable = mkEnableOption "Enable Home Manager";
}; };

View file

@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = if pkgs.stdenv.pkgs.stdenv.isLinux imports = if pkgs.stdenv.isLinux
then [ ./linux ] then [ ./linux ]
else [ ./mac ]; else [ ./mac ];