Skip to content

Commit

Permalink
Merge pull request #43 from lehmanator/reorganization
Browse files Browse the repository at this point in the history
Reorganization
  • Loading branch information
Lehmanator authored Feb 23, 2024
2 parents 4629e5b + 8005f99 commit 3cd946e
Show file tree
Hide file tree
Showing 817 changed files with 719 additions and 815 deletions.
18 changes: 9 additions & 9 deletions .sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ creation_rules:
# Decrypt with all host keys (user keys optional)
# - <type>/profiles/**/secrets.yaml
# - <type>/secrets/**/*.yaml
- path_regex: (common|darwin|droid|nixos|robotnix|wsl)/profiles/([^/]+/)+secrets\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: profiles/(common|darwin|droid|nixos|robotnix|wsl)/([^/]+/)+secrets\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-host-fw-ssh-ed25519
- *age-host-wyse-ssh-ed25519
#- *age-host-fajita-ssh-ed25519
- *age-user-sam-ssh-ed25519
- *age-backup
- path_regex: (common|darwin|droid|nixos|robotnix|wsl)/secrets/([^/]+/)*[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: secrets/(common|darwin|droid|nixos|robotnix|wsl)/([^/]+/)*[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-host-fw-ssh-ed25519
Expand All @@ -41,7 +41,7 @@ creation_rules:
- *age-backup

# --- Host Secrets: Per-Host ---------------------------------------
- path_regex: nixos/hosts/fw/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: hosts/fw/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-host-fw-ssh-ed25519
Expand All @@ -51,14 +51,14 @@ creation_rules:
#- *age-host-fw-ssh-ed25519
#- *gpg-host-fw-ssh-rsa
#- *gpg-user-sam-primary
- path_regex: nixos/hosts/wyse/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: hosts/wyse/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-host-wyse-ssh-ed25519
#- *age-host-fw-ssh-ed25519
- *age-user-sam-ssh-ed25519
- *age-backup
- path_regex: nixos/hosts/[^/]+/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: hosts/[^/]+/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-host-fw-ssh-ed25519
Expand All @@ -74,14 +74,14 @@ creation_rules:
# Decrypt with all user keys
# - hm/profiles/**/secrets.yaml
# - hm/secrets/**/*.yaml
- path_regex: hm/profiles/([^/]+/)+secrets\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: profiles/hm/([^/]+/)+secrets\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-user-sam-ssh-ed25519
#- *age-user-sammy-ssh-ed25519
#- *age-user-guest-ssh-ed25519
- *age-backup
- path_regex: hm/secrets/([^/]+/)*[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: users/secrets/([^/]+/)*[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-user-sam-ssh-ed25519
Expand All @@ -90,7 +90,7 @@ creation_rules:
- *age-backup

# --- User Secrets: Per-User ---------------------------------------
- path_regex: hm/users/sam/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: users/sam/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-host-fw-ssh-ed25519
Expand All @@ -100,7 +100,7 @@ creation_rules:
#- *age-host-fw-ssh-ed25519
#- *gpg-host-fw-ssh-rsa
#- *gpg-user-sam-primary
- path_regex: hm/users/[^/]+/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
- path_regex: users/[^/]+/secrets/[^/]+\.(ya?ml|json|env|ini|bin|key|privkey|luks|lukskey)$
key_groups:
- age:
- *age-host-fw-ssh-ed25519
Expand Down
21 changes: 0 additions & 21 deletions common/lib/compat/default.nix

This file was deleted.

4 changes: 0 additions & 4 deletions common/profiles/nix/features/recursive-nix.nix

This file was deleted.

15 changes: 0 additions & 15 deletions common/profiles/nix/utils/manix.nix

This file was deleted.

16 changes: 0 additions & 16 deletions darwin/profiles/modules/nixvim.nix

This file was deleted.

24 changes: 10 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,13 @@
};
};
#// specialArgs;
modules = [./nixos/hosts/${host}] ++ modules;
modules = [./hosts/${host}] ++ modules;
};
in {
overlays = import ./nixos/overlays;
overlays = import ./overlays/nixos;
nixosConfigurations = {
fw = mkSystem {host = "fw";};
wyse = mkSystem {host = "wyse";};
#installer = nixos.lib.nixosSystem {
# specialArgs = { inherit inputs; user = "sam"; };
# modules = [ ./profiles/nixos/installer ];
#};
fajita = nixos.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = {
Expand All @@ -116,7 +112,7 @@
(import "${inputs.mobile-nixos}/lib/configuration.nix" {
device = "oneplus-fajita";
})
./nixos/hosts/fajita
./hosts/fajita
inputs.nixpkgs-gnome-mobile.nixosModules.gnome-mobile
];
};
Expand All @@ -136,43 +132,43 @@
(import "${inputs.mobile-nixos}/lib/configuration.nix" {
device = "oneplus-fajita";
})
./nixos/hosts/fajita/minimal.nix
./hosts/fajita/minimal.nix
inputs.nixpkgs-gnome-mobile.nixosModules.gnome-mobile
];
};
};
#homeConfigurations = {
# sam = inputs.home.lib.homeManagerConfiguration {
# #pkgs = nixpkgs.legacyPackages.x86_64-linux;
# modules = [ ./hm/users/sam ];
# modules = [ ./users/sam ];
# extraSpecialArgs = { inherit inputs; user = "sam"; };
# };
# guest = inputs.home.lib.homeManagerConfiguration {
# pkgs = nixpkgs.legacyPackages.x86_64-linux;
# #modules = [./hm/users/default];
# #modules = [./users/default];
# extraSpecialArgs = { inherit inputs; user = "guest"; };
# };
#};

