1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +01:00

feat: use more secrets and get python rolling again

This commit is contained in:
Thomas Boerger 2022-11-11 08:19:37 +01:00
parent dae0dec2d5
commit b682805984
No known key found for this signature in database
GPG Key ID: 09745AFF9D63C79B
13 changed files with 144 additions and 89 deletions

@ -10,7 +10,7 @@ with lib;
users = {
root = {
shell = pkgs.zsh;
hashedPassword = "$6$i1AZZ2GnRxgVnJ0X$yfWoi.SDf4mWYRAI6AbaCUMM15OOOZsabgbLo82HgEvCH3yc97N00y5m3aQPcLZ/5QHaL4BPUFRU6Ux3/ziEE/";
passwordFile = config.age.secrets."users/root/password".path;
openssh = {
authorizedKeys = {
keys = [
@ -23,7 +23,7 @@ with lib;
description = "Admin";
shell = pkgs.zsh;
isNormalUser = true;
hashedPassword = "$6$l5FBDK2QUtR6Sfvv$N.eol4kjcwIr56wIv1iwT07qlK.gD2KU7fAwc8JLMeKLLuik2FjmzQszgglQUuLbvLPiMM39Dj8AsHxJyXwhX.";
passwordFile = config.age.secrets."users/admin/password".path;
uid = 1337;
openssh = {
authorizedKeys = {
@ -40,5 +40,13 @@ with lib;
};
};
};
age.secrets."users/root/password" = {
file = ../../secrets/users/root/password.age;
};
age.secrets."users/admin/password" = {
file = ../../secrets/users/admin/password.age;
};
};
}

@ -1,4 +1,4 @@
{ pkgs, lib, config, options, fetchurl, ... }:
{ pkgs, lib, config, options, ... }:
with lib;
let

@ -4,26 +4,42 @@ with lib;
let
cfg = config.profile.programs.develop;
# ansible-doctor = pkgs.ansible-doctor.overrideAttrs (final: prev: {
# postPatch = ''
# substituteInPlace pyproject.toml \
# --replace 'version = "0.0.0"' 'version = "${prev.version}"' \
# --replace 'colorama = "9.4.5"' 'colorama = "*"'
# '';
# });
ansible-doctor = pkgs.ansible-doctor.overrideAttrs (final: prev: {
postPatch = prev.postPatch + ''
substituteInPlace pyproject.toml \
--replace 'colorama = "0.4.5"' 'colorama = "*"'
'';
});
# python = pkgs.python39.withPackages (p: with p; [
# ansible-core
# ansible-doctor
# ansible-later
# ansible-lint
# boto3
# botocore
# hcloud
# passlib
# requests
# yamllint
# ]);
ansible-later = pkgs.ansible-later.overrideAttrs (final: prev: {
postPatch = prev.postPatch + ''
substituteInPlace pyproject.toml \
--replace 'colorama = "0.4.5"' 'colorama = "*"'
'';
});
checkov = pkgs.checkov.overrideAttrs (final: prev: {
disabledTests = prev.disabledTests ++ [
"test_file_with_class_attribute"
"test_file_with_class_const"
"test_dataclass_skip"
];
});
python310 = pkgs.python310.withPackages (p: with p; [
ansible-core
ansible-doctor
ansible-later
ansible-lint
hcloud
yamllint
boto3
botocore
passlib
requests
]);
in
{
@ -40,18 +56,14 @@ in
config = mkIf cfg.enable {
environment = {
systemPackages = with pkgs; [
# python
python310
act
# ansible-doctor
# ansible-later
ansible-lint
awscli2
eksctl
git-chglog
gopass
graphviz
hcloud
httpie
ipcalc
ngrok
@ -60,15 +72,14 @@ in
shellcheck
sops
upx
yamllint
# checkov
checkov
terraform
terragrunt
tflint
tfsec
nodejs-16_x
nodejs-18_x
yarn
];
};

@ -14,10 +14,14 @@ in
"services/nixbuild/sshkey.age".publicKeys = users ++ systems;
"services/tailscale/authkey.age".publicKeys = users ++ systems;
"users/media/password.age".publicKeys = users ++ systems;
"users/media/smbpasswd.age".publicKeys = users ++ systems;
"users/media/password.age".publicKeys = users ++ systems;
"users/printer/password.age".publicKeys = users ++ systems;
"users/printer/smbpasswd.age".publicKeys = users ++ systems;
"users/root/password.age".publicKeys = users ++ systems;
"users/admin/password.age".publicKeys = users ++ systems;
"users/thomas/password.age".publicKeys = users ++ systems;
"users/anna/password.age".publicKeys = users ++ systems;

@ -0,0 +1,15 @@
age-encryption.org/v1
-> ssh-ed25519 ptT1OQ 1VZMuBeAj2I8cMd8QZKAVQ9XV0fU1NesQkz4eF+LSU8
wHW3ptHxvQe9jmjKWINsnmNzwD9hNSKFgqj8XmH4HxM
-> ssh-ed25519 RlXbCA eBrFQOLG+xmpiMw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U
-> ssh-ed25519 mO4+dg lUV1iKWa8ULJZZTuMBiceXZrWTPz7UKURW9L8djDqXo
p3V/3RocpcasgRUPGt2D1xGaM+w9SnPKDgD8KhcDbFI
-> ssh-ed25519 IYHv1g M7Dj/XqPr97hC9EV3ZBdckinYjMgzemxv7t9OkCLzXc
lBPYQO/TLUTO4EvA+Pfd2m6HHX/fJ857ek8S3LduEeM
-> Si#K\I-grease /:v-4~I#
--- fajMb/3JIZvYXF/vrmt3twr64wtPDi5ZqwhyHp25HAo
*áݳÑFçPw¶ÓšbKø…°Ÿ)ovZÝÉ»¦SëMý·C}}RÇ^þ
-> ssh-ed25519 ptT1OQ SWL1uOppBtKAVkTOmq9d71nxTiNzrlHILmlyovw8QyE
lp9vcgBSFOc8AuacYdSsN/aG3vxM0053+ZVlRFuCueo
-> ssh-ed25519 RlXbCA /sV5WUOFzcMFyLvRMP7cKKYmEZLlmjbY7X7OmpfGm3s
/JtMRM3UDMNpbzfrGeBv0+XuFnBo6NAuLz7PUR473L4
-> ssh-ed25519 vDK6kA +bdw17VouDM+ZWR1EwvxKvz3hTBXH1HMIm4ceGi1ezo
FRmf7AA8nB+8Z3nj6YTIKCOq8MZFuKceBPyZWjeHLZg
-> ssh-ed25519 mO4+dg 80DDJfx+ugTOteXWVcBjkSdozb3PVJH2fBP7uX9c7Ss
XkqYQuTmSqtnPG2CHDxqTGjCKesyC6175qLqVoKKzaY
-> ssh-ed25519 IYHv1g 8MfmGnyZTiBTbUgkixh1BhZRcen7liQ8eTe2JLH1+CE
xqdU6gTfWM7H2bqfrzPxduyMljZenzD2sX4sp+GggTE
-> x[*-grease 0/
+stGjg0D4ADLYVo
--- UJ0W4sg8qfjLfDLDudKe1g07+rSpp82Equ0NhT857Yo
Ó/E!…`ãÍ|á+‡šM‰øè|A_UI°÷¢élóæšaä¿Øí)°ý[]yŠ0ئÛH4küx,p@ß»tê{[ÎÉ”±Çë·t{¶óX€=pf´và6³Û*¯ÔÌÑ àâ»»¦Q,™½_þ±‡¯ÏuãÒî8

Binary file not shown.

@ -1,16 +1,18 @@
age-encryption.org/v1
-> ssh-ed25519 ptT1OQ pLtfHp7UMTODyWeIiMQHcZtu45JfqYcWt2jbCN8w+DM
60OA3aLEFqKwNvkcwuRLZHnoLXp+AfBsUpPVEIZNOx0
-> ssh-ed25519 RlXbCA zaRtNPGuDitgeoc54JQsmEEX95GvIz0KuUL4eAbyvmw
At+7evZ+6cfnoerMF38ansmcu49+xcpSnssjTnGcGUY
-> ssh-ed25519 vDK6kA I1lRs7co7q16+4NwoMQxwBJhNjgS4OjweM2xdaDpdk0
aolCtiUvDFw2IaMp+8D9meCRWu4p4Nlg/rowpbKRc/Q
-> ssh-ed25519 mO4+dg +Hexj9zoDKlg7h4MM485KPlACQYBffVeBvPh0doQxBc
udS9NqScmH9qK1HH+6BPkLOitAF3OKZBx2BZv7qz1rM
-> ssh-ed25519 IYHv1g vt4OWoTGFfA8cGNmClrNDTyfMfzmSZ+wThqLx1f9dB8
/ejwHFFKrsx/PVSjU1U0Jm0s5OPqf8IrviVwxdah9V0
-> @^C-grease
1af08l23t/E1xQm6UK9NPD/mmnPNz9Q/l/C+MsyIc6SONlSczJWlBL/XH/Zx3EcJ
rKyMZTRqD7i6ScxIwt04uTLi7ZWL0yskI474yRCp0VzP9fyIhZucDYg5Vish
--- 3PdSC4VZrDD0v8yxJotFuRiyuczT6tqaQBn3h27mVqw
š9 ''·çQò¶*ÏÒgU7F“J¢tBD¸s—ªRoyÖ¯C7”ƒK<û1 Ó‰ŽåžLNO­f
-> ssh-ed25519 ptT1OQ RLgCBDOEBmQkKXI3XInfL39WYPi4bXL/NmW0oVU5nUk
VIy5w4dWxKGluyuPri/AdVHytRTD+CKQS1FMl5TPtCo
-> ssh-ed25519 RlXbCA lUyxy1WrqI48kRHacvPu6G7ZjCCIqDoRXcxQ3dly+C0
yPUdMjhnWGezucF9f43YnWVujotwSZhqPNSooOPNpmc
-> ssh-ed25519 vDK6kA db755icAG8WwGPuixUIy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XtQPrydZwFnf34ji4Xw
Gh9GaKSrlSQa+eLrdSd4nThq2NFF6izQKdUy5//GOXU
-> .-grease
Ga4T
--- 35Vgddzze9c37oihXRlF/z26ncu8gEfepvztIvEbFzc
\!øÝ«'-¨?uÞÀ5Ó
 C•š˜þ Ï–²[É?ß ñþ¤”ž´²ï(¶ó Ù¼øp§7E@t¾‡3ùkâwZêÔd~É­O

Binary file not shown.

@ -1,16 +1,15 @@
age-encryption.org/v1
-> ssh-ed25519 ptT1OQ gpc/6xTuaPyROlvCSBV3WBDfLxEPA6CScewiDyyx7VI
048ALpa5XVTwLqqBqb6ucJRghiX/Rb2lZOIyjwGGJNI
-> ssh-ed25519 RlXbCA KZQxSzoeYk68/SlwjFx7CZSxTOSjDC4oEA1WlMh1bDo
3G4Nbe6xJJtuBHBbB0Gx+I1fY7tjKPBubqoNRXHV/zo
-> ssh-ed25519 vDK6kA cpjWFIn0Ok7U+0rKIM7j5i55R9j5DGSfwss/DkwQOj8
snQ9rTVoX7crLQFxbIgoalS6fbmrvOOqhNTaBMaSDF4
-> ssh-ed25519 mO4+dg GzgVlpkHKmpONSQbdu+MTwGBWUhBHDbUcTUqzWK+71o
ay4iTEU6xjXa8dVKejggcHeiLaJyrbnwa3Kz6zxnsvk
-> ssh-ed25519 IYHv1g 23D5wJVDAhQHdIU0b9IYx9QT/XhrkS2aXv4An+CjzXw
+PRwgHkrs2xzMtkfNtcL8Ogln5NLtoR41Ine/KIeiM8
-> L8pV-grease mnq$< >Eu>
EI/h8JEetvnkqQjlRGIv8VmBARJdl8Y9EF3+T6MltLZjOEAhBuXtlQSZXUo8iIDa
MLV4f6UIrkwSCgUcEPK4lLi+RnDwD/a0
--- ysqYwoeCxWUhF1ocySQjLBd/9/v7BDdJbZiwVsNs2F8
K ¸†‡Jz×2i U**Fy¨Ÿ*gêË•±³Òšeí‰ò+Á¼šCË
-> ssh-ed25519 ptT1OQ 4mj0yQQjNqBqn4kO03RPRq12ebHrMGf/a3EpP3Pl/Wk
vvj3EALEjGFNQ3Z1bWkvtT+ItCJruZrJYif52XuXN48
-> ssh-ed25519 RlXbCA mWlxptcvahKKxE5LvO5qTE1qHjv/3lNyZQUdKUqMtGk
WcLC7W7x7+pnBlTS7zB2coDGx7Rp5/C+MuKkn01a+jc
-> ssh-ed25519 vDK6kA 2hqXAsEt05y1Tby6MDA4GiEo0e7OLtCPDbEy4FP4qx8
sU7a7xYwnmwZH7WajrAhd2MKqlcxFWloo2ojCluU5gU
-> ssh-ed25519 mO4+dg uVLAugz1nSQtYdRGlib3UuGIp0QG8v2owk2w6vknBAI
O1N8SP4kKMOCmAHvPTiHdbPignixhCz/6C8NWQDBvFI
-> ssh-ed25519 IYHv1g DW9x7CgIhErFu4fJ4wk+DJTBKq0DZW/dW9pVjIsm7So
hbOHsf76nCVAtXutOPi64vWX2gToU4USjQjo6PCvXxc
-> 7|`-grease 89+`
yFkt1RF8IEw
--- KOglzxjDSLefTJn183zEsozuI/g/RZLGnHgBv77CaKE
E<—‰+È„wÅ€-îPÖà;í|:&=²I+>jïÞâ´ ÍIJ×4¿XÕç¿.6¾ÕòUHÓ9JŒxNvS¯N p6)u(¾-”<>/fƒ<Yš8æ¼räù¯C&{¨<>N5ÚhÎÍÈ'µà¬ ™ë&@ýXÐKuÀ¬ÜÂ<C39C>6­9{àŠÿ

@ -1,15 +1,15 @@
age-encryption.org/v1
-> ssh-ed25519 ptT1OQ /PSpi0wbpeapAF3DzPhSy2ZSv9dtD4u37EaZJBMif2g
YU3sODLxTFtnpB/gzELjjvhNa+MGe5a8ACUCz4Wp440
-> ssh-ed25519 RlXbCA DL8cJySjW6jlkQ/WmWdT6lU9ccd/ZvgBwFvMVJii1HI
vkXW7FRielR7fVMvENPUBFUuH+9EPmdD0S0xOBxZp9Y
-> ssh-ed25519 vDK6kA rSIelUWpT9J9L8osY+/QkC1m9twwHL1fHGfCy1toQyY
UKT6TnSTvFYI0rgWLqf9TO4OG81cFj8w0oIHuZi/WK4
-> ssh-ed25519 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