add: hosts folder

This commit is contained in:
Aaron Honeycutt 2024-01-31 08:00:36 -07:00
parent 641e11f49f
commit 172d68ebde
31 changed files with 2008 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
# Name your host machine
networking.hostName = "jaal";
}

View file

@ -0,0 +1,136 @@
{ config, pkgs, lib, ... }:
{
imports =
[
# <nixos-hardware/pine64/pinebook-pro>
./hardware-configuration.nix
# ./programs.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [ "console=tty0" ];
boot.loader = {
efi = {
canTouchEfiVariables = false;
};
grub = {
enable = true;
efiInstallAsRemovable = true;
efiSupport = true;
version = 2;
device = "nodev";
};
};
boot.initrd.luks.devices = {
root = {
device = "/dev/sda";
preLVM = true;
};
};
boot.initrd.kernelModules = [
# Rockchip modules
"rockchip_rga"
"rockchip_saradc"
"rockchip_thermal"
"rockchipdrm"
# GPU/Display modules
"analogix_dp"
"cec"
"drm"
"drm_kms_helper"
"dw_hdmi"
"dw_mipi_dsi"
"gpu_sched"
"panel_edp"
"panel_simple"
"panfrost"
"pwm_bl"
# USB / Type-C related modules
"fusb302"
"tcpm"
"typec"
# Misc. modules
"cw2015_battery"
"gpio_charger"
"rtc_rk808"
];
nix.settings.auto-optimise-store = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
networking = {
hostName = "jaal";
networkmanager.enable = true;
};
# Set your time zone.
time.timeZone = "America/Denver";
environment.systemPackages =
with pkgs;
[
firefox
git
git-lfs
neofetch
unzip
wget
];
# Define user accounts
users.users.aaronh = {
description = "Aaron Honeycutt";
home = "/home/aaronh";
extraGroups = [ "wheel" "networkmanager" "adm"];
isNormalUser = true;
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
packages = with pkgs; [
fish
];
shell = pkgs.fish;
};
# Enable Pipewire
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Turn off PulseAudio
hardware.pulseaudio.enable = false;
# Enable Bluetooth
hardware.bluetooth.enable = true;
# Enable the OpenSSH daemon
services.openssh.enable = true;
# Enable CUPS
services.printing.enable = true;
# Allow Unfree
nixpkgs.config.allowUnfree = true;
# System
system.stateVersion = "23.11";
system.autoUpgrade.enable = true;
}

View file

@ -0,0 +1,90 @@
{ config, lib, pkgs, ... }:
{
imports = [
(import <mobile-nixos/lib/configuration.nix> { device = "pine64-pinephone"; })
./hardware-configuration.nix
<mobile-nixos/examples/phosh/phosh.nix>
];
fileSystems."/mnt/ExtraDrive" =
{ device = "/dev/disk/by-uuid/631d2b85-2e0b-4740-8b45-6147cf15193f";
fsType = "ext4";
};
# Kernel changes
# boot.kernelPackages = pkgs.linuxPackages_latest;
nix.settings.auto-optimise-store = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# NetworkManager
networking.wireless.enable = false;
networking.networkmanager.enable = true;
networking.hostName = "peebee";
# SSH
services.openssh = {
enable = true;
};
# Use PulseAudio
hardware.pulseaudio.enable = true;
# Enable Bluetooth
hardware.bluetooth.enable = true;
# Bluetooth audio
hardware.pulseaudio.package = pkgs.pulseaudioFull;
# Enable power management options
powerManagement.enable = true;
# It's recommended to keep enabled on these constrained devices
zramSwap.enable = true;
# Auto-login for phosh
services.xserver.desktopManager.phosh = {
user = "aaronh";
};
time.timeZone = "America/Denver";
users.users."aaronh" = {
isNormalUser = true;
description = "Aaron Honeycutt";
hashedPassword = "$6$zOZeSMch129yV5i1$9E0sFdMo4qIBUZgPKgl5AXKlYNku12gv2owPy7FSpC2W4qMofTzoX2KFLmGxERdI8A7n0kyJElcUFQGIS940j1";
extraGroups = [
"dialout"
"feedbackd"
"networkmanager"
"video"
"wheel"
];
# GUI
packages = with pkgs; [
portfolio-filemanager
# CLI
grim
];
};
# Remove GNOME packages
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
]);
environment.systemPackages = (with pkgs; [
# rest of your packages
]);
system.stateVersion = "23.11";

View file

