This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-17 11:23:22 -05:00
commit c10446db21
4 changed files with 72 additions and 1156 deletions

View file

@ -19,25 +19,13 @@
lib, lib,
... ...
}: }:
let
ccfg = import ./config.nix;
cfg_path = "${ccfg.custom_config_key}";
cfg = config.${cfg_path};
in
{ {
imports = [ imports = [
./options.nix
./boot ./boot
./users ./users
./general ./general
]; ];
options.${cfg_path} = {
systemName = lib.mkOption {
type = lib.types.str;
description = "The name of the system.";
};
};
config = {
};
}; };
}; };
}; };

18
common/options.nix Normal file
View file

@ -0,0 +1,18 @@
{
config,
lib,
...
}:
let
ccfg = import ./config.nix;
cfg_path = "${ccfg.custom_config_key}";
cfg = config.${cfg_path};
in
{
options.${cfg_path} = {
systemName = lib.mkOption {
type = lib.types.str;
description = "The name of the system.";
};
};
}

1160
hosts/oren/flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -46,31 +46,27 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
../../components/nix/lua.nix
../../components/nix/rust-dev.nix ../../components/nix/rust-dev.nix
../../components/nix/qflipper.nix ../../components/nix/qflipper.nix
../../components/nix/qdirstat.nix
../../components/nix/tailscale.nix ../../components/nix/tailscale.nix
]; ];
environment.systemPackages = with pkgs; [
lua
qdirstat
];
ringofstorms_common = { ringofstorms_common = {
systemName = configuration_name;
boot.systemd.enable = true; boot.systemd.enable = true;
}; users = {
mods = { admins = [ "josh" ];
common = {
systemName = configuration_name;
allowUnfree = true;
primaryUser = "josh";
docker = true;
zsh = true;
users = { users = {
josh = { josh = {
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILMzgAe4od9K4EsvH2g7xjNU7hGoJiFJlYcvB0BoDCvn nix2oren" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILMzgAe4od9K4EsvH2g7xjNU7hGoJiFJlYcvB0BoDCvn nix2oren"
]; ];
initialPassword = "password1";
isNormalUser = true;
extraGroups = [ extraGroups = [
"wheel"
"networkmanager" "networkmanager"
"video" "video"
"input" "input"
@ -82,10 +78,24 @@
discordo discordo
discord discord
firefox-esr firefox-esr
spotify
vlc
vaultwarden
bitwarden
]; ];
}; };
}; };
}; };
};
mods = {
common = {
systemName = configuration_name;
allowUnfree = true;
primaryUser = "josh";
docker = true;
zsh = true;
};
home_manager = { home_manager = {
users = { users = {
josh = { josh = {