cyclone: Initial revision
This commit is contained in:
parent
5840f8c7a4
commit
d799d9af4d
5 changed files with 237 additions and 9 deletions
124
hosts/cyclone/configuration.nix
Normal file
124
hosts/cyclone/configuration.nix
Normal file
|
@ -0,0 +1,124 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
hostName = "cyclone";
|
||||
domain = "host.fox-int.cloud";
|
||||
hostId = "79696666";
|
||||
networkmanager.enable = true;
|
||||
# useNetworkd = true;
|
||||
|
||||
# Use a set of known-good nameservers.
|
||||
nameservers = [
|
||||
# Quad9
|
||||
"2620:fe::fe"
|
||||
"9.9.9.9"
|
||||
# Cloudflare
|
||||
"2606:4700:4700::1111"
|
||||
"1.1.1.1"
|
||||
];
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = [ "flakes" "nix-command" ];
|
||||
|
||||
# Select internationalisation properties.
|
||||
time.timeZone = "America/Chicago";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
# General service configuration.
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
|
||||
# GNOME!
|
||||
desktopManager.gnome.enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
|
||||
# Nvidia driver support.
|
||||
videoDrivers = [ "nvidia" ];
|
||||
};
|
||||
|
||||
# CUPS might be nice.
|
||||
printing.enable = true;
|
||||
|
||||
# Audio support.
|
||||
pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
# We'd like SSH available.
|
||||
openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
hardware = {
|
||||
# Pipewire conflicts with PulseAudio.
|
||||
pulseaudio.enable = false;
|
||||
|
||||
# Nvidia
|
||||
graphics.enable = true;
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
|
||||
# The open source drivers are now recommended.
|
||||
open = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
};
|
||||
|
||||
# AMD
|
||||
cpu.amd.updateMicrocode = true;
|
||||
};
|
||||
|
||||
# Hey, world!
|
||||
users.users.spotlight = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPQQO+c8ygVzRt55Z9qekqItSjYiw381cFPOqX+vGAGT MacBook Air 2020 macOS"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/gyX9b80oml6z3UGOxVMJk/NS8R5w9NEITJcKb0MnU MacBook Air 2020 NixOS"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
# Regretfully, we use a few non-free packages:
|
||||
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
# Nvidia
|
||||
"nvidia-x11"
|
||||
"nvidia-settings"
|
||||
"nvidia-persistenced"
|
||||
# Visual Studio Code
|
||||
"vscode"
|
||||
# Discord
|
||||
"discord"
|
||||
];
|
||||
};
|
||||
|
||||
# Standard system utilities.
|
||||
# The bulk of user-specific packages should go within the home-manager configuration.
|
||||
environment.systemPackages = with pkgs; [
|
||||
discord
|
||||
htop
|
||||
git
|
||||
gnome-tweaks
|
||||
firefox
|
||||
tmux
|
||||
vim
|
||||
vscode
|
||||
wget
|
||||
];
|
||||
|
||||
programs.gnupg.agent.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# Please do not change this without reviewing release notes upstream.
|
||||
system.stateVersion = "24.11";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue