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, 342d ago · Updated 321d, 9h ago · 2 views
Queue
Up Next
▶
/etc/nixos/configuration.nix for a thinkpad t430s
48
scatman
68
David Kun!
69
ELECTRIC HEN HOUSE - Supplemental Heat For The Chicken Coop! Cold Wave Sweeps Eastern States United
85
2%
89
Purple Ennui
98
momento mori
113
red pruner ⭕
123
Freedom to fly.
165
black dot spot ⚫
178
moses
184
unturf ninja
195
the real real
200
The Real Weekend
208
[AD] r00t.org
238
you just lost.
245
raw footage 🔐
248
flubber deskblob
296
just a basic b
334
good, chaos, bad
335
knife & hand axe
337
unturf trash can
340
fall out boys
346
The Copy Ninja
419
bun dem bridges
423
i like turtles
424
Fight Club
425
russell@unturf.
426
max & ruby
427
the architect
429
love pink
430
red paper 🔴
431
flcl vespa
432
Fire fox 42 🦊
433
red wave 🔴🌊
434
blood moon 2022
435
people suck
438
tom guess
439
😍❤️ jenn amor <3
441
toby dog
442
etsystrike.org
444
Mound People
447
amor peace <3
448
makeshift desks
449
LAT LONG
453
war room 🇺🇦
454
social media m$
455
warm water 💧
456
Monkey Trap 🐒 🕳
457
the dilemma
458
Thank You.
471
sand worms dune
487
rootser ape doge
493
her legacy 😔 🐼
500
guns ●○ ⚪️⚫️
501
gluttony
502
bomb
503
sleep g
504
icarus
505
monero
507
upload.
508
me me me satori
509
michael
510
jester
511
bones
512
Nvidia
513
office
514
ticket #2
515
rj45 cat5
516
cat
517
me russell 1pm
518
me thinking
519
it's a trap.
520
sun
521
am root
522
saints
523
wu wei
524
moon
525
white
526
level 36
527
tarballs
528
jimmy
529
black widow
530
circle of wagons
533
anarchy
534
blunderbuss
535
foil weird al
536
jason json
537
moms spaghetti 🍝
538
wall-e timeline
539
kale & canna🚌
540
airship sid
542
iris purple
543
thirsty russell
544
painted t shirt
549
unjust laws
550
Tom Brady
563
arrival
564
droids
565
blackops
566
lemmings
567
zippo
568
cammy
569
me 2025 👁️
570
Cookies 🍪
571
⚪⚫🕳️🌀🦚👁️
572
Cleopatra
573
RedRuby
574
dr. pepper
575
fender
576
parkour
577
feverfew
578
Amnesia Haze
579
Savanna
580
ramps
581
mt
582
f
583
fin
584
ralphie
585
d20
586
un. 🐇 🕳
587
rosie
588
Partnership
589
un.
593
potato
600
Geo Dude
604
Chao Te Ching
611
7 YEAR FOOD FOREST - Walk About Tour! unturf permaculture victory perennial garden farm ct zone 6b
615
NATURAL RIGHT TO REPAIR REMIX, Culling Voices, Fear Inoculum, Tool, 2019-08-30, unturf. 2021-12-15
Comments (0)
Leave a Comment