PASTEBIN
New
(current)
Expires: Never
1 day
1 hour
1 month
1 week
1 year
10 minutes
5 minutes
Never
Burn: No
Yes
No
Markup
CSS
C-like
JavaScript
──────────
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotkey
AutoIt
Bash
BASIC
Batch
Bison
Brainfuck
Bro
C
C#
C++
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP STS
IchigoJam
Icon
Inform 7
Ini
Io
J
Java
Jolie
JSON
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Lua
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
Send
[root@testnix:~]# cat /etc/nixos/configuration.nix # 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, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.supportedFilesystems = [ "zfs" ]; boot.zfs.forceImportRoot = false; #boot.zfs.extraPools = [ "zfstest" ]; services.zfs.autoScrub.enable = true; time.timeZone = "America/New_York"; users.users.alex = { isNormalUser = true; extraGroups = [ "wheel" "docker" ]; }; users.users.alex.openssh.authorizedKeys.keyFiles = [ /etc/nixos/ssh/authorized_keys ]; users.users.root.openssh.authorizedKeys.keyFiles = [ /etc/nixos/ssh/authorized_keys ]; environment.systemPackages = with pkgs; [ docker-compose htop hddtemp intel-gpu-tools iotop lm_sensors mergerfs mc ncdu nmap nvme-cli sanoid snapraid tailscale tdns-cli tmux tree vim wget ]; networking = { firewall.enable = false; hostName = "testnix"; hostId = "e5f2dc02"; interfaces = { enp1s0 = { useDHCP = false; ipv4.addresses = [ { address = "10.42.0.50"; prefixLength = 20; } ]; }; }; defaultGateway = "10.42.0.254"; nameservers = [ "10.42.0.253" ]; }; services.openssh = { enable = true; settings.PasswordAuthentication = false; settings.PermitRootLogin = "yes"; }; services.tailscale.enable = true; virtualisation = { docker = { enable = true; autoPrune = { enable = true; dates = "weekly"; }; }; }; services = { xserver = { enable = true; displayManager = { lightdm.enable = true; defaultSession = "xfce"; #defaultSession = "xfce+bspwm"; }; desktopManager.xfce.enable = true; windowManager.bspwm.enable = true; }; }; nix = { settings = { experimental-features = [ "nix-command" "flakes" ]; warn-dirty = false; }; }; services.samba-wsdd.enable = true; # make shares visible for windows 10 clients services.samba = { enable = true; securityType = "user"; extraConfig = '' workgroup = KTZ server string = testnix netbios name = testnix security = user guest ok = yes guest account = nobody map to guest = bad user load printers = no ''; shares = { zfstest = { path = "/mnt/zfstest"; browseable = "yes"; "read only" = "no"; "guest ok" = "yes"; "create mask" = "0644"; "directory mask" = "0755"; "force user" = "alex"; "force group" = "users"; }; }; }; system.copySystemConfiguration = true; system.stateVersion = "23.05"; }