refactor new dots again (wip)

This commit is contained in:
Ruben 2024-04-17 16:49:24 -05:00
commit 6d62735177
No known key found for this signature in database
GPG key ID: AE181294E97E4802
2 changed files with 21 additions and 0 deletions

View file

@ -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

View file

@ -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 = {