diff --git a/flake.nix b/flake.nix index 371486a..d88713b 100644 --- a/flake.nix +++ b/flake.nix @@ -35,6 +35,7 @@ vscode-server, sops-nix, osbm-nvim, + home-manager, ... }: { nixosConfigurations = let @@ -51,6 +52,7 @@ ./hosts/tartarus/configuration.nix vscode-server.nixosModules.default sops-nix.nixosModules.sops + home-manager.nixosModules.home-manager ]; specialArgs = { inherit pkgs-unstable system-label osbm-nvim; diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..f3d083f --- /dev/null +++ b/home.nix @@ -0,0 +1,27 @@ +{ config, pkgs, ... }: + +{ + # Home Manager needs a bit of information about you and the + # paths it should manage. + home.username = "osbm"; + home.homeDirectory = "/home/osbm"; + + # Packages that should be installed to the user profile. + home.packages = [ + pkgs.htop + pkgs.fortune + ]; + + # 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 = "24.11"; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + diff --git a/hosts/tartarus/configuration.nix b/hosts/tartarus/configuration.nix index f00c482..8b605ed 100644 --- a/hosts/tartarus/configuration.nix +++ b/hosts/tartarus/configuration.nix @@ -30,6 +30,11 @@ services.vscode-server.enable = true; + + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.osbm = import ./home.nix; + virtualisation.virtualbox.host.enable = true; users.extraGroups.vboxusers.members = ["osbm"];