From 2c325f63bd67c6c4c6ef97b8dd13f2b06d11039f Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 25 Feb 2026 11:40:34 +0100 Subject: [PATCH] feat: add home configuration for gentoo system. --- flake.nix | 7 +++++++ hosts/gentoo/home.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 hosts/gentoo/home.nix diff --git a/flake.nix b/flake.nix index 3ba719b..fcd9e5c 100644 --- a/flake.nix +++ b/flake.nix @@ -166,6 +166,7 @@ git-hooks, nix-on-droid, deploy-rs, + home-manager, ... } @ inputs: let hostsData = import ./hosts.nix; @@ -236,6 +237,12 @@ }) hostsData; + homeConfigurations."crony" = home-manager.lib.homeManagerConfiguration { + extraSpecialArgs = {inherit inputs;}; + pkgs = nixpkgs.legacyPackages.x86_64-linux; + modules = [./hosts/gentoo/home.nix]; + }; + devShells = { x86_64-linux.default = let system = "x86_64-linux"; diff --git a/hosts/gentoo/home.nix b/hosts/gentoo/home.nix new file mode 100644 index 0000000..266dd9b --- /dev/null +++ b/hosts/gentoo/home.nix @@ -0,0 +1,30 @@ +{ + config, + pkgs, + ... +}: { + home.username = "crony"; + home.homeDirectory = "/home/crony"; + + home.packages = [ + pkgs.sesh + ]; + + home.sessionVariables = { + }; + + programs.home-manager.enable = true; + + nix = { + package = pkgs.nix; + settings.experimental-features = ["nix-command" "flakes"]; + }; + + programs.nh = { + enable = true; + flake = "/home/crony/repos/nix-conf"; + homeFlake = "/home/crony/repos/nix-conf"; + }; + + home.stateVersion = "25.11"; # Please read the comment before changing. +}