mirror of
https://github.com/srid/nixos-config.git
synced 2026-07-16 22:01:33 +08:00
Create modules/
This commit is contained in:
parent
7c63e1743d
commit
848be91b17
4 changed files with 23 additions and 6 deletions
3
bin/format
Executable file
3
bin/format
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
set -xe
|
||||
nix shell nixpkgs#nixpkgs-fmt --command nixpkgs-fmt *.nix */*.nix
|
||||
|
|
@ -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
13
modules/passwordstore.nix
Normal 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
|
||||
];
|
||||
}
|
||||
4
modules/protonmail-bridge.nix
Normal file
4
modules/protonmail-bridge.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.protonmail-bridge ];
|
||||
services.gnome3.gnome-keyring.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue