diff --git a/flake.lock b/flake.lock index 168dde38..860ab46f 100644 --- a/flake.lock +++ b/flake.lock @@ -8,11 +8,11 @@ "rust-analyzer-src": "rust-analyzer-src" }, "locked": { - "lastModified": 1659248763, - "narHash": "sha256-YCaOwmtgpnEJGmZNHwnQArCeB3arQf1LPr/OSZVmHZ8=", + "lastModified": 1659693623, + "narHash": "sha256-v2GyTrEVXK5mHZl5CrZ/B4ozI3K1pb4PvdccCSdSpuI=", "owner": "nix-community", "repo": "fenix", - "rev": "e4787a9b299117979bd04d396466c9c7cb4ac568", + "rev": "282c9f7ae5ed3078424dc6ba85422a533b5ca7aa", "type": "github" }, "original": { @@ -74,11 +74,11 @@ ] }, "locked": { - "lastModified": 1657748824, - "narHash": "sha256-uB62iO50twRcswqhode7HIUwtYqlYU3fG6y6LtZo2VM=", + "lastModified": 1659690920, + "narHash": "sha256-W0IHBfdyMZW/4b16+Ftm3WcEQqqvrZE2ktLiPJdWaxI=", "owner": "nixos", "repo": "hydra", - "rev": "e2756042b8e4397af642ee50eff50cf581df7f7b", + "rev": "c511315b6b399948d363ef390a555103ef8e2dad", "type": "github" }, "original": { @@ -172,11 +172,11 @@ ] }, "locked": { - "lastModified": 1655042882, - "narHash": "sha256-9BX8Fuez5YJlN7cdPO63InoyBy7dm3VlJkkmTt6fS1A=", + "lastModified": 1659610603, + "narHash": "sha256-LYgASYSPYo7O71WfeUOaEUzYfzuXm8c8eavJcel+pfI=", "owner": "nix-community", "repo": "naersk", - "rev": "cddffb5aa211f50c4b8750adbec0bbbdfb26bb9f", + "rev": "c6a45e4277fa58abd524681466d3450f896dc094", "type": "github" }, "original": { @@ -261,11 +261,11 @@ }, "nixos": { "locked": { - "lastModified": 1659153955, - "narHash": "sha256-BAdA1WBHi/TBSaeyDjsVIqe62r0w/5ZvsaglXivOLLM=", + "lastModified": 1659526864, + "narHash": "sha256-XFzXrc1+6DZb9hBgHfEzfwylPUSqVFJbQPs8eOgYufU=", "owner": "nixos", "repo": "nixpkgs", - "rev": "1e5d0fbd82f0f1370c70026d255deda2d9c8a585", + "rev": "478f3cbc8448b5852539d785fbfe9a53304133be", "type": "github" }, "original": { @@ -277,11 +277,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1659256765, - "narHash": "sha256-RE4l6J+ApJ1vd4QFDhbEasv0M/deTxSK5IsIBYXuHmE=", + "lastModified": 1659356074, + "narHash": "sha256-UwV6hZZEtchvtiTCCD/ODEv1226eam8kEgEyQb7xB0E=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "727a099e871ff10ae09a1ebd056a5ba4b9dbe50f", + "rev": "ea3efc80f8ab83cb73aec39f4e76fe87afb15a08", "type": "github" }, "original": { @@ -292,11 +292,11 @@ }, "nixos-unstable": { "locked": { - "lastModified": 1659219666, - "narHash": "sha256-pzYr5fokQPHv7CmUXioOhhzDy/XyWOIXP4LZvv/T7Mk=", + "lastModified": 1659522808, + "narHash": "sha256-HBcM19nGhI3IWwPNVlYb0MZ8VW6iKp4JbAVkeIHVykc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "7b9be38c7250b22d829ab6effdee90d5e40c6e5c", + "rev": "168d1c578909dc143ba52dbed661c36e76b12b36", "type": "github" }, "original": { @@ -308,11 +308,11 @@ }, "nixos-unstable-sandro": { "locked": { - "lastModified": 1659300033, - "narHash": "sha256-qylSfxjw+dUsEZ8PJGRQWbZBGV9A7y9zNQ4hkSI6AUk=", + "lastModified": 1659702219, + "narHash": "sha256-phTzSHCUwRH0Y2EFldPjQwncLk5MJ3bPqBJmqQ0CA+M=", "owner": "SuperSandro2000", "repo": "nixpkgs", - "rev": "35d279934b65cf3b80a16e66ddf7a7825a5ce695", + "rev": "0c0b82d56bc9ca870ba075547ccd81578d4aeab6", "type": "github" }, "original": { @@ -502,11 +502,11 @@ "rust-analyzer-src": { "flake": false, "locked": { - "lastModified": 1659167628, - "narHash": "sha256-hl3zom2TrPnwadl0bdoTxNXcSSW8OTx/iASF8VsrRlc=", + "lastModified": 1659617824, + "narHash": "sha256-DR7WwKhAtRJ0B7Pj/gZ2cjTfBYzVmVP8JcNvlSlN5u4=", "owner": "rust-lang", "repo": "rust-analyzer", - "rev": "e0ff4befdacf187621bebba84f824d2e41ab0607", + "rev": "0fe3bcfd3524a023a11c95d0615178e897f72200", "type": "github" }, "original": { @@ -562,11 +562,11 @@ ] }, "locked": { - "lastModified": 1659240333, - "narHash": "sha256-9dth3+9VemY34Eod0vBkx/prMcCQfeE4RlJVp9ahQao=", + "lastModified": 1659441021, + "narHash": "sha256-J2C83bo1mHcdfzxk8S3rE8iqNZM2AlPUGqftdhbm5Zk=", "owner": "Mic92", "repo": "sops-nix", - "rev": "22b08d5c234a5c1b6e403488276b1c3e9c6ae9d3", + "rev": "34ee98b8c2ca153a23a63c1841a0a067313856d5", "type": "github" }, "original": { @@ -698,11 +698,11 @@ ] }, "locked": { - "lastModified": 1658859016, - "narHash": "sha256-YDJF11WRZeeyWba5AQ+/d+jxplYtwlz0NSz33kIplXI=", + "lastModified": 1659718702, + "narHash": "sha256-2PSoPY14ABsEjwi6JimnQVbBWmj+56IVs5nrkfn59/4=", "ref": "refs/heads/master", - "rev": "15ab6d744edbe5ba80e0c75755d04f36c62d50e1", - "revCount": 1502, + "rev": "39897ded63f5e55b3e603b2dc8ea0a2e58cd5e06", + "revCount": 1504, "type": "git", "url": "https://gitea.c3d2.de/zentralwerk/network.git" }, diff --git a/flake.nix b/flake.nix index 44af8eca..3a80a52d 100644 --- a/flake.nix +++ b/flake.nix @@ -448,6 +448,14 @@ ]; }; + factorio = nixosSystem' { + modules = [ + self.nixosModules.microvm + ./hosts/factorio + ]; + nixpkgs = inputs.nixos-unstable-sandro; + }; + freifunk = nixosSystem' { modules = [ self.nixosModules.microvm diff --git a/hosts/factorio/default.nix b/hosts/factorio/default.nix new file mode 100644 index 00000000..4e781cbe --- /dev/null +++ b/hosts/factorio/default.nix @@ -0,0 +1,34 @@ +{ zentralwerk, config, lib, pkgs, ... }: + +{ + c3d2 = { + deployment = { + server = "server10"; + mounts = [ "etc" "home" "var"]; + }; + }; + + networking = { + hostName = "factorio"; + }; + + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "factorio-headless" + ]; + + services = { + factorio = { + enable = true; + admins = [ "SuperSandro2000" ]; + autosave-interval = 10; + description = "Keep your Kolle Mate ready!"; + game-name = "C3D2 Server"; + game-password = "k-otk-ot"; + lan = true; + nonBlockingSaving = true; + openFirewall = true; + }; + }; + + system.stateVersion = "22.05"; +}