diff options
| author | Max Audron <audron@cocaine.farm> | 2024-02-04 17:12:13 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2024-02-04 17:12:13 +0100 |
| commit | 0698120b11595f70972c30891fd6f0bd95d52aad (patch) | |
| tree | 0c435ca7288edb9b1f415cf158b2a35845bfcbd3 /flake.nix | |
| parent | update ettves & phaenn to nixos 23.11 (diff) | |
add factorio to ettves
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -1,6 +1,7 @@ { inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; nixinate.url = "github:maxaudron/nixinate"; @@ -10,7 +11,7 @@ }; }; - outputs = inputs@{ self, nixpkgs, flake-parts, nixinate, ... }: + outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, flake-parts, nixinate, ... }: flake-parts.lib.mkFlake { inherit inputs; } { imports = [ nixinate.flakeModule ./lib ]; flake = @@ -19,11 +20,28 @@ specialArgs = inputs // { nodes = self.nixosConfigurations; }; + + overlay-unstable = final: prev: { + unstable = import nixpkgs-unstable { + system = prev.system; + config.allowUnfree = true; + }; + }; + + overlays = { config, pkgs, ... }: { + nixpkgs.overlays = [ overlay-unstable ]; + }; + mkSystem = modules: nixpkgs.lib.nixosSystem { inherit specialArgs system; modules = modules ++ (with self.nixosModules; [ nixinate.nixosModules.default - common users wireguard crypto + overlays + + common + users + wireguard + crypto ]); }; in @@ -32,7 +50,7 @@ nixosConfigurations = with self.nixosModules; { # vultr-image = mkSystem [ common users image vultr ]; - ettves = mkSystem [ (import ./machines/ettves) kubernetes zfs teamspeak postgresql quassel powerdns acme authentik hydra homeassistant palworld ]; + ettves = mkSystem [ (import ./machines/ettves) kubernetes zfs teamspeak postgresql quassel powerdns acme authentik hydra homeassistant palworld games ]; phaenn = mkSystem [ (import ./machines/phaenn) kubernetes zfs acme tlmp ]; fra01 = mkSystem [ (import ./machines/fra01) vultr bgp powerdns acme garage ]; nyc01 = mkSystem [ (import ./machines/nyc01) vultr bgp powerdns acme garage ]; |
