Rearrange things

This commit is contained in:
albert 2025-02-09 20:56:56 -08:00
parent 0f534c4128
commit a1902d312d
Signed by: albert
GPG key ID: 3895DD267CA11BA9
5 changed files with 33 additions and 20 deletions

View file

@ -1,4 +1,4 @@
{ lib, inputs, hostname, username, desktop, hmStateVersion, system, isimage, ... }: {
{ lib, inputs, hostname, username, desktop, hmStateVersion, isImage, ... }: {
imports = [
# Common configs
./common/software/cli
@ -16,10 +16,10 @@
++ lib.optional (builtins.isString desktop) ./common/software/gui # GUI packages
++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop} # Machine-agnostic desktop configs
++ lib.optional (builtins.isString desktop) ./hosts/${hostname}/desktops/${desktop} # Machine-specific desktop configs
++ lib.optional (builtins.isString isiamge) ./common/image-specific.nix # Image specific items
++ lib.optional (builtins.isString isImage) ./common/image-specific.nix # Image specific items
;
programs.atuin.enable = mkDefault false;
programs.atuin.enable = lib.mkDefault false;
news.display = "silent";
home = {

View file

@ -175,7 +175,7 @@
format = format;
modules = [
../nixos/small.nix
../nixos/base.nix
../nixos/common/modules/installer.nix
inputs.sops-nix.nixosModules.sops
];

27
nixos/base.nix Normal file
View file

@ -0,0 +1,27 @@
{ inputs, lib,hostname, username, desktop, ... }: {
imports = [
# Services
./common/services/tailscale.nix
./common/services/promtail.nix
./common/services/telegraf.nix
# NixOS Modules
./common/modules/networking.nix # Initial Networking configs
./common/modules/nixos.nix # Common NixOS Configurations
./common/modules/remote-builders.nix # Add remote builders
./users/${username}
./hosts/${hostname}
];
documentation = {
enable = false;
man.enable = false;
info.enable = false;
doc.enable = false;
dev.enable = false;
nixos.enable = false;
};
programs.fish.enable = true;
}

View file

@ -1,4 +1,4 @@
{ inputs, lib, hostname, username, desktop, ... }: {
{ ... }: {
imports = [
# Modules
./small.nix

View file

@ -1,14 +1,12 @@
{ inputs, lib,hostname, username, desktop, ... }: {
imports = [
# Modules
./base.nix
inputs.disko.nixosModules.disko
# Services
./common/services/openssh.nix
./common/services/fail2ban.nix
./common/services/tailscale.nix
./common/services/promtail.nix
./common/services/telegraf.nix
# Software
./common/software/cli/scripts.nix
@ -19,17 +17,5 @@
./common/modules/nixos.nix # Common NixOS Configurations
./common/modules/remote-builders.nix # Add remote builders
./users/${username}
./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
documentation = {
enable = false;
man.enable = false;
info.enable = false;
doc.enable = false;
dev.enable = false;
nixos.enable = false;
};
programs.fish.enable = true;
}