mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 12:03:11 -05:00
Finished Some parents Machine STuff
This commit is contained in:
parent
24d29781ee
commit
a7a85e46fc
3 changed files with 36 additions and 2 deletions
|
|
@ -2,9 +2,11 @@
|
|||
keys:
|
||||
- &primary age1e8wfn0vmwv506n060hzqkwhsekykynl9tpatnm2swhew30kmuyest0slhv
|
||||
- &envy age1ssqyqn2wpk6z0wz9cf2uer2292362ngah8epy29r9qpnsfghly3sh40vcj
|
||||
- &parents age1z5h7chprx4smzksfft74depvdsq35zuq66xzgsmutj92sgq3x3cqs4sxrn
|
||||
creation_rules:
|
||||
- path_regex: secrets/secrets.yaml$
|
||||
key_groups:
|
||||
- age:
|
||||
- *primary
|
||||
- *envy
|
||||
- *parents
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
sops = {
|
||||
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
defaultSopsFormat = "yaml";
|
||||
age.keyFile = "/home/annika/.config/sops/age/keys.txt";
|
||||
age.sshKeyPaths = [ "/home/annika/.ssh/id_ed25519" ];
|
||||
age.keyFile = "/keys.txt";
|
||||
# age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
};
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
|
|
|||
32
modules/nixos/users/moosetheory.nix
Normal file
32
modules/nixos/users/moosetheory.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
sops.secrets.annika_password.neededForUsers = true;
|
||||
|
||||
users.users.moosetheory = {
|
||||
isNormalUser = true;
|
||||
home = "/home/moosetheory";
|
||||
description = "David Merris";
|
||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
|
||||
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG9NhsAOBwWBdBeenfaPoRtqQrAIgg7E5m4sKYQU9cFx annika@kim" ];
|
||||
hashedPasswordFile = config.sops.secrets.annika_password.path;
|
||||
};
|
||||
home-manager.users.moosetheory = {
|
||||
programs = {
|
||||
direnv = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
s = "kitten ssh";
|
||||
la = "ls -a";
|
||||
ll = "ls -l";
|
||||
lal = "ls -la";
|
||||
cls = "clear && ls";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue