Skip to content
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

todo v1 #1

Open
9 of 14 tasks
mkg20001 opened this issue Jan 25, 2024 · 0 comments
Open
9 of 14 tasks

todo v1 #1

mkg20001 opened this issue Jan 25, 2024 · 0 comments

Comments

@mkg20001
Copy link
Collaborator

mkg20001 commented Jan 25, 2024

  • linking of files and db for removal

    • keep track of which links are from nix
    • if user-created file exist at target then bail
  • linking via function hooks

    • so that modules can do their post-linking magic right away
  • merge files

    • feature for files hook to add merge flag, merge strategy and comment type
    • will allow to merge files like /etc/systemd/system.conf instead of replacing them
  • merge users

    • users that exist in nixos but not in host should be created
    • groups and group memberships aswell
    • track which users, groups, memberships are from nixos and remove them once they get removed in nixos / update them (shell, etc) when they get changed
    • add/replace the literal entries line by line
  • run as systemd generator

    • will pollute the host less (easier to uninstall)
    • we no longer need to enable and start everything as that will be done for us
  • proper file backup

    • when replacing a file from the host rename to $FILE.nix-unify
    • and store path for later restoration on uninstall-
  • share nftables

    • optional
    • force flushRuleset to false
    • nftables service works in a way that is non-desturbing
  • share networkd

    • all or nothing (there is no default config by default)
  • share serviecs

    • service by service
    • also take service-dependencies into account
    • skip services which already exist on the host unless forced
  • share sudoers

    • optional
    • include nixos sudoers config (maybe without defaults)
  • share etc

    • optional
    • file by file (or folder by folder) inclusion
  • use systemd-run, locking, etc like upstream

  • handle service-restart, triggers, etc

  • split into activation and switch parts

    • currently the script is an organically grown mess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant