From 7e185bbd01b77d0e08bdaa75faf34a2ae66e1b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Montero?= Date: Mon, 4 Sep 2023 21:48:38 -0600 Subject: [PATCH] add TriviOS basic configuration --- triviOS/default.nix | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/triviOS/default.nix b/triviOS/default.nix index ab40208..981f685 100644 --- a/triviOS/default.nix +++ b/triviOS/default.nix @@ -3,6 +3,43 @@ # | || '_| \ V / | (_) \__ \ # |_||_| |_|\_/|_|\___/|___/ # -# Copyright (C) 2023 - Grupo 8, inc. +# Copyright (C) 2023 - Group 8 -{ } +{ pkgs, ... }: { + system.nixos = { + distroName = "TriviOS"; + variant_id = "rpi3"; + }; + + system.stateVersion = "23.05"; + + boot = { + loader.raspberryPi = { + enable = true; + version = 3; + firmwareConfig = '' + core_freq=250 + ''; + }; + loader.grub.enable = false; + kernelPackages = pkgs.linuxPackages_rpi3; + kernelParams = [ + "console=ttyS1,115200n8" + ]; + }; + + hardware.enableRedistributableFirmware = true; + networking.wireless.enable = true; + + environment.systemPackages = with pkgs; [ libraspberrypi ]; + + fileSystems = { + "/" = { + device = "/dev/disk/by-uuid/B007-B007"; + fsType = "vfat"; + options = [ "umask=027" ]; + }; + }; + + +}