Create modules/

This commit is contained in:
Sridhar Ratnakumar 2021-04-06 22:03:48 -04:00
parent 7c63e1743d
commit 848be91b17
4 changed files with 23 additions and 6 deletions

3
bin/format Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
set -xe
nix shell nixpkgs#nixpkgs-fmt --command nixpkgs-fmt *.nix */*.nix

View file

@ -12,12 +12,9 @@
modules = [
# System configuration
./configuration.nix
# ProtonMail Bridge
({ pkgs, ...}: {
environment.systemPackages = [ pkgs.protonmail-bridge ];
services.gnome3.gnome-keyring.enable = true;
}
)
./modules/passwordstore.nix
./modules/protonmail-bridge.nix
# home-manager configuration
home-manager.nixosModules.home-manager
{

13
modules/passwordstore.nix Normal file
View file

@ -0,0 +1,13 @@
{ pkgs, ... }: {
programs.gnupg = {
# Enabling the agent requires a system restart.
agent = {
enable = true;
enableExtraSocket = true;
# pinentryFlavor = "curses";
};
};
environment.systemPackages = with pkgs; [
pass
];
}

View file

@ -0,0 +1,4 @@
{ pkgs, ... }: {
environment.systemPackages = [ pkgs.protonmail-bridge ];
services.gnome3.gnome-keyring.enable = true;
}