refactor: dendritic principles
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{ inputs, config, ... }:
|
{ inputs, config, ... }:
|
||||||
let
|
let
|
||||||
account = config.repo.account;
|
account = config.repo.account;
|
||||||
|
hmModules = config.flake.modules.homeManager;
|
||||||
|
|
||||||
sharedContext = ''
|
sharedContext = ''
|
||||||
# Global Agent Context
|
# Global Agent Context
|
||||||
@@ -21,6 +22,8 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.modules.nixos.ai = {
|
flake.modules.nixos.ai = {
|
||||||
|
home-manager.sharedModules = [ hmModules.ai ];
|
||||||
|
|
||||||
nixpkgs.overlays = [ inputs.llm-agents.overlays.default ];
|
nixpkgs.overlays = [ inputs.llm-agents.overlays.default ];
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
repo = config.repo;
|
repo = config.repo;
|
||||||
|
hmModules = config.flake.modules.homeManager;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.modules.nixos.niri =
|
flake.modules.nixos.niri =
|
||||||
@@ -12,6 +13,8 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ inputs.niri.nixosModules.niri ];
|
imports = [ inputs.niri.nixosModules.niri ];
|
||||||
|
|
||||||
|
home-manager.sharedModules = [ hmModules.niri ];
|
||||||
|
|
||||||
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
nixpkgs.overlays = [ inputs.niri.overlays.niri ];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
hmModules = config.flake.modules.homeManager;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
flake.modules.nixos.qbittorrent-client = {
|
flake.modules.nixos.qbittorrent-client = {
|
||||||
|
home-manager.sharedModules = [ hmModules.qbittorrent-client ];
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 43864 ];
|
allowedTCPPorts = [ 43864 ];
|
||||||
allowedUDPPorts = [ 43864 ];
|
allowedUDPPorts = [ 43864 ];
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
let
|
let
|
||||||
repo = config.repo;
|
repo = config.repo;
|
||||||
repoHelpers = repo.helpers;
|
repoHelpers = repo.helpers;
|
||||||
|
hmModules = config.flake.modules.homeManager;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.modules.nixos.theme =
|
flake.modules.nixos.theme =
|
||||||
@@ -22,6 +23,8 @@ in
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
home-manager.sharedModules = [ hmModules.theme ];
|
||||||
|
|
||||||
environment.systemPackages = [ cursorTheme.package ];
|
environment.systemPackages = [ cursorTheme.package ];
|
||||||
|
|
||||||
services.displayManager.sddm.settings = {
|
services.displayManager.sddm.settings = {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.modules.homeManager.walker =
|
flake.modules.homeManager.walker-base =
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
@@ -33,7 +33,7 @@ in
|
|||||||
flake.modules.homeManager.primary-launcher-walker =
|
flake.modules.homeManager.primary-launcher-walker =
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [ homeModules.walker ];
|
imports = [ homeModules.walker-base ];
|
||||||
|
|
||||||
meta.desktop.launcherCommand = lib.getExe config.programs.walker.package;
|
meta.desktop.launcherCommand = lib.getExe config.programs.walker.package;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ in
|
|||||||
|
|
||||||
flake.modules.homeManager.workstation-base = {
|
flake.modules.homeManager.workstation-base = {
|
||||||
imports = [
|
imports = [
|
||||||
homeModules.ai
|
|
||||||
homeModules.passwords
|
homeModules.passwords
|
||||||
homeModules.clipboard
|
homeModules.clipboard
|
||||||
homeModules.dev-tools
|
homeModules.dev-tools
|
||||||
@@ -53,17 +52,13 @@ in
|
|||||||
homeModules.default-editor-neovim
|
homeModules.default-editor-neovim
|
||||||
homeModules.email
|
homeModules.email
|
||||||
homeModules.mpv
|
homeModules.mpv
|
||||||
homeModules.niri
|
|
||||||
homeModules.nix
|
homeModules.nix
|
||||||
homeModules.calendar-tasks
|
homeModules.calendar-tasks
|
||||||
homeModules.podman
|
homeModules.podman
|
||||||
homeModules.qbittorrent-client
|
|
||||||
homeModules.sops
|
|
||||||
homeModules.git
|
homeModules.git
|
||||||
homeModules.ssh-client
|
homeModules.ssh-client
|
||||||
homeModules.primary-terminal-kitty
|
homeModules.primary-terminal-kitty
|
||||||
homeModules.terminal-foot
|
homeModules.terminal-foot
|
||||||
homeModules.theme
|
|
||||||
homeModules.noctalia
|
homeModules.noctalia
|
||||||
{
|
{
|
||||||
programs.discord = {
|
programs.discord = {
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
account = config.repo.account;
|
account = config.repo.account;
|
||||||
|
nixosModules = config.flake.modules.nixos;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.modules.nixos.sops-password =
|
flake.modules.nixos.sops-password =
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [ nixosModules.sops ];
|
||||||
|
|
||||||
sops.secrets.hashed-password.neededForUsers = true;
|
sops.secrets.hashed-password.neededForUsers = true;
|
||||||
|
|
||||||
users.users.${account.name}.hashedPasswordFile = config.sops.secrets.hashed-password.path;
|
users.users.${account.name}.hashedPasswordFile = config.sops.secrets.hashed-password.path;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
nixosModules = config.flake.modules.nixos;
|
nixosModules = config.flake.modules.nixos;
|
||||||
|
hmModules = config.flake.modules.homeManager;
|
||||||
sopsAdminKeyPath = "/var/lib/sops/keys.txt";
|
sopsAdminKeyPath = "/var/lib/sops/keys.txt";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -22,6 +23,8 @@ in
|
|||||||
{
|
{
|
||||||
imports = [ nixosModules.sops ];
|
imports = [ nixosModules.sops ];
|
||||||
|
|
||||||
|
home-manager.sharedModules = [ hmModules.sops ];
|
||||||
|
|
||||||
sops.age.keyFile = sopsAdminKeyPath;
|
sops.age.keyFile = sopsAdminKeyPath;
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
|
|||||||
Reference in New Issue
Block a user