diff --git a/flake.nix b/flake.nix index 530e416..6eb999f 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,13 @@ url = "github:nix-darwin/nix-darwin/nix-darwin-26.05"; inputs.nixpkgs.follows = "nixpkgs"; }; + nix-homebrew = { + url = "github:zhaofengli/nix-homebrew"; + }; + home-manager = { + url = "github:nix-community/home-manager/master"; + inputs.nixpkgs.follows = "nixpkgs"; + }; sops-nix = { url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; @@ -19,11 +26,19 @@ url = "git+ssh://git@git.nyxerinys.dev:222/nyxerinys/nix-secrets"; flake = false; }; + }; - outputs = { self, nixpkgs, nix-darwin, ... } @ inputs: + 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 = { @@ -60,6 +75,7 @@ modules = [ # ./hosts/base.nix ./hosts/artemis + homeConf ]; specialArgs = { inherit inputs; }; }; diff --git a/hosts/artemis/default.nix b/hosts/artemis/default.nix index 7ed4514..ae28d50 100644 --- a/hosts/artemis/default.nix +++ b/hosts/artemis/default.nix @@ -3,6 +3,7 @@ { environment.systemPackages = with pkgs; [ vscodium + git ]; security.pam.services.sudo_local.touchIdAuth = true; ids.gids.nixbld = 350; diff --git a/modules/home/nyxerinys/default.nix b/modules/home/nyxerinys/default.nix new file mode 100644 index 0000000..fdc4c85 --- /dev/null +++ b/modules/home/nyxerinys/default.nix @@ -0,0 +1,21 @@ +{ config, pkgs, ... }: + +{ + # Home Manager needs a bit of information about you and the + # paths it should manage. + home.username = "nyxerinys"; + home.homeDirectory = "/home/nyxerinys"; + + # This value determines the Home Manager release that your + # configuration is compatible with. This helps avoid breakage + # when a new Home Manager release introduces backwards + # incompatible changes. + # + # You can update Home Manager without changing this value. See + # the Home Manager release notes for a list of state version + # changes in each release. + home.stateVersion = "26.05"; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; +} \ No newline at end of file