mirror of
https://git.gay/sneexy/nixos.git
synced 2026-01-11 05:03:15 -08:00
refactor new dots again (wip)
This commit is contained in:
parent
ae81bfe6eb
commit
6d62735177
2 changed files with 21 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue