added sos-nix for home-manager.
This commit is contained in:
parent
b04ab13d39
commit
8c552faa1b
13 changed files with 73 additions and 20 deletions
|
@ -44,14 +44,14 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
};
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys =
|
||||
configLib.dirToStrings "${inputs.nix-secrets}/public-keys";
|
||||
configLib.dirToStrings "${inputs.nix-secrets}/public-keys";
|
||||
|
||||
programs.zsh.enable = true;
|
||||
environment.shells = with pkgs; [zsh];
|
||||
users.mutableUsers=false;
|
||||
users.mutableUsers = false;
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.${config.host.user} = {
|
||||
hashedPasswordFile=config.sops.secrets.gv-password.path;
|
||||
hashedPasswordFile = config.sops.secrets.gv-password.path;
|
||||
isNormalUser = true;
|
||||
description = "Gabe Venberg";
|
||||
shell = pkgs.zsh;
|
||||
|
@ -62,6 +62,9 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
];
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
home-manager.users.${config.host.user} = {
|
||||
inputs,
|
||||
osConfig,
|
||||
|
@ -82,7 +85,15 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
../../configs/home-manager/common.nix
|
||||
../../configs/home-manager/email.nix
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
../../configs/home-manager/secrets.nix
|
||||
];
|
||||
|
||||
sops = {
|
||||
secrets = {
|
||||
gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
};
|
||||
};
|
||||
};
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports=[
|
||||
../../configs/nixos/secrets.nix
|
||||
imports = [
|
||||
../../configs/nixos/secrets.nix
|
||||
];
|
||||
sops.secrets.gv-password = {
|
||||
neededForUsers = true;
|
||||
|
|
|
@ -37,8 +37,18 @@ inputs.home-manager.lib.homeManagerConfiguration {
|
|||
../configs/home-manager/common.nix
|
||||
../configs/home-manager/syncthing.nix
|
||||
../configs/home-manager/email.nix
|
||||
../../configs/home-manager/tiny-irc.nix
|
||||
../configs/home-manager/terminal/voice.nix
|
||||
../configs/home-manager/secrets.nix
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
|
||||
sops = {
|
||||
secrets = {
|
||||
gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
};
|
||||
};
|
||||
})
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
];
|
||||
|
|
|
@ -41,7 +41,16 @@ inputs.home-manager.lib.homeManagerConfiguration {
|
|||
../roles/home-manager/terminal.nix
|
||||
../configs/home-manager/common.nix
|
||||
../configs/home-manager/syncthing.nix
|
||||
../../configs/home-manager/tiny-irc.nix
|
||||
../configs/home-manager/secrets.nix
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
|
||||
sops = {
|
||||
secrets = {
|
||||
irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports=[
|
||||
../../configs/nixos/secrets.nix
|
||||
imports = [
|
||||
../../configs/nixos/secrets.nix
|
||||
];
|
||||
sops.secrets.gv-password = {
|
||||
neededForUsers = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue