File tree Expand file tree Collapse file tree 4 files changed +51
-23
lines changed Expand file tree Collapse file tree 4 files changed +51
-23
lines changed Original file line number Diff line number Diff line change 1515 nix-minecraft . url = "github:Infinidoge/nix-minecraft" ;
1616 } ;
1717
18- outputs = inputs @{ self , nixpkgs , ... } :
18+ outputs =
19+ inputs @{ self , nixpkgs , ... } :
1920 let
2021 system = "x86_64-linux" ;
2122 pkgs = nixpkgs . legacyPackages . ${ system } ;
22- in {
23+ in
24+ {
2325 # The itx server hosting most of my homelab.
2426 nixosConfigurations . itxserver = nixpkgs . lib . nixosSystem {
2527 specialArgs = { inherit inputs ; } ;
Original file line number Diff line number Diff line change 77# Defines options that are common across all host systems, be that servers or
88# clients.
99
10- { pkgs , ... } : {
10+ { pkgs , ... } :
11+ {
1112 # This is the default locale for any machine
1213 i18n . defaultLocale = "en_US.UTF-8" ;
1314
1415 # Common nix settings that apply to all machines
1516 nix = {
1617 settings = {
17- experimental-features = [ "nix-command" "flakes" ] ;
18+ experimental-features = [
19+ "nix-command"
20+ "flakes"
21+ ] ;
1822 auto-optimise-store = true ;
1923 } ;
2024 gc = {
Original file line number Diff line number Diff line change 66# Defines the configuration for the central server ''alfa''. This server hosts
77# all the containerized services and holds all the data.
88
9- { config , lib , pkgs , ... } @args :
10- let inherit ( args ) inputs ;
11- in {
9+ {
10+ config ,
11+ lib ,
12+ pkgs ,
13+ ...
14+ } @args :
15+ let
16+ inherit ( args ) inputs ;
17+ in
18+ {
1219 imports = [
1320 # The hardware-dependent options:
1421 ./hardware.nix
4956 zfsSupport = true ;
5057 efiSupport = true ;
5158 efiInstallAsRemovable = true ;
52- mirroredBoots = [ {
53- devices = [ "nodev" ] ;
54- path = "/boot" ;
55- } ] ;
59+ mirroredBoots = [
60+ {
61+ devices = [ "nodev" ] ;
62+ path = "/boot" ;
63+ }
64+ ] ;
5665 } ;
5766 zfs . extraPools = [ "zpool" ] ;
5867 } ;
6675 } ;
6776 useDHCP = false ;
6877 interfaces = {
69- eno1 . ipv4 . addresses = [ {
70- address = "10.0.0.10" ;
71- prefixLength = 24 ;
72- } ] ;
78+ eno1 . ipv4 . addresses = [
79+ {
80+ address = "10.0.0.10" ;
81+ prefixLength = 24 ;
82+ }
83+ ] ;
84+ } ;
85+ defaultGateway = {
86+ interface = "eno1" ;
7387 } ;
74- defaultGateway = { interface = "eno1" ; } ;
75- nameservers = [ "1.1.1.1" "1.0.0.1" "100.100.100.100" ] ;
88+ nameservers = [
89+ "1.1.1.1"
90+ "1.0.0.1"
91+ "100.100.100.100"
92+ ] ;
7693 firewall = {
7794 allowedTCPPorts = [
7895 8123 # Home assistant web GUI
118135 AllowUsers = [ "lukas" ] ;
119136 } ;
120137 } ;
121- fail2ban = { enable = true ; } ;
138+ fail2ban = {
139+ enable = true ;
140+ } ;
122141 envfs . enable = true ;
123142 tailscale . enable = true ;
124143 syncthing = {
137156 } ;
138157 devices = {
139158 "MacBook-Pro" = {
140- id =
141- "GZAKPGB-BBVIY5T-2D3EY22-YYMGT5L-R3MNHGX-GYWNRWR-TG4BUMW-BQMBBAU" ;
159+ id = "GZAKPGB-BBVIY5T-2D3EY22-YYMGT5L-R3MNHGX-GYWNRWR-TG4BUMW-BQMBBAU" ;
142160 } ;
143161 } ;
144162 folders = {
Original file line number Diff line number Diff line change 66# ──────────────────────────────────────────────────────────────────────────────
77# Deployment site theta. This nix expression sets all site-related options.
88
9- { ... } : {
9+ { ... } :
10+ {
1011 time . timeZone = "Europe/Berlin" ;
1112
12- networking = { defaultGateway = { address = "10.0.0.1" ; } ; } ;
13+ networking = {
14+ defaultGateway = {
15+ address = "10.0.0.1" ;
16+ } ;
17+ } ;
1318}
14-
You can’t perform that action at this time.
0 commit comments