From 1c632d6245d2b84dd09aa483f8742840885ec87a Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 3 Jan 2025 09:21:31 -0500 Subject: refactor nix a bit --- home/nix/flake.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'home/nix/flake.nix') diff --git a/home/nix/flake.nix b/home/nix/flake.nix index e1f3527..3e2afb1 100644 --- a/home/nix/flake.nix +++ b/home/nix/flake.nix @@ -15,31 +15,31 @@ }; outputs = { - self, nixpkgs, home-manager, nixgl, ... - } @ inputs: let - inherit (self) outputs; + }: + let system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.${system}; - overlays = [ - nixgl.overlay - ]; + username = "freya"; in { - homeConfigurations."freya" = + homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration { - inherit pkgs; - extraSpecialArgs = {inherit inputs outputs;}; + pkgs = nixpkgs.legacyPackages.${system}; modules = [ - {nixpkgs.overlays = overlays;} ./home.nix - { + ({ _module.args = { inherit nixgl; }; - } + nixpkgs.overlays = [ nixgl.overlay ]; + home = { + inherit username; + homeDirectory = "/home/${username}"; + stateVersion = "25.05"; + }; + }) ]; }; }; -- cgit v1.2.3-freya