@ -0,0 +1,91 @@
{ config, pkgs, lib, ... }:
{
imports = [
# <nixos-hardware/raspberry-pi/4>
./home-assistant.nix
# ./gnome.nix
# ./programs.nix
];
# boot.kernelPackages = pkgs.linuxPackages_latest;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
};
networking = {
hostName = "vetra";
networkmanager.enable = true;
};
# Set your time zone.
time.timeZone = "America/Denver";
environment.systemPackages =
with pkgs;
[
fish
git
neofetch
restic
wget
];
# Define user accounts
users.users.aaronh = {
description = "Aaron Honeycutt";
home = "/home/aaronh";
extraGroups = [ "wheel" "networkmanager" "adm"];
isNormalUser = true;
shell = pkgs.fish;
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
};
programs.fish.enable = true;
# Enable Pipewire
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Turn off PulseAudio
hardware.pulseaudio.enable = false;
# Enable Bluetooth
hardware.bluetooth.enable = true;
# Enable SSH
services.openssh.enable = true;
# Enable CUPS
services.printing.enable = true;
# Enable GPU acceleration
hardware.raspberry-pi."4".fkms-3d.enable = true;
# Allow Unfree
nixpkgs.config.allowUnfree = true;
services.hydra = {
enable = false;
hydraURL = "http://localhost:3000";
notificationSender = "hydra@localhost";
buildMachinesFiles = [];
useSubstitutes = true;
};
# System
system.stateVersion = "22.11";
system.autoUpgrade.enable = true;
}

View file

@ -0,0 +1,111 @@
{
description = "Vetra";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
home-manager = {
url = "github:nix-community/home-manager/release-22.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = { self, nixpkgs, nixos-hardware, ... }@inputs: {
nixosConfigurations = {
"vetra" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
# Import the configuration.nix we used before, so that the old configuration file can still take effect.
# Note: /etc/nixos/configuration.nix itself is also a Nix Module, so you can import it directly here
nixos-hardware.nixosModules.raspberry-pi-4
# ./configuration.nix
({config, pkgs, ...}: {
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
"/mnt/ExtraDrive" = {
device = "/dev/disk/by-uuid/72315f9e-ceda-4152-8e8d-09590affba28";
fsType = "ext4";
};
};
nix = {
settings.auto-optimise-store = true;
settings.experimental-features = [ "nix-command" "flakes" ];
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
networking = {
hostName = "vetra";
networkmanager.enable = true;
};
time.timeZone = "America/Denver";
environment.systemPackages = with pkgs; [
fish
git
neofetch
restic
wget
];
users.users.aaronh = {
description = "Aaron Honeycutt";
home = "/home/aaronh";
extraGroups = [ "wheel" "networkmanager" "adm" ];
isNormalUser = true;
shell = pkgs.fish;
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
};
programs.fish.enable = true;
# Enable Pipewire
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Turn off PulseAudio
hardware.pulseaudio.enable = false;
# Enable Bluetooth
hardware.bluetooth.enable = true;
# Enable SSH
services.openssh.enable = true;
# Enable CUPS
services.printing.enable = true;
# Enable GPU Acceleration
hardware.raspberry-pi."4".fkms-3d.enable = true;
# Allow Unfree
nixpkgs.config.allowUnfree = true;
# System
system = {
stateVersion = "23.05";
autoUpgrade.enable = true;
};
})
];
};
};
};
}

View file

@ -0,0 +1,56 @@
{ config, pkgs, lib, ... }:
let
SSID = "Honeycutt-5G";
SSIDpassword = "Frappe92";
interface = "wlan0";
hostname = "NixOS";
in {
imports = ["${fetchTarball "https://github.com/NixOS/nixos-hardware/archive/936e4649098d6a5e0762058cb7687be1b2d90550.tar.gz" }/raspberry-pi/4"];
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
};
networking = {
hostName = "NixOS";
networkmanager.enable = true;
wireless = {
enable = true;
networks."${SSID}".psk = SSIDpassword;
interfaces = [ interface ];
};
};
# Set your time zone.
time.timeZone = "America/Denver";
environment.systemPackages = with pkgs; [ vim ];
services.openssh.enable = true;
# Define user accounts
users.extraUsers.aaronh = {
description = "Aaron Honeycutt";
home = "/home/aaronh";
extraGroups = [ "wheel" "networkmanager" "adm"];
isNormalUser = true;
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
};
# Enable GPU acceleration
hardware.raspberry-pi."4".fkms-3d.enable = true;
services.xserver = {
enable = true;
displayManager.lightdm.enable = true;
desktopManager.xfce.enable = true;
};
hardware.pulseaudio.enable = true;
}