Description
################################################################################
# █▄░█ █ ▀▄▀ █▀█ █▀ ▄▄ █░█ █▀█
# █░▀█ █ █░█ █▄█ ▄█ ░░ █▄█ █▀▀
#
# This NixOS installation brought to you by nixos-up!
# Please consider supporting the project (https://github.com/samuela/nixos-up)
# and the NixOS Foundation (https://opencollective.com/nixos)!
################################################################################
# Run this command after you change this file.
# nixos-rebuild switch
# 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’).
{ lib, config, pkgs, ... }:
let
home-manager = fetchTarball "https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz";
kubeMasterIP = "192.168.1.15";
kubeMasterHostname = "nixos.foxhop.net";
kubeMasterAPIServerPort = 6443;
in
{
# Your home-manager configuration! Check out https://rycee.gitlab.io/home-manager/ for all possible options.
home-manager.users.fox = { pkgs, ... }: {
home.packages = with pkgs; [ hello ];
home.stateVersion = "24.11";
};
# Include other .nix config files
imports = [
"${home-manager}/nixos"
# the results of the hardware scan.
./hardware-configuration.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
#boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
# boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# resolve master hostname
networking.extraHosts = "${kubeMasterIP} ${kubeMasterHostname}";
# Set your time zone.
time.timeZone = "America/New_York";
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.eno1.useDHCP = true;
networking.nameservers = ["192.168.1.22"];
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# };
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
#services.xserver.videoDrivers = [ "nvidia" ];
# configured a predicate to allow specific non-free packages:
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
#"nvidia"
#"nvidia-x11"
#"nvidia-settings"
"steam-run"
"steam"
"steam-original"
"steam-runtime"
"steam-unwrapped"
];
# Configure keymap in X11
# services.xserver.layout = "us";
# services.xserver.xkbOptions = "eurosign:e";
# 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.libinput.enable = true;
# Enable steam.
programs.steam.enable = true;
# if you want to use steam contorller or index, uncomment.
# hardware.steam-hardware.enable = true;
# services.openssh = {
# enable = true;
# permitRootLogin = "yes";
# }
users.mutableUsers = false;
users.users.fox = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "libvirt" "docker" ];
hashedPasswordFile = "/etc/passwordFile-fox";
};
# Disable password-based login for root.
users.users.root.hashedPassword = "!";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# Do not forget to add an editor to edit configuration.nix!
# The Nano editor is also installed by default.
vim
git
dig
wget
unzip
firefox
yggdrasil
# autoformatting this file.
nixpkgs-fmt
# virtual machines!
virt-manager
# unix password store
pass
pass-wayland
pinentry
pinentry-gnome3
pinentry-curses
# gpg
gnupg
gnumake
# rust people really do cargo cult hard, sorta wierd.
rustc
cargo
docker
docker-compose
# kubernetes
# https://nixos.wiki/wiki/Kubernetes
kompose
kubectl
kubernetes
# try to install python3
(let
my-python-packages = python-packages: with python-packages; [
requests
];
python-with-my-packages = python3.withPackages my-python-packages;
in
python-with-my-packages)
];
environment.variables.EDITOR = "vim";
services.yggdrasil = {
enable = true;
persistentKeys = true;
# The NixOS module will generate new keys and a new IPv6 address each time
# it is started if persistentKeys is not enabled.
settings = {
Peers = [
# Yggdrasil will automatically connect and "peer" with other nodes it
# discovers via link-local multicast annoucements. Unless this is the
# case (it probably isn't) a node needs peers within the existing
# network that it can tunnel to.
"tcp://50.236.201.218:56088"
# Public peers can be found at
# https://github.com/yggdrasil-network/public-peers
];
};
};
virtualisation.libvirtd = {
enable = true;
onBoot = "ignore";
onShutdown = "shutdown";
qemu = {
ovmf = {
enable = true;
};
runAsRoot = false;
};
};
# enable docker service.
virtualisation.docker.enable = true;
# kubernetes.
services.kubernetes = {
roles = ["master" "node"];
masterAddress = kubeMasterHostname;
apiserverAddress = "https://${kubeMasterHostname}:${toString kubeMasterAPIServerPort}";
easyCerts = true;
apiserver = {
securePort = kubeMasterAPIServerPort;
advertiseAddress = kubeMasterIP;
};
# use coredns
addons.dns.enable = true;
# needed if you use swap
kubelet.extraOpts = "--fail-swap-on=false";
};
# 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;
};
services.pcscd.enable = 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 = "21.11"; # Did you read the comment?
# Configure swap file. Sizes are in megabytes. Default swap is
# max(1GB, sqrt(RAM)) = 1024. If you want to use hibernation with
# this device, then it's recommended that you use
# RAM + max(1GB, sqrt(RAM)) = 8940.000.
swapDevices = [{ device = "/swapfile"; size = 1024; }];
}
Created 1y, 322d ago · Updated 301d, 5h ago · 2 views
Queue
Up Next
▶
/etc/nixos/configuration.nix for a thinkpad t430s
42
scatman
63
David Kun!
64
ELECTRIC HEN HOUSE - Supplemental Heat For The Chicken Coop! Cold Wave Sweeps Eastern States United
67
Geo Dude
79
2%
83
Purple Ennui
91
momento mori
109
potato
115
red pruner ⭕
124
Freedom to fly.
164
black dot spot ⚫
176
moses
182
unturf ninja
193
the real real
198
The Real Weekend
207
[AD] r00t.org
237
you just lost.
244
raw footage 🔐
247
flubber deskblob
293
just a basic b
299
Enneagram 1-9
332
good, chaos, bad
333
knife & hand axe
335
unturf trash can
338
fall out boys
344
The Copy Ninja
412
bun dem bridges
416
i like turtles
417
Fight Club
418
russell@unturf.
419
max & ruby
420
the architect
422
love pink
423
red paper 🔴
424
flcl vespa
425
Fire fox 42 🦊
426
red wave 🔴🌊
427
blood moon 2022
428
people suck
431
tom guess
432
😍❤️ jenn amor <3
434
toby dog
435
etsystrike.org
437
Mound People
440
amor peace <3
441
makeshift desks
442
LAT LONG
446
war room 🇺🇦
447
social media m$
448
warm water 💧
449
Monkey Trap 🐒 🕳
450
the dilemma
451
Thank You.
461
sand worms dune
476
rootser ape doge
482
her legacy 😔 🐼
491
guns ●○ ⚪️⚫️
492
bomb
493
sleep g
494
icarus
495
monero
497
upload.
498
me me me satori
499
michael
500
jester
501
bones
502
Nvidia
503
office
504
ticket #2
505
rj45 cat5
506
cat
507
me russell 1pm
508
me thinking
509
it's a trap.
510
sun
511
am root
512
saints
513
wu wei
514
moon
515
white
516
level 36
517
tarballs
518
jimmy
519
black widow
520
circle of wagons
523
anarchy
524
blunderbuss
525
foil weird al
526
jason json
527
moms spaghetti 🍝
528
wall-e timeline
529
kale & canna🚌
530
airship sid
532
iris purple
533
thirsty russell
534
painted t shirt
539
unjust laws
540
Tom Brady
553
arrival
554
droids
555
blackops
556
gluttony
557
lemmings
558
zippo
559
cammy
560
me 2025 👁️
562
Abraham Hicks
563
Cookies 🍪
564
⚪⚫🕳️🌀🦚👁️
565
Cleopatra
566
RedRuby
567
dr. pepper
568
fender
569
parkour
570
feverfew
571
Amnesia Haze
572
Savanna
573
ramps
574
mt
575
f
576
fin
577
ralphie
578
d20
579
un. 🐇 🕳
580
rosie
581
Partnership
594
Chao Te Ching
599
7 YEAR FOOD FOREST - Walk About Tour! unturf permaculture victory perennial garden farm ct zone 6b
603
NATURAL RIGHT TO REPAIR REMIX, Culling Voices, Fear Inoculum, Tool, 2019-08-30, unturf. 2021-12-15
Comments (0)
Leave a Comment