force homemanager to be installed from flake (stupid nixos/nix-darwin not leting me import dynamically)
This commit is contained in:
parent
31e8e6f462
commit
c5db0903fa
5 changed files with 9 additions and 17 deletions
|
|
@ -63,13 +63,6 @@
|
|||
outputs = { self, nixpkgs, nix-darwin, home-manager, ... } @ inputs:
|
||||
let
|
||||
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
|
||||
{
|
||||
nixosConfigurations = {
|
||||
|
|
@ -78,6 +71,7 @@
|
|||
./hosts/base.nix
|
||||
./hosts/apollo
|
||||
./modules/home
|
||||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
|
|
@ -109,6 +103,7 @@
|
|||
# ./hosts/base.nix
|
||||
./hosts/artemis
|
||||
./modules/home
|
||||
home-manager.darwinModules.home-manager
|
||||
];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@
|
|||
./hyprland.nix
|
||||
];
|
||||
|
||||
nyxs-nix.services = {
|
||||
home.enable = true;
|
||||
};
|
||||
|
||||
networking.hostName = "apollo";
|
||||
networking.hostId = "40ced703";
|
||||
networking.networkmanager.insertNameservers = [ "10.5.0.1" "1.1.1.1" ];
|
||||
|
|
|
|||
|
|
@ -26,10 +26,7 @@
|
|||
];
|
||||
|
||||
nyxs-nix.services = {
|
||||
home ={
|
||||
enable = true;
|
||||
isMacOS = true;
|
||||
};
|
||||
home.enable = true;
|
||||
};
|
||||
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
|
|
|||
|
|
@ -3,11 +3,7 @@ with lib;
|
|||
let
|
||||
cfg = config.nyxs-nix.services.home;
|
||||
in {
|
||||
imports = if pkgs.stdenv.isLinux
|
||||
then [ inputs.home-manager.nixosModules.home-manager ]
|
||||
else [ inputs.home-manager.darwinModules.home-manager ];
|
||||
|
||||
options.nyxs-nix.services.home = with types; {
|
||||
options.nyxs-nix.services.home = with lib.types; {
|
||||
enable = mkEnableOption "Enable Home Manager";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = if pkgs.stdenv.pkgs.stdenv.isLinux
|
||||
imports = if pkgs.stdenv.isLinux
|
||||
then [ ./linux ]
|
||||
else [ ./mac ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue