my nixos/home-manager configuration
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

create opnix module for nixos

+35 -19
+1
nixos/clever-cloud/default.nix
··· 32 32 33 33 services = { 34 34 clamav.enable = true; 35 + onepassword-secrets.enable = true; 35 36 # power management 36 37 thermald.enable = true; 37 38 tlp.enable = true;
+1
nixos/desktop/default.nix
··· 37 37 38 38 services = { 39 39 clamav.enable = true; 40 + onepassword-secrets.enable = true; 40 41 printing.enable = true; 41 42 mptcpd.enable = true; 42 43 };
+1
nixos/laptop/default.nix
··· 32 32 33 33 services = { 34 34 clamav.enable = true; 35 + onepassword-secrets.enable = true; 35 36 fprintd.enable = true; 36 37 37 38 # power management
-19
nixos/modules/_1password.nix
··· 23 23 mode = "0755"; 24 24 }; 25 25 }; 26 - 27 - services.onepassword-secrets = { 28 - enable = true; 29 - # 0640 root:onepassword-secrets 30 - tokenFile = "/etc/opnix-token"; 31 - 32 - secrets = { 33 - clamavNotificationApiCredential = { 34 - reference = "op://OpNix/ClamAV notification API/credential"; 35 - owner = "clamav"; 36 - group = "clamav"; 37 - }; 38 - clamavNotificationApiUrl = { 39 - reference = "op://OpNix/ClamAV notification API/url"; 40 - owner = "clamav"; 41 - group = "clamav"; 42 - }; 43 - }; 44 - }; 45 26 }; 46 27 }
+32
nixos/modules/onepassword-secrets.nix
··· 1 + { 2 + config, 3 + lib, 4 + ... 5 + }: 6 + 7 + let 8 + cfg = config.services.onepassword-secrets; 9 + in 10 + { 11 + config = lib.mkIf cfg.enable { 12 + services.onepassword-secrets = { 13 + # 0440 youn:onepassword-secrets 14 + tokenFile = "/etc/opnix-token"; 15 + 16 + secrets = { 17 + clamavNotificationApiCredential = { 18 + reference = "op://OpNix/ClamAV notification API/credential"; 19 + mode = "0600"; 20 + owner = "clamav"; 21 + group = "clamav"; 22 + }; 23 + clamavNotificationApiUrl = { 24 + reference = "op://OpNix/ClamAV notification API/url"; 25 + mode = "0600"; 26 + owner = "clamav"; 27 + group = "clamav"; 28 + }; 29 + }; 30 + }; 31 + }; 32 + }