diff --git a/README.md b/README.md index 4a22a31..be00b4b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ my custom nixos config !!! i am still new to nix as a whole so a lot of this is self reference: use `git+https://git.gay/sneexy/nixos` when referring to this repo. + + # resources - [NixOS & Flakes Book](https://nixos-and-flakes.thiscute.world) - taught me how to nix diff --git a/wip/flake.nix b/wip/flake.nix index be5c14e..01a8f1d 100644 --- a/wip/flake.nix +++ b/wip/flake.nix @@ -66,6 +66,25 @@ # pass to it, with each system as an argument forAllSystems = nixpkgs.lib.genAttrs systems; in { + # setup modules and stuff idk whats going on here + nixosModules = { + declarativeHome = { ... }: { + imports = [ home-manager.nixosModules.home-manager ]; + config = { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + }; + }; + defaults = { ... }: { + nixpkgs.config.allowUnfree = true; + nix.settings = { + experimental-features = [ "nix-command" "flakes" ]; + auto-optimise-store = true; + }; + environment.stub-ld.enable = false; # 24.05 + }; + }; + # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname' nixosConfigurations = {