modularize config

This commit is contained in:
nicknase27
2026-07-26 12:26:38 +02:00
parent 5f85e3520b
commit a7ce2b4c71
7 changed files with 57 additions and 42 deletions
+6
View File
@@ -0,0 +1,6 @@
{pkgs, ...}: {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
}
+9 -4
View File
@@ -1,7 +1,12 @@
{ pkgs, lib, config, ... }:
{
imports = [
./garbage-collection.nix
...
}: {
imports = [
./garbage-collection.nix
./networking.nix
./packages.nix
./backups.nix
];
./users.nix
./boot.nix
];
}
+15
View File
@@ -0,0 +1,15 @@
{...}: {
networking = {
hostName = "Hermes";
nameservers = ["1.1.1.1" "1.0.0.1"];
firewall = {
enable = true;
};
nftables = {
enable = true;
};
networkmanager = {
enable = true;
};
};
}
+20
View File
@@ -0,0 +1,20 @@
{pkgs, inputs, ...}: {
environment.systemPackages = with pkgs; [
inputs.agenix.packages."${stdenv.hostPlatform.system}".default
neovim
wget
curl
git
fastfetch
rsync
starship
eza
net-tools
alejandra
nixd
yazi
dysk
tmux
btop
];
}
+7
View File
@@ -0,0 +1,7 @@
{pkgs, ...}: {
users.users.nick = {
isNormalUser = true;
shell = pkgs.zsh;
extraGroups = ["wheel"];
};
}