Closed different-name closed 2 months ago
Though a lot of files just change one option, and so it would be pretty pointless to create a wrapper option for that, in which case it would make more sense to just apply the option in the profile - which just means adding them all into one file, at least for the global file
Currently, this issue is solved by using the default files and grouping folders together to be bulk imported, meaning that only items in the extra folder are imported by themselves
I can't think of a good solution for this
Quick note: a option based system would allow for enabling optional system modules if a optional home manager module is enabled, for example enabling the goxlr home manager config would enable the system goxlr config
I'm also growing less fond of how many folders there are in the config, I think consolidating global, desktop & extra categories would be a good thing
Reopening this, as I should come up with some kind of solution to cleanly implement an option based system
Perhaps the single line configuration files could just replace the import, i don't think it matters if they are duplicated across profiles in this case
https://github.com/different-name/nix-files/commit/f3518069b72cb451b76c77013cb81aa510c35850 refactors the system config to use modules, home is yet to be done
The only backward imports are from system/hosts/default.nix to system/default.nix, which should be fixed, probably by moving the contents of system/hosts/default.nix inside flake.nix. The other backward imports are for age secret files, which is fine :star:
https://github.com/different-name/nix-files/commit/30fd984381a82e12b615893bd029eb85d677218c refactors the home config to use modules
There's quite a big more backward imports, going up each directory from home/users/hosts/
TODO:
Import of home manager config should be done in user file and could use hostname as part of path so that it does not need to be hard coded
Catppuccin should be in the global profile in home, but doesnt really fit into any of the current folders outside of graphical/meta
Catppuccin should be in the global profile in home, but doesnt really fit into any of the current folders outside of graphical/meta
moving this into the root of the common folder, alongside persistence.nix
Completed everything I wanted to for now, I am keeping the home config backward imports leading up from the host files -> user files and across to the common modules, as this structure makes the most sense to me