move profiles to use haumea

This commit is contained in:
xunuwu 2024-10-24 11:41:51 +02:00
parent 4cec867a78
commit 716e9e7ac2
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
91 changed files with 30 additions and 53 deletions

View file

@ -10,18 +10,18 @@ creation_rules:
key_groups: key_groups:
- age: - age:
- *xun - *xun
- path_regex: secrets/global - path_regex: profiles/secrets/global
key_groups: key_groups:
- age: - age:
- *xun - *xun
- *nixdesk - *nixdesk
- *hopper - *hopper
- path_regex: secrets/nixdesk - path_regex: profiles/secrets/nixdesk
key_groups: key_groups:
- age: - age:
- *xun - *xun
- *nixdesk - *nixdesk
- path_regex: secrets/hopper - path_regex: profiles/secrets/hopper
key_groups: key_groups:
- age: - age:
- *xun - *xun

View file

@ -77,12 +77,10 @@ in {
imports = lib.flatten [ imports = lib.flatten [
./nixdesk ./nixdesk
(rootPaths [
"secrets"
"secrets/nixdesk"
])
(with profiles; [ (with profiles; [
secrets.default
secrets.nixdesk.default
core.default core.default
core.tools core.tools
core.compat core.compat
@ -103,7 +101,7 @@ in {
network.tailscale network.tailscale
network.goldberg network.goldberg
desktop.default desktop.ly
desktop.awesome desktop.awesome
desktop.sway desktop.sway
#..desktop.hyprland #..desktop.hyprland
@ -144,43 +142,19 @@ in {
imports = lib.flatten [ imports = lib.flatten [
./hopper ./hopper
(rootPaths [ (with profiles; [
"secrets" secrets.default
"secrets/hopper" secrets.hopper.default
core.default
core.tools
network.avahi
network.networkd
network.tailscale
services.syncthing
]) ])
(modulePaths [
"core"
"core/tools.nix"
#"programs"
#"programs/steam.nix"
#"desktop"
#"desktop/awesome.nix"
#"hardware/graphics.nix"
#"hardware/steam-hardware.nix"
#"hardware/bluetooth.nix"
#"hardware/qmk.nix"
"network/avahi.nix"
"network/networkd.nix"
"network/tailscale.nix"
#"services"
#"services/pipewire.nix"
"services/syncthing.nix"
#"services/containers/server"
# "services/containers/experimental" # TODO maybe reenable this?? or just abandon it and move fully to systemd network namespace
])
#{
# home-manager = {
# users.xun.imports = homeImports."xun@hopper";
# extraSpecialArgs = specialArgs;
# };
#}
]; ];
}; };
liveiso = { liveiso = {
@ -188,11 +162,10 @@ in {
imports = lib.flatten [ imports = lib.flatten [
./liveiso ./liveiso
(modulePaths [ (with profiles; [
"/nix" nix.default
"/core/security.nix" core.security
"/services" services.default
"/desktop"
]) ])
]; ];
}; };

View file

@ -1,4 +1,8 @@
{config, ...}: { {
self,
super,
root,
}: {config, ...}: {
services.tailscale = { services.tailscale = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;

View file

@ -1,4 +1,4 @@
{inputs, ...}: { _: {inputs, ...}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
./global ./global

View file

@ -1,5 +1,5 @@
## TODO use defaultSopsFile mayb ## TODO use defaultSopsFile mayb
{config, ...}: let _: {config, ...}: let
autheliaUser = config.services.authelia.instances.main.user; autheliaUser = config.services.authelia.instances.main.user;
in { in {
sops.secrets = { sops.secrets = {