-
Notifications
You must be signed in to change notification settings - Fork 72
feat: add home-manager module #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Infinidoge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few miscellaneous things:
- I'd prefer it if the library stuff was moved to the root
/lib, however if it is too annoying to implement then that can be a refactor I'll look into later. - Rename
sharedtocommon. I just think it sounds better. - Note that commit messages are not conventional commits for this repo. See CONTRIBUTING for more information.
4f7e36f to
1b78d89
Compare
I can totally do that. I avoided doing so to prevent
Agreed
Fixed (I think, wasn't exactly sure what do with the module refactors) |
The main lib directory is already kinda a mix of everything tbh.
The refactor does throw a bit of a wrench into things that will have to be worked out in the CONTRIBUTORS. |
1b78d89 to
2575b3f
Compare
Makes sense. I went ahead and merged the module lib with the root lib. I'm not super happy with the way I'm importing |
|
Could use |
2575b3f to
721a637
Compare
Infinidoge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great! Couple small things, plus I have a few notes-to-self for potential refactors down the line, but nothing that stands in the way of this.
721a637 to
ce27fed
Compare
ce27fed to
199bbb3
Compare
199bbb3 to
d25005f
Compare
d25005f to
b01a390
Compare
|
Sorry for the lack of activity, uni and life have taken me off of GitHub for a while. Code looks good, commits are clean, very good PR. Only thing missing is a bit of documentation. Could you document the home module a bit in the readme? (I really need to setup a docs website...) Make sure there is a note about |
b01a390 to
de2f04a
Compare
No worries whatsoever! Added docs but they may be a bit sparse; I can add more if you think it'd be helpful |
|
Sorry to throw more work on you. |
Extracting shared code for use in the home-manager module.
de2f04a to
24c092a
Compare
Related: #136
Summary of commits
feat: add home-manager module
All options are supported minus
openFirewall,user,group. ThedataDirandrunDiroptions are not shared, as they have slightly different defaultsNotes:
Perhaps we could share even more code here if we didn't use NixOS's abstracted service/socket options.
home-managerdoesn't help you out much here.Systemd hardening options seem to break the tmux tests specifically. I didn't spend much time digging into this, so they're only enabled for the NixOS module.
refactor: factor out common config/refactor: add nixos- prefix to file names
For ease of reviewing changes, this was done before adding the home-manager module. Just moving code around for reusability.
To "prove" nothing changed, I recommend diffing these two commits with
--color-moved.I also checked the output of vm tests with
nix-diff:nom build .\#checks.x86_64-linux.nixos-simple.driver.nodes.server.system.build.toplevel nix diff result ../master/result ...bump: flake inputs
Update to NixOS 25.05 so we don't have to pin an old version of
home-manager