#pops = {
# nixosModules = inputs.omnibus.pops.nixosModules.addLoadExtender {
# load = {src = ./nixos/modules;};
# load = {src = ./modules/nixos;};
# };
# nixosProfiles = inputs.omnibus.pops.nixosProfiles.addLoadExtender {
# load = {
# src = ./nixos/profiles;
# src = ./profiles/nixos;
# inputs = {inherit inputs;};
# };
# };
# homeModules = inputs.omnibus.pops.homeProfiles.addLoadExtender {
# load = {
# src = ./hm/modules;
# src = ./modules/nixos;
# inputs = {inherit inputs;};
# };
# };
# homeProfiles = inputs.omnibus.pops.homeProfiles.addLoadExtender {
# load = {
# src = ./hm/profiles;
# src = ./profiles/hm;
# inputs = {inherit inputs;};
# };
# };
Expand Down
61 changes: 0 additions & 61 deletions hm/profiles/modules/sops.nix

This file was deleted.

31 changes: 0 additions & 31 deletions hm/profiles/neovim.nix

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ in






#boot.kernelPatches = [
# {
# name = "fix-oneplus-fajita-screen";
Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions nixos/hosts/fajita/minimal.nix → hosts/fajita/minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
inputs.sops-nix.nixosModules.sops
inputs.srvos.nixosModules.mixins-nix-experimental
inputs.srvos.nixosModules.mixins-trusted-nix-caches
../../profiles/locale
#../../profiles/mobile
#../../profiles/nix
../../profiles/shell
../../profiles/users
../../profiles/adb.nix
../../profiles/sshd.nix
../../profiles/nixos/locale
#../../profiles/nixos/mobile
#../../profiles/nixos/nix
../../profiles/nixos/shell
../../profiles/nixos/users
../../profiles/nixos/adb.nix
../../profiles/nixos/sshd.nix
];

#home-manager = {
Expand Down
29 changes: 29 additions & 0 deletions hosts/fajita/profiles.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
inputs,
...
}: {
imports = [
../../profiles/nixos
../../profiles/nixos/desktop/flatpak.nix
../../profiles/nixos/mobile
#../../profiles/nixos/desktop
#../../profiles/nixos/desktop/de/gnome
#../../profiles/nixos/virt/emulators/slippi.nix
# --- Disabled ---
#../../profiles/nixos/hardware/fprintd.nix
#../../profiles/nixos/virt/windows
#../../profiles/common:editor
# --- Imported by profiles/nixos ---
#../../profiles/nixos/boot
#../../profiles/nixos/hardware
#../../profiles/nixos/locale
#../../profiles/nixos/network
#../../profiles/nixos/security
#../../profiles/nixos/security/sops.nix
#../../profiles/nixos/shell
#../../profiles/nixos/users
];
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
inputs.nixos-hardware.nixosModules.framework-12th-gen-intel
../../profiles/hardware/bluetooth.nix
../../profiles/hardware/fprintd.nix
../../profiles/hardware/peripherals/logitech.nix
../../profiles/nixos/hardware/bluetooth.nix
../../profiles/nixos/hardware/fprintd.nix
../../profiles/nixos/hardware/peripherals/logitech.nix
];

boot = {
Expand Down
File renamed without changes.
Loading

0 comments on commit 3cd946e

Please sign in to comment.