Folder structure: OS/Linux/Debian.hs, OS/Linux/NixOS.hs
Refactor NixOS specific code into NixOS.hs and write the Debian code in the Debian.hs file.
Use Nix to install everything.
Add the Nix packages to ~/.nixpkgs/config.nix or whatever config file the user is using.
Folder structure:
OS/Linux/Debian.hs
,OS/Linux/NixOS.hs
Refactor NixOS specific code into NixOS.hs and write the Debian code in the Debian.hs file. Use Nix to install everything. Add the Nix packages to~/.nixpkgs/config.nix
or whatever config file the user is using.