Make use of Nix profiles
This commit is contained in:
parent
e6bd37c5d4
commit
82df5189d6
9 changed files with 26 additions and 46 deletions
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./jellyfin
|
./jellyfin
|
||||||
./liquidsoap
|
|
||||||
./nextcloud
|
./nextcloud
|
||||||
./nginx
|
./nginx
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
users = {
|
|
||||||
users.liquidsoap = {
|
|
||||||
group = "liquidsoap";
|
|
||||||
extraGroups = [ "nginx" ];
|
|
||||||
isSystemUser = true;
|
|
||||||
uid = 155;
|
|
||||||
};
|
|
||||||
groups.liquidsoap = {};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -18,7 +18,7 @@
|
||||||
hostName = "rubble";
|
hostName = "rubble";
|
||||||
hostId = "e0b1fcef";
|
hostId = "e0b1fcef";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,5 +5,20 @@
|
||||||
./root-reset
|
./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"
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./boot
|
./boot
|
||||||
./disks
|
./disks
|
||||||
./hardware
|
|
||||||
./networking
|
./networking
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./minimal
|
./modules
|
||||||
./nix
|
./nix
|
||||||
./timezone
|
./timezone
|
||||||
];
|
];
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
8
system/settings/modules/default.nix
Normal file
8
system/settings/modules/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ modulesPath, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
(modulesPath + "/profiles/minimal.nix")
|
||||||
|
(modulesPath + "/profiles/headless.nix")
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue