mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
remove: systems folder to use hosts folder instead
This commit is contained in:
parent
172d68ebde
commit
2806beec8e
34 changed files with 0 additions and 2211 deletions
|
@ -1,162 +0,0 @@
|
||||||
Edit this configuration file to define what should be installed on
|
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
||||||
|
|
||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
./cachix.nix
|
|
||||||
];
|
|
||||||
# make ready for nix flakes which are experimental...
|
|
||||||
nix.package = pkgs.nixFlakes;
|
|
||||||
nix.extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
'';
|
|
||||||
# Bootloader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Enable networking
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "America/New_York";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
||||||
LC_MEASUREMENT = "en_US.UTF-8";
|
|
||||||
LC_MONETARY = "en_US.UTF-8";
|
|
||||||
LC_NAME = "en_US.UTF-8";
|
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
|
||||||
LC_PAPER = "en_US.UTF-8";
|
|
||||||
LC_TELEPHONE = "en_US.UTF-8";
|
|
||||||
LC_TIME = "en_US.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
services.xserver.enable = true;
|
|
||||||
|
|
||||||
# Enable the GNOME Desktop Environment.
|
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
|
||||||
services.xserver.displayManager.gdm.wayland = true;
|
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
|
||||||
services.xserver.displayManager.sessionPackages = [ inputs.cosmic-session.packages.x86_64-linux.default ];
|
|
||||||
services.xserver.displayManager.defaultSession = "cosmic";
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver = {
|
|
||||||
layout = "us";
|
|
||||||
xkbVariant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
pinentryFlavor = "gnome3";
|
|
||||||
enableSSHSupport = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
# If you want to use JACK applications, uncomment this
|
|
||||||
#jack.enable = true;
|
|
||||||
|
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
||||||
# no need to redefine it in your config for now)
|
|
||||||
#media-session.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.ashley = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Ashley Wulber";
|
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
|
||||||
packages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
git
|
|
||||||
git-crypt
|
|
||||||
gnupg
|
|
||||||
pinentry
|
|
||||||
# thunderbird
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Allow unfree packages
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
|
||||||
# $ nix search wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
cachix
|
|
||||||
vim
|
|
||||||
xdg-desktop-portal-gtk
|
|
||||||
inputs.cosmic-session.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-comp.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-panel.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-applibrary.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-launcher.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-settings.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-applets.packages.x86_64-linux.default
|
|
||||||
# inputs.cosmic-notifications.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-osd.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-workspaces.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-bg.packages.x86_64-linux.default
|
|
||||||
inputs.xdg-desktop-portal-cosmic.packages.x86_64-linux.default
|
|
||||||
inputs.cosmic-settings-daemon.packages.x86_64-linux.default
|
|
||||||
];
|
|
||||||
|
|
||||||
services.dbus.implementation = "broker";
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
# services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "23.05"; # Did you read the comment?
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
{
|
|
||||||
description = "Aaron's System Config";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "nixpkgs/nixos-23.05";
|
|
||||||
cosmic-comp.url = "github:pop-os/cosmic-comp/master_jammy";
|
|
||||||
cosmic-panel.url = "github:pop-os/cosmic-panel/master_jammy";
|
|
||||||
cosmic-settings.url = "github:pop-os/cosmic-settings/master_jammy";
|
|
||||||
cosmic-settings-daemon.url = "github:pop-os/cosmic-settings-daemon/master_jammy";
|
|
||||||
cosmic-launcher.url = "github:pop-os/cosmic-launcher/master_jammy";
|
|
||||||
cosmic-applibrary.url = "github:pop-os/cosmic-applibrary/master_jammy";
|
|
||||||
cosmic-session.url = "github:pop-os/cosmic-session/ab26218ab2139dc884a66bdb57f6216b248670bf";
|
|
||||||
cosmic-applets.url = "github:pop-os/cosmic-applets/58c27e88603ad47479115b632d2fa87579d8fa39";
|
|
||||||
cosmic-workspaces.url = "github:pop-os/cosmic-workspaces-epoch/717c454a7e31c4ffc8baf6c1d1c90fd74a223e55";
|
|
||||||
cosmic-osd.url = "github:pop-os/cosmic-osd/b6d93f736d4b9ab3df4cceafaf59cd8c95859ed6";
|
|
||||||
cosmic-bg.url = "github:pop-os/cosmic-bg/master_jammy";
|
|
||||||
xdg-desktop-portal-cosmic.url = "github:pop-os/xdg-desktop-portal-cosmic/master_jammy";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, cosmic-comp, cosmic-session, cosmic-panel, cosmic-applets, cosmic-settings, cosmic-settings-daemon, cosmic-launcher, cosmic-applibrary, cosmic-workspaces, cosmic-osd, xdg-desktop-portal-cosmic, cosmic-bg }@attrs: let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
config = { allowUnfree = true; };
|
|
||||||
};
|
|
||||||
cosmic-session.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
|
||||||
|
|
||||||
in {
|
|
||||||
nixosConfigurations = {
|
|
||||||
nixos = lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
specialArgs.inputs = attrs;
|
|
||||||
modules = [
|
|
||||||
./configuration.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "jaal";
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,136 +0,0 @@
|
||||||
{ 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;
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,90 +0,0 @@
|
||||||
{ 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";
|
|
|
@ -1,91 +0,0 @@
|
||||||
{ 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;
|
|
||||||
}
|
|
|
@ -1,111 +0,0 @@
|
||||||
{
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,56 +0,0 @@
|
||||||
{ 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;
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
description = "VM";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
|
||||||
disko = {
|
|
||||||
url = github:nix-community/disko;
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, disko, ... }@inputs: {
|
|
||||||
nixosConfigurations = {
|
|
||||||
"vm" = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-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
|
|
||||||
# ./configuration.nix
|
|
||||||
disko.nixosModules.disko
|
|
||||||
./disko-config.nix
|
|
||||||
{
|
|
||||||
_module.args.disks = [ "/dev/vda" ];
|
|
||||||
}
|
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
({config, pkgs, ...}: {
|
|
||||||
nix = {
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
systemd-boot.consoleMode = "0";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "vm";
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
neofetch
|
|
||||||
tree
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings.PermitRootLogin = "no";
|
|
||||||
};
|
|
||||||
|
|
||||||
system = {
|
|
||||||
stateVersion = "23.11";
|
|
||||||
autoUpgrade.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Add kernel parameters for virtual machines
|
|
||||||
boot.kernelParams = [ "vfio-pci.ids=8086:9b41" "qxl" "bochs_drm"];
|
|
||||||
|
|
||||||
networking.hostName = "vm";
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "darp9";
|
|
||||||
|
|
||||||
# System76
|
|
||||||
hardware.system76.enableAll = true;
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "galp4";
|
|
||||||
|
|
||||||
# System76
|
|
||||||
hardware.system76.enableAll = true;
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "garrus";
|
|
||||||
|
|
||||||
# System76
|
|
||||||
hardware.system76.enableAll = true;
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "gaze16-3050";
|
|
||||||
|
|
||||||
# System76
|
|
||||||
hardware.system76.enableAll = true;
|
|
||||||
|
|
||||||
# NVIDIA
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
hardware.opengl.enable = true;
|
|
||||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
|
|
||||||
# Allow Unfree
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
}
|
|
|
@ -1,129 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
# ./unstable.nix
|
|
||||||
./ahoneybun-net.nix
|
|
||||||
./tildecafe-com.nix
|
|
||||||
./rockymtnlug-org.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
|
||||||
|
|
||||||
nix.settings.auto-optimise-store = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.version = 2;
|
|
||||||
boot.loader.grub.extraConfig = ''
|
|
||||||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
||||||
terminal_input serial;
|
|
||||||
terminal_output serial
|
|
||||||
'';
|
|
||||||
boot.loader.grub.device = "nodev"; # or "nodev" for efi only
|
|
||||||
boot.loader.timeout = 10;
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.extraHosts =
|
|
||||||
''
|
|
||||||
23.32.241.51 r3.o.lencr.org
|
|
||||||
'';
|
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
|
||||||
security.acme.defaults.email = "aaronhoneycutt@proton.me";
|
|
||||||
|
|
||||||
networking.hostName = "harbinger";
|
|
||||||
# Pick only one of the below networking options.
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
# time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
# services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound.
|
|
||||||
# sound.enable = true;
|
|
||||||
# hardware.pulseaudio.enable = true;
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
acme-sh
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
jekyll
|
|
||||||
mtr
|
|
||||||
neofetch
|
|
||||||
rubyPackages.webrick
|
|
||||||
rubyPackages.jekyll-feed
|
|
||||||
rubyPackages.jekyll-redirect-from
|
|
||||||
sysstat
|
|
||||||
tree
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
permitRootLogin = "no";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
networking.usePredictableInterfaceNames = false;
|
|
||||||
networking.useDHCP = false;
|
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
|
||||||
# accidentally delete configuration.nix.
|
|
||||||
# system.copySystemConfiguration = true;
|
|
||||||
|
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,123 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
# ./unstable.nix
|
|
||||||
./ahoneybun-net.nix
|
|
||||||
./mc-ahoneybun-net.nix
|
|
||||||
# ./nextcloud.nix
|
|
||||||
./tildecafe-com.nix
|
|
||||||
./rockymtnlug-org.nix
|
|
||||||
# ./chat-rockymtnlug-org.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
|
||||||
|
|
||||||
nix.settings.auto-optimise-store = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.extraConfig = ''
|
|
||||||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
||||||
terminal_input serial;
|
|
||||||
terminal_output serial
|
|
||||||
'';
|
|
||||||
boot.loader.grub.device = "nodev"; # or "nodev" for efi only
|
|
||||||
boot.loader.timeout = 10;
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.extraHosts =
|
|
||||||
''
|
|
||||||
23.32.241.51 r3.o.lencr.org
|
|
||||||
'';
|
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
|
||||||
security.acme.defaults.email = "aaronhoneycutt@proton.me";
|
|
||||||
|
|
||||||
networking.hostName = "harbinger";
|
|
||||||
# Pick only one of the below networking options.
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
# time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
# services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound.
|
|
||||||
# sound.enable = true;
|
|
||||||
# hardware.pulseaudio.enable = true;
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
acme-sh
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
mtr
|
|
||||||
neofetch
|
|
||||||
sysstat
|
|
||||||
tree
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
permitRootLogin = "no";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
networking.usePredictableInterfaceNames = false;
|
|
||||||
networking.useDHCP = false;
|
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
|
||||||
|
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
|
||||||
system.autoUpgrade.enable = true;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,99 +0,0 @@
|
||||||
{
|
|
||||||
description = "Harbinger";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
|
||||||
nixosConfigurations = {
|
|
||||||
"harbinger" = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-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
|
|
||||||
# ./configuration.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
./ahoneybun-net.nix
|
|
||||||
./tildecafe-com.nix
|
|
||||||
./rockymtnlug-org.nix
|
|
||||||
|
|
||||||
({config, pkgs, ...}: {
|
|
||||||
nix = {
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
kernelParams = [ "console=ttyS0,1920n8" ];
|
|
||||||
|
|
||||||
loader.grub.enable = true;
|
|
||||||
loader.grub.extraConfig = ''
|
|
||||||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
||||||
terminal_input serial;
|
|
||||||
terminal_output serial
|
|
||||||
'';
|
|
||||||
loader.grub.device = "nodev"; # or "nodev" for efi only
|
|
||||||
loader.timeout = 10;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "harbinger";
|
|
||||||
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
usePredictableInterfaceNames = false;
|
|
||||||
useDHCP = false;
|
|
||||||
interfaces.eth0.useDHCP = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
acme-sh
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
mtr
|
|
||||||
neofetch
|
|
||||||
sysstat
|
|
||||||
tree
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
|
||||||
security.acme.defaults.email = "aaronhoneycutt@proton.me";
|
|
||||||
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings.PermitRootLogin = "no";
|
|
||||||
};
|
|
||||||
|
|
||||||
system = {
|
|
||||||
stateVersion = "23.05";
|
|
||||||
autoUpgrade.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "hp-omen";
|
|
||||||
|
|
||||||
# NVIDIA
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
hardware.opengl.enable = true;
|
|
||||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
|
|
||||||
## Enable 32 Bit libraries for applications like Steam
|
|
||||||
hardware.opengl.driSupport32Bit = true;
|
|
||||||
|
|
||||||
# Allow Unfree
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
environment.systemPackages =
|
|
||||||
with pkgs;
|
|
||||||
[
|
|
||||||
steam
|
|
||||||
];
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,143 +0,0 @@
|
||||||
{
|
|
||||||
description = "Joker";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
|
||||||
nixosConfigurations = {
|
|
||||||
"thelio-b1" = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-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
|
|
||||||
# ./configuration.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
({config, pkgs, ...}: {
|
|
||||||
nix = {
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
initrd.luks.devices = {
|
|
||||||
root = {
|
|
||||||
device = "/dev/nvme0n1p2";
|
|
||||||
preLVM = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
# kernelParams = [ "console=ttyS0,1920n8" ];
|
|
||||||
|
|
||||||
loader.systemd-boot.enable = true;
|
|
||||||
loader.systemd-boot.consoleMode = "0";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "thelio-b1";
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.aaronh = {
|
|
||||||
description = "Aaron Honeycutt";
|
|
||||||
home = "/home/aaronh";
|
|
||||||
isNormalUser = true;
|
|
||||||
shell = pkgs.fish;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
mdbook
|
|
||||||
neofetch
|
|
||||||
restic
|
|
||||||
roboto-slab
|
|
||||||
rustc
|
|
||||||
|
|
||||||
# GUI
|
|
||||||
signal-desktop
|
|
||||||
youtube-music
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.fish.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
avahi
|
|
||||||
cosmic-edit
|
|
||||||
dmidecode
|
|
||||||
firefox
|
|
||||||
libcamera
|
|
||||||
lshw
|
|
||||||
nix-index
|
|
||||||
sysstat
|
|
||||||
tree
|
|
||||||
unzip
|
|
||||||
wget
|
|
||||||
|
|
||||||
gnome.dconf-editor
|
|
||||||
];
|
|
||||||
|
|
||||||
# GNOME
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager.gdm.enable = true;
|
|
||||||
desktopManager.gnome.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Remove GNOME packages
|
|
||||||
environment.gnome.excludePackages = (with pkgs; [
|
|
||||||
epiphany # web browser
|
|
||||||
gnome.geary
|
|
||||||
gnome.gnome-software
|
|
||||||
gnome-connections
|
|
||||||
gnome-photos
|
|
||||||
gnome-tour
|
|
||||||
]);
|
|
||||||
|
|
||||||
# Services
|
|
||||||
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
|
||||||
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
fwupd.enable = true;
|
|
||||||
printing.enable = true;
|
|
||||||
openssh.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.avahi = {
|
|
||||||
enable = true;
|
|
||||||
nssmdns = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
system = {
|
|
||||||
stateVersion = "23.11";
|
|
||||||
autoUpgrade.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "lemp12";
|
|
||||||
|
|
||||||
# System76
|
|
||||||
hardware.system76.enableAll = true;
|
|
||||||
}
|
|
|
@ -1,173 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
# ./unstable.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
||||||
|
|
||||||
nix.settings.extra-platforms = [ "aarch64-linux" ];
|
|
||||||
nix.settings.auto-optimise-store = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
nix.buildMachines = [{
|
|
||||||
hostName = "localhost";
|
|
||||||
systems = ["x86_64-linux"
|
|
||||||
"aarch64-linux"
|
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-darwin"];
|
|
||||||
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
|
|
||||||
maxJobs = 8;
|
|
||||||
}];
|
|
||||||
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.version = 2;
|
|
||||||
boot.loader.grub.extraConfig = ''
|
|
||||||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
||||||
terminal_input serial;
|
|
||||||
terminal_output serial
|
|
||||||
'';
|
|
||||||
boot.loader.grub.device = "nodev"; # or "nodev" for efi only
|
|
||||||
boot.loader.timeout = 10;
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.extraHosts =
|
|
||||||
''
|
|
||||||
23.32.241.51 r3.o.lencr.org
|
|
||||||
'';
|
|
||||||
|
|
||||||
fileSystems."/mnt/swapfile" =
|
|
||||||
{ device = "/dev/disk/by-uuid/82672991-fe8a-485a-8dcf-7c8ae1282b6c";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.hydra = {
|
|
||||||
enable = true;
|
|
||||||
hydraURL = "localhost:3000";
|
|
||||||
notificationSender = "hydra@localhost";
|
|
||||||
#buildMachinesFiles = [];
|
|
||||||
useSubstitutes = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
|
||||||
security.acme.defaults.email = "aaronhoneycutt@proton.me";
|
|
||||||
|
|
||||||
networking.hostName = "nixos-server"; # Define your hostname.
|
|
||||||
# Pick only one of the below networking options.
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
# time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
|
||||||
# services.printing.enable = true;
|
|
||||||
|
|
||||||
# Enable sound.
|
|
||||||
# sound.enable = true;
|
|
||||||
# hardware.pulseaudio.enable = true;
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
flatpak
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
just
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.nathanielw = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
|
||||||
packages = with pkgs; [
|
|
||||||
neofetch
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.builder = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" ];
|
|
||||||
packages = with pkgs; [
|
|
||||||
neofetch
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
acme-sh
|
|
||||||
git
|
|
||||||
inetutils
|
|
||||||
mtr
|
|
||||||
neofetch
|
|
||||||
sysstat
|
|
||||||
toybox
|
|
||||||
tree
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
permitRootLogin = "yes";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
networking.usePredictableInterfaceNames = false;
|
|
||||||
networking.useDHCP = false;
|
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
|
||||||
# accidentally delete configuration.nix.
|
|
||||||
# system.copySystemConfiguration = true;
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "oryp6";
|
|
||||||
|
|
||||||
# System76
|
|
||||||
hardware.system76.enableAll = true;
|
|
||||||
|
|
||||||
# NVIDIA
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
hardware.opengl.enable = true;
|
|
||||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
|
|
||||||
# Allow Unfree
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "shepard";
|
|
||||||
|
|
||||||
## Enable 32 Bit libraries for applications like Steam
|
|
||||||
hardware.opengl.driSupport32Bit = true;
|
|
||||||
|
|
||||||
# Allow Unfree
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
environment.systemPackages =
|
|
||||||
with pkgs;
|
|
||||||
[
|
|
||||||
steam
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,129 +0,0 @@
|
||||||
{
|
|
||||||
description = "Shepard";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
# nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
|
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs-unstable, nixos-hardware, ... }@inputs: {
|
|
||||||
nixosConfigurations = {
|
|
||||||
"shepard" = nixpkgs-unstable.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
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
|
|
||||||
./hardware-configuration.nix
|
|
||||||
./gnome.nix
|
|
||||||
|
|
||||||
({config, pkgs, ...}: {
|
|
||||||
|
|
||||||
# Latest kernel
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
boot.loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
systemd-boot.consoleMode = "0";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices = {
|
|
||||||
root = {
|
|
||||||
device = "/dev/nvme1n1p2";
|
|
||||||
preLVM = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "shepard";
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
time.timeZone = "America/Denver";
|
|
||||||
|
|
||||||
# Stable
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
avahi
|
|
||||||
cargo
|
|
||||||
cosmic-edit
|
|
||||||
dmidecode
|
|
||||||
fire
|
|
||||||
firefox
|
|
||||||
fish
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
libcamera
|
|
||||||
lshw
|
|
||||||
roboto-slab
|
|
||||||
neofetch
|
|
||||||
restic
|
|
||||||
unzip
|
|
||||||
wget
|
|
||||||
xz
|
|
||||||
];
|
|
||||||
|
|
||||||
users.users.aaronh = {
|
|
||||||
description = "Aaron Honeycutt";
|
|
||||||
home = "/home/aaronh";
|
|
||||||
extraGroups = [ "wheel" "networkmanager" "adm" ];
|
|
||||||
isNormalUser = true;
|
|
||||||
shell = pkgs.fish;
|
|
||||||
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
signal-desktop
|
|
||||||
youtube-music
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
# Allow Unfree
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# System
|
|
||||||
system = {
|
|
||||||
stateVersion = "23.11";
|
|
||||||
autoUpgrade.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,122 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
# ./unstable.nix
|
|
||||||
./stoners-space.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
||||||
|
|
||||||
nix.settings.extra-platforms = [ "aarch64-linux" ];
|
|
||||||
nix.settings.auto-optimise-store = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
nix.buildMachines = [{
|
|
||||||
hostName = "localhost";
|
|
||||||
systems = ["x86_64-linux"
|
|
||||||
"aarch64-linux"
|
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-darwin"];
|
|
||||||
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
|
|
||||||
maxJobs = 8;
|
|
||||||
}];
|
|
||||||
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.version = 2;
|
|
||||||
boot.loader.grub.extraConfig = ''
|
|
||||||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
||||||
terminal_input serial;
|
|
||||||
terminal_output serial
|
|
||||||
'';
|
|
||||||
boot.loader.grub.device = "nodev"; # or "nodev" for efi only
|
|
||||||
boot.loader.timeout = 10;
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.extraHosts =
|
|
||||||
''
|
|
||||||
23.32.241.51 r3.o.lencr.org
|
|
||||||
'';
|
|
||||||
|
|
||||||
# fileSystems."/mnt/swapfile" =
|
|
||||||
# { device = "/dev/disk/by-uuid/82672991-fe8a-485a-8dcf-7c8ae1282b6c";
|
|
||||||
# fsType = "ext4";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# services.hydra = {
|
|
||||||
# enable = true;
|
|
||||||
# hydraURL = "localhost:3000";
|
|
||||||
# notificationSender = "hydra@localhost";
|
|
||||||
# useSubstitutes = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
|
||||||
security.acme.defaults.email = "aaronhoneycutt@proton.me";
|
|
||||||
|
|
||||||
networking.hostName = "sovereign";
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
# time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.builder = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" ];
|
|
||||||
packages = with pkgs; [
|
|
||||||
neofetch
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
acme-sh
|
|
||||||
git
|
|
||||||
mtr
|
|
||||||
neofetch
|
|
||||||
sysstat
|
|
||||||
tree
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
permitRootLogin = "no";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.usePredictableInterfaceNames = false;
|
|
||||||
networking.useDHCP = false;
|
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
|
||||||
|
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,123 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ # Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
# ./unstable.nix
|
|
||||||
./stoners-space.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
||||||
|
|
||||||
nix.settings.extra-platforms = [ "aarch64-linux" ];
|
|
||||||
nix.settings.auto-optimise-store = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
nix.buildMachines = [{
|
|
||||||
hostName = "localhost";
|
|
||||||
systems = ["x86_64-linux"
|
|
||||||
"aarch64-linux"
|
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-darwin"];
|
|
||||||
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
|
|
||||||
maxJobs = 8;
|
|
||||||
}];
|
|
||||||
|
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.extraConfig = ''
|
|
||||||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
||||||
terminal_input serial;
|
|
||||||
terminal_output serial
|
|
||||||
'';
|
|
||||||
boot.loader.grub.device = "nodev"; # or "nodev" for efi only
|
|
||||||
boot.loader.timeout = 10;
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.extraHosts =
|
|
||||||
''
|
|
||||||
23.32.241.51 r3.o.lencr.org
|
|
||||||
'';
|
|
||||||
|
|
||||||
# fileSystems."/mnt/swapfile" =
|
|
||||||
# { device = "/dev/disk/by-uuid/82672991-fe8a-485a-8dcf-7c8ae1282b6c";
|
|
||||||
# fsType = "ext4";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# services.hydra = {
|
|
||||||
# enable = true;
|
|
||||||
# hydraURL = "localhost:3000";
|
|
||||||
# notificationSender = "hydra@localhost";
|
|
||||||
# useSubstitutes = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
|
||||||
security.acme.defaults.email = "aaronhoneycutt@proton.me";
|
|
||||||
|
|
||||||
networking.hostName = "sovereign";
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
# time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.builder = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" ];
|
|
||||||
packages = with pkgs; [
|
|
||||||
neofetch
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
acme-sh
|
|
||||||
git
|
|
||||||
inetutils
|
|
||||||
mtr
|
|
||||||
neofetch
|
|
||||||
sysstat
|
|
||||||
tree
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
permitRootLogin = "no";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.usePredictableInterfaceNames = false;
|
|
||||||
networking.useDHCP = false;
|
|
||||||
networking.interfaces.eth0.useDHCP = true;
|
|
||||||
|
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
|
||||||
system.autoUpgrade.enable = true;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,111 +0,0 @@
|
||||||
{
|
|
||||||
description = "Sovereign";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
|
||||||
nixosConfigurations = {
|
|
||||||
"sovereign" = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-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
|
|
||||||
# ./configuration.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
./stoners-space.nix
|
|
||||||
|
|
||||||
({config, pkgs, ...}: {
|
|
||||||
nix = {
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
settings.extra-platforms = [ "aarch64-linux" ];
|
|
||||||
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildMachines = [{
|
|
||||||
hostName = "localhost";
|
|
||||||
systems = [ "x86_64-linux"
|
|
||||||
"aarch64-linux"
|
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-darwin" ];
|
|
||||||
supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ];
|
|
||||||
maxJobs = 8;
|
|
||||||
}];
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
kernelParams = [ "console=ttyS0,1920n8" ];
|
|
||||||
|
|
||||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
||||||
|
|
||||||
loader.grub.enable = true;
|
|
||||||
loader.grub.extraConfig = ''
|
|
||||||
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
|
|
||||||
terminal_input serial;
|
|
||||||
terminal_output serial
|
|
||||||
'';
|
|
||||||
loader.grub.device = "nodev"; # or "nodev" for efi only
|
|
||||||
loader.timeout = 10;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "sovereign";
|
|
||||||
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
usePredictableInterfaceNames = false;
|
|
||||||
useDHCP = false;
|
|
||||||
interfaces.eth0.useDHCP = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
acme-sh
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
mtr
|
|
||||||
neofetch
|
|
||||||
sysstat
|
|
||||||
tree
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
|
|
||||||
security.acme.acceptTerms = true;
|
|
||||||
security.acme.defaults.email = "aaronhoneycutt@proton.me";
|
|
||||||
|
|
||||||
services.openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings.PermitRootLogin = "no";
|
|
||||||
};
|
|
||||||
|
|
||||||
system = {
|
|
||||||
stateVersion = "23.05";
|
|
||||||
autoUpgrade.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Name your host machine
|
|
||||||
networking.hostName = "thelio-b1";
|
|
||||||
|
|
||||||
# System76
|
|
||||||
hardware.system76.enableAll = true;
|
|
||||||
|
|
||||||
# NVIDIA
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
hardware.opengl.enable = true;
|
|
||||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
|
|
||||||
# Allow Unfree
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
}
|
|
|
@ -1,140 +0,0 @@
|
||||||
{
|
|
||||||
description = "nixos-vm";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
|
||||||
nixosConfigurations = {
|
|
||||||
"nixos-vm" = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-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
|
|
||||||
# ./configuration.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
({config, pkgs, ...}: {
|
|
||||||
nix = {
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 30d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
initrd.luks.devices = {
|
|
||||||
root = {
|
|
||||||
device = "/dev/sda";
|
|
||||||
preLVM = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
kernelParams = [ "console=ttyS0,1920n8" ];
|
|
||||||
|
|
||||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
||||||
|
|
||||||
loader.systemd-boot.enable = true;
|
|
||||||
loader.systemd-boot.consoleMode = "0";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "nixos-vm";
|
|
||||||
networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.aaronh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
|
|
||||||
packages = with pkgs; [
|
|
||||||
cargo
|
|
||||||
git
|
|
||||||
git-lfs
|
|
||||||
mdbook
|
|
||||||
neofetch
|
|
||||||
restic
|
|
||||||
roboto-slab
|
|
||||||
|
|
||||||
firefox
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# GNOME
|
|
||||||
services.xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager.gdm.enable = true;
|
|
||||||
desktopManager.gnome.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = (with pkgs; [
|
|
||||||
avahi
|
|
||||||
dmidecode
|
|
||||||
libcamera
|
|
||||||
lshw
|
|
||||||
nix-index
|
|
||||||
sysstat
|
|
||||||
tree
|
|
||||||
unzip
|
|
||||||
wget
|
|
||||||
|
|
||||||
# Add GNOME packages
|
|
||||||
gnome.dconf-editor
|
|
||||||
gnome.gnome-tweaks
|
|
||||||
gnomeExtensions.appindicator
|
|
||||||
gnomeExtensions.pop-shell
|
|
||||||
gnomeExtensions.pop-launcher-super-key
|
|
||||||
]);
|
|
||||||
|
|
||||||
# Remove GNOME packages
|
|
||||||
environment.gnome.excludePackages = (with pkgs; [
|
|
||||||
epiphany # web browser
|
|
||||||
gnome.geary
|
|
||||||
gnome.gnome-software
|
|
||||||
gnome-connections
|
|
||||||
gnome-photos
|
|
||||||
gnome-tour
|
|
||||||
]);
|
|
||||||
|
|
||||||
# Services
|
|
||||||
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
|
||||||
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
fwupd.enable = true;
|
|
||||||
printing.enable = true;
|
|
||||||
openssh.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.avahi = {
|
|
||||||
enable = true;
|
|
||||||
nssmdns = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
system = {
|
|
||||||
stateVersion = "23.05";
|
|
||||||
autoUpgrade.enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue