Make use of Nix profiles

This commit is contained in:
Jimbo 2025-02-28 19:13:03 -05:00
parent e6bd37c5d4
commit 82df5189d6
9 changed files with 26 additions and 46 deletions

View file

@ -2,7 +2,6 @@
{
imports = [
./jellyfin
./liquidsoap
./nextcloud
./nginx
];

View file

@ -1,12 +0,0 @@
{ ... }:
{
users = {
users.liquidsoap = {
group = "liquidsoap";
extraGroups = [ "nginx" ];
isSystemUser = true;
uid = 155;
};
groups.liquidsoap = {};
};
}

View file

@ -18,7 +18,7 @@
hostName = "rubble";
hostId = "e0b1fcef";
};
system.stateVersion = "24.11";
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
};
}

View file

@ -5,5 +5,20 @@
./root-reset
];
boot.initrd.systemd.enable = true;
boot.initrd = {
systemd.enable = true;
kernelModules = [
"ahci"
"dm-snapshot"
"mmc_core"
"pcie_rockchip_host"
"phy_rockchip_pcie"
"rockchip_dfi"
"rockchip_thermal"
"rtc_rk808"
"rockchip_saradc"
"uas"
"fusb302"
];
};
}

View file

@ -3,7 +3,6 @@
imports = [
./boot
./disks
./hardware
./networking
];
}

View file

@ -1,8 +0,0 @@
{ config, lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.kernelModules = [ "ahci" "dm-snapshot" "mmc_core" "pcie_rockchip_host" "phy_rockchip_pcie" "rockchip_dfi" "rockchip_thermal" "rtc_rk808" "rockchip_saradc" "uas" "fusb302" ];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

View file

@ -1,7 +1,7 @@
{ ... }:
{
imports = [
./minimal
./modules
./nix
./timezone
];

View file

@ -1,21 +0,0 @@
{ ... }:
{
environment = {
defaultPackages = [ ];
stub-ld.enable = false;
};
documentation = {
doc.enable = false;
info.enable = false;
nixos.enable = false;
};
programs = {
nano.enable = false;
less.lessopen = null;
command-not-found.enable = false;
};
services.logrotate.enable = false;
}

View file

@ -0,0 +1,8 @@
{ modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/minimal.nix")
(modulesPath + "/profiles/headless.nix")
];
}