Refactor the whole configuration #1

Merged
caem merged 354 commits from refactor into master 2025-02-01 14:05:16 +01:00
5 changed files with 14 additions and 6 deletions
Showing only changes of commit fc03bb0b93 - Show all commits

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