wip refactor
This commit is contained in:
parent
7e7f04574b
commit
26cc522363
4 changed files with 72 additions and 1152 deletions
|
@ -26,19 +26,11 @@
|
||||||
in
|
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 = {
|
|
||||||
# // TODO ADD Nix helper stuff rest of it.
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
18
common/options.nix
Normal file
18
common/options.nix
Normal 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
1160
hosts/oren/flake.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue