Begin Dendritic rewrite

This commit is contained in:
2026-03-06 18:46:38 -06:00
parent fa9ca0ec63
commit eb5b08c8f0
12 changed files with 21 additions and 299 deletions

View File

@@ -1,6 +1,6 @@
{ ... }: { { inputs, ... }: {
flake.nixosModules.container = { config, pkgs, lib, inputs, ... }: flake.nixosModules.container = { config, pkgs, lib, ... }:
{ {
imports = imports =

View File

@@ -1,15 +1,15 @@
{ ... }: { { inputs, ... }: {
flake.nixosModules.homebox = { config, pkgs, lib, disko, sops-nix, home-manager, ... }: flake.nixosModules.homebox = { config, pkgs, lib, ... }:
{ {
imports = imports =
[ [
disko.nixosModules.default inputs.disko.nixosModules.default
sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
home-manager.nixosModules.default inputs.home-manager.nixosModules.default
]; ];

View File

@@ -1,6 +1,6 @@
{ ... }: { { inputs, ... }: {
flake.nixosModules.iso = { lib, pkgs, inputs, modulesPath, ... }: { flake.nixosModules.iso = { lib, pkgs, modulesPath, ... }: {
imports = with inputs; [ imports = with inputs; [

View File

@@ -1,12 +1,10 @@
{ ... }: { { inputs, ... }: {
flake.nixosModules.jesstop = { config, pkgs, lib, inputs, ... }: flake.nixosModules.jesstop = { config, pkgs, lib, ... }:
{ {
imports = [ imports = [
./hardware-configuration.nix
#inputs.home-manager.nixosModules.default #inputs.home-manager.nixosModules.default
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops

View File

@@ -1,13 +1,13 @@
{ ... }: { { inputs, ... }: {
flake.nixosModules.laptop = { config, pkgs, lib, home-manager, sops-nix, ... }: flake.nixosModules.laptop = { config, pkgs, lib, ... }:
{ {
imports = [ imports = [
home-manager.nixosModules.default inputs.home-manager.nixosModules.default
sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
]; ];
config = { config = {

View File

@@ -1,6 +1,6 @@
{ ... }: { { inputs, ... }: {
flake.nixosModules.live = { pkgs, inputs, ... }: { flake.nixosModules.live = { pkgs, ... }: {
imports = with inputs; [ imports = with inputs; [

View File

@@ -1,6 +1,6 @@
{ ... }: { { inputs, ... }: {
flake.nixosModules.pi4 = { config, pkgs, inputs, ... }: { flake.nixosModules.pi4 = { config, pkgs, ... }: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix

View File

@@ -1,6 +1,6 @@
{ ... }: { { ... }: {
flake.templates = { /*flake.templates = {
nixos = { nixos = {
welcomeText = '' welcomeText = ''
#Welcome to Olympus! #Welcome to Olympus!
@@ -28,19 +28,5 @@
path = ./home-manager; path = ./home-manager;
}; };
};*/
nix-on-droid = {
welcomeText = ''
#Welcome to Olympus!
Have Fun!
'';
description = ''
Generate this where you want your config.
'';
path = ./nix-on-droid;
};
};
} }

View File

@@ -1,90 +1 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
];
config = {
boot.kernelParams = [ "snd-intel-dspcfg.dsp_driver=1" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
powerManagement.finegrained = true;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
prime = {
# Make sure to use the correct Bus ID values for your system!
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
# WARNING: sync and offload are mutually exclusive.
# You can only pick one!!
#sync.enable = true;
offload = {
enable = true;
enableOffloadCmd = true;
};
};
};
sysconfig = {
users = {
nathan = {
isSuperuser = true;
extraGroups = [ "networkmanager" ];
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
shell = pkgs.zsh;
home-manager = {
enable = true;
standalone = false;
extraModules = [
{
homeconfig = {
minimal = false;
hyprland.enable = true;
hyprlock.enable = true;
wal.enable = true;
mpd.enable = true;
hyprpanel.enable = true;
calcurse.enable = true;
rofi.enable = true;
firefox.enable = true;
git.enable = true;
nh.enable = true;
};
#monitor=eDP-1, addreserved, 40,0,0,0
wayland.windowManager.hyprland.extraConfig = ''
monitor=eDP-1,1920x1080@60,0x0,1
'';
}
];
};
};
};
};
services.xserver.videoDrivers = [ "nvidia" ];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
};
}

View File

@@ -1,33 +0,0 @@
keys:
- &homebox age1640eg0pnmkruc89m5xguz0m8fek44fl4tzez6qwuzlz6kmapqewsp8esxd
- &laptop age1yqgyp2uxz4lzrc9f9ka0mfjl5fr6ahf8nf24nlmran2wulg6fpvq9hyp9q
- &android age12pnf36uqesjmy3e0lythfnpwam3zg5mv8m936fc4jphy4ces2fdqwn0s74
creation_rules:
- path_regex: homebox/secrets.yaml$
key_groups:
- age:
- *homebox
- path_regex: laptop/secrets.yaml$
key_groups:
- age:
- *laptop
- path_regex: pi4/secrets.yaml$
key_groups:
- age:
- *laptop
- path_regex: live/secrets.yaml$
key_groups:
- age:
- *laptop
- path_regex: nathan/secrets.yaml$
key_groups:
- age:
- *laptop
- *homebox
- *android
- path_regex: system-config/secrets.yaml$
key_groups:
- age:
- *laptop
- *homebox
- *android

View File

@@ -1,90 +0,0 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
];
config = {
boot.kernelParams = [ "snd-intel-dspcfg.dsp_driver=1" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
powerManagement.finegrained = true;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
prime = {
# Make sure to use the correct Bus ID values for your system!
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
# WARNING: sync and offload are mutually exclusive.
# You can only pick one!!
#sync.enable = true;
offload = {
enable = true;
enableOffloadCmd = true;
};
};
};
sysconfig = {
users = {
nathan = {
isSuperuser = true;
extraGroups = [ "networkmanager" ];
hashedPasswordFile = config.sops.secrets."nathan/pass".path;
shell = pkgs.zsh;
home-manager = {
enable = true;
standalone = false;
extraModules = [
{
homeconfig = {
minimal = false;
hyprland.enable = true;
hyprlock.enable = true;
wal.enable = true;
mpd.enable = true;
hyprpanel.enable = true;
calcurse.enable = true;
rofi.enable = true;
firefox.enable = true;
git.enable = true;
nh.enable = true;
};
#monitor=eDP-1, addreserved, 40,0,0,0
wayland.windowManager.hyprland.extraConfig = ''
monitor=eDP-1,1920x1080@60,0x0,1
'';
}
];
};
};
};
};
services.xserver.videoDrivers = [ "nvidia" ];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
};
}

View File

@@ -1,50 +0,0 @@
{
description = "System Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs";
};
olympus = {
url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Olympus";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
};
outputs = { self, nixpkgs, olympus, ... }: let
host = "hostname";
in {
nixosConfigurations."${host}" = nixpkgs.lib.nixosSystem {
specialArgs = {
};
modules = [
{ sysconfig.host = host; }
./configuration.nix
olympus.live
];
};
templates.default = {
welcomeText = ''
# NixOS Configuration Template
Have Fun!
'';
description = ''
Generate this where you want your config.
'';
source = ./.;
};
};
}