1
Fork 0
This commit is contained in:
caem 2025-01-18 20:34:22 +01:00
parent 42a591bd37
commit fc03bb0b93
Signed by: caem
GPG key ID: 69A830D03203405F
5 changed files with 14 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,4 +1,3 @@
secrets/
dotfiles/zsh/.zcompdump dotfiles/zsh/.zcompdump
dotfiles/nvim/lazy-lock.json dotfiles/nvim/lazy-lock.json
result result

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "secrets"]
path = secrets
url = git@git.caem.dev:caem/secrets

View file

@ -44,6 +44,9 @@
inputs = inputs; inputs = inputs;
user = "caem"; user = "caem";
modules = [ modules = [
impermanence.nixosModules.impermanence
disko.nixosModules.disko
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
@ -53,10 +56,6 @@
}; };
}; };
} }
impermanence.nixosModules.impermanence
disko.nixosModules.disko
sops-nix.nixosModules.sops
]; ];
}; };
}; };

View file

@ -1,9 +1,15 @@
{ pkgs, ... }: { config, pkgs, ... }:
{ {
sops.secrets.user_password = {
sopsFile = ../../../secrets/user_password.yaml;
neededForUsers = true;
};
users.users.caem = { users.users.caem = {
isNormalUser = true; isNormalUser = true;
shell = pkgs.zsh; shell = pkgs.zsh;
hashedPasswordFile = config.sops.secrets.user_password.path;
extraGroups = [ extraGroups = [
"wheel" "wheel"
]; ];

1
secrets Submodule

@ -0,0 +1 @@
Subproject commit 73908914ee288a689dede75c9e4ff1531e41159c