};
config = lib.mkIf cfg.enable {
- users.users.openarc = lib.optionalAttrs (cfg.user == "openarc") {
- group = cfg.group;
- uid = myuids.lib.uids.openarc;
+ users.users = lib.optionalAttrs (cfg.user == "openarc") {
+ openarc = {
+ group = cfg.group;
+ uid = myuids.lib.uids.openarc;
+ };
};
- users.groups.openarc = lib.optionalAttrs (cfg.group == "openarc") {
- gid = myuids.lib.gids.openarc;
+ users.groups = lib.optionalAttrs (cfg.group == "openarc") {
+ openarc.gid = myuids.lib.gids.openarc;
};
environment.systemPackages = [ self.defaultPackage."${pkgs.system}" ];
{ pkgs }:
with pkgs;
rec {
+ flakeCompat = import ./flake-compat.nix;
nodeEnv = import ./node-env.nix;
fetchedGithub = path:
--- /dev/null
+src:
+(import (
+ fetchTarball {
+ url = "https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz";
+ sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2";
+ }) { inherit src; }).defaultNix
+let
+ flakeCompat = import ../lib/flake-compat.nix;
+in
{
myids = ./myids.nix;
secrets = ./secrets.nix;
fiche = ./webapps/fiche.nix;
opendmarc = ./opendmarc.nix;
- openarc = ./openarc.nix;
+ openarc = (flakeCompat ../flakes/openarc).nixosModule;
duplyBackup = ./duply_backup;
rsyncBackup = ./rsync_backup;
notmuch-python2 = callPackage ./notmuch/notmuch-python { pythonPackages = python2Packages; };
notmuch-python3 = callPackage ./notmuch/notmuch-python { pythonPackages = python3Packages; };
notmuch-vim = callPackage ./notmuch/notmuch-vim {};
- openarc = callPackage ./openarc { inherit mylibs; };
+ openarc = (mylibs.flakeCompat ../flakes/openarc).default;
opendmarc = callPackage ./opendmarc { libspf2 = callPackage ./opendmarc/libspf2.nix {}; };
pg_activity = callPackage ./pg_activity { inherit mylibs; };
pgloader = callPackage ./pgloader {};