added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
8
nyx/hosts/atlas/default.nix
Normal file
8
nyx/hosts/atlas/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
imports = [
|
||||
./fs
|
||||
./modules
|
||||
|
||||
./system.nix
|
||||
];
|
||||
}
|
9
nyx/hosts/atlas/fs/default.nix
Normal file
9
nyx/hosts/atlas/fs/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/NIXOS_SD";
|
||||
fsType = "ext4";
|
||||
options = ["noatime"];
|
||||
};
|
||||
|
||||
swapDevices = [];
|
||||
}
|
7
nyx/hosts/atlas/modules/default.nix
Normal file
7
nyx/hosts/atlas/modules/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./device.nix
|
||||
./system.nix
|
||||
./usrEnv.nix
|
||||
];
|
||||
}
|
11
nyx/hosts/atlas/modules/device.nix
Normal file
11
nyx/hosts/atlas/modules/device.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
config.modules.device = {
|
||||
type = "server";
|
||||
cpu.type = "pi";
|
||||
gpu.type = "pi";
|
||||
monitors = ["HDMI-A-1"];
|
||||
hasBluetooth = false;
|
||||
hasSound = false;
|
||||
hasTPM = false;
|
||||
};
|
||||
}
|
39
nyx/hosts/atlas/modules/system.nix
Normal file
39
nyx/hosts/atlas/modules/system.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
config.modules.system = {
|
||||
mainUser = "notashelf";
|
||||
fs = ["ext4" "vfat" "ntfs" "exfat"];
|
||||
autoLogin = false;
|
||||
|
||||
boot = {
|
||||
loader = "none";
|
||||
enableKernelTweaks = true;
|
||||
initrd.enableTweaks = true;
|
||||
tmpOnTmpfs = false;
|
||||
};
|
||||
|
||||
video.enable = false;
|
||||
sound.enable = false;
|
||||
bluetooth.enable = false;
|
||||
printing.enable = false;
|
||||
emulation.enable = false;
|
||||
|
||||
virtualization.enable = false;
|
||||
|
||||
networking = {
|
||||
optimizeTcp = true;
|
||||
nftables.enable = true;
|
||||
tailscale = {
|
||||
enable = true;
|
||||
isClient = true;
|
||||
isServer = false;
|
||||
};
|
||||
};
|
||||
|
||||
security = {
|
||||
tor.enable = true;
|
||||
fixWebcam = false;
|
||||
lockModules = true;
|
||||
auditd.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
7
nyx/hosts/atlas/modules/usrEnv.nix
Normal file
7
nyx/hosts/atlas/modules/usrEnv.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
config.modules.usrEnv = {
|
||||
isWayland = false;
|
||||
desktop = "Hyprland";
|
||||
useHomeManager = true;
|
||||
};
|
||||
}
|
49
nyx/hosts/atlas/system.nix
Normal file
49
nyx/hosts/atlas/system.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
modulesPath,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkForce;
|
||||
in {
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
libraspberrypi
|
||||
raspberrypi-eeprom
|
||||
git
|
||||
neovim
|
||||
];
|
||||
|
||||
hardware = {
|
||||
raspberry-pi."4" = {
|
||||
# Enable GPU acceleration
|
||||
fkms-3d.enable = true;
|
||||
apply-overlays-dtmerge.enable = true;
|
||||
};
|
||||
|
||||
deviceTree.enable = true;
|
||||
|
||||
opengl = {
|
||||
# this only takes effect in 64 bit systems
|
||||
driSupport32Bit = mkForce false;
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelModules = lib.mkForce ["bridge" "macvlan" "tap" "tun" "loop" "atkbd" "ctr"];
|
||||
supportedFilesystems = lib.mkForce ["ext4" "vfat"];
|
||||
loader.grub.enable = mkForce false;
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config.allowUnsupportedSystem = true;
|
||||
hostPlatform.system = "armv7l-linux";
|
||||
buildPlatform.system = "x86_64-linux";
|
||||
};
|
||||
|
||||
console.enable = false;
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue