put hashed pass in a separate file

This commit is contained in:
Noah Masur 2022-11-02 21:47:11 -04:00
parent 41d289c5db
commit 07fec71ba4
5 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ result
.luarc.json .luarc.json
private/** private/**
!private/**.age !private/**.age
!private/**.sha512

View File

@ -22,8 +22,7 @@ nixpkgs.lib.nixosSystem {
}; };
wallpaper = "${wallpapers}/gruvbox/road.jpg"; wallpaper = "${wallpapers}/gruvbox/road.jpg";
gtk.theme.name = nixpkgs.lib.mkDefault "Adwaita-dark"; gtk.theme.name = nixpkgs.lib.mkDefault "Adwaita-dark";
passwordHash = passwordHash = nixpkgs.lib.fileContents ../../private/password.sha512;
"$6$PZYiMGmJIIHAepTM$Wx5EqTQ5GApzXx58nvi8azh16pdxrN6Qrv1wunDlzveOgawitWzcIxuj76X9V868fsPi/NOIEO8yVXqwzS9UF.";
} }
./hardware-configuration.nix ./hardware-configuration.nix

View File

@ -28,7 +28,6 @@ nixpkgs.lib.nixosSystem {
giteaServer = "git.masu.rs"; giteaServer = "git.masu.rs";
# Disable passwords, only use SSH key # Disable passwords, only use SSH key
passwordHash = null;
publicKey = publicKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s"; "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s";

View File

@ -17,8 +17,7 @@ nixpkgs.lib.nixosSystem {
identityFile = "/home/${globals.user}/.ssh/id_ed25519"; identityFile = "/home/${globals.user}/.ssh/id_ed25519";
gui.enable = false; gui.enable = false;
colorscheme = (import ../../modules/colorscheme/gruvbox); colorscheme = (import ../../modules/colorscheme/gruvbox);
passwordHash = passwordHash = nixpkgs.lib.fileContents ../../private/password.sha512;
"$6$PZYiMGmJIIHAepTM$Wx5EqTQ5GApzXx58nvi8azh16pdxrN6Qrv1wunDlzveOgawitWzcIxuj76X9V868fsPi/NOIEO8yVXqwzS9UF.";
wsl = { wsl = {
enable = true; enable = true;
automountPath = "/mnt"; automountPath = "/mnt";

1
private/password.sha512 Normal file
View File

@ -0,0 +1 @@
$6$PZYiMGmJIIHAepTM$Wx5EqTQ5GApzXx58nvi8azh16pdxrN6Qrv1wunDlzveOgawitWzcIxuj76X9V868fsPi/NOIEO8yVXqwzS9UF.