From ec83ebd15f8bb222d32e8280067a16a1d1bd8683 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 17 Apr 2023 11:53:41 +0300 Subject: [PATCH] Started euoporie and updated visonum devshell to use latest purs --- devshells/visonum.nix | 3 ++- hosts/nixos/euoprie/configuration.nix | 18 ++++++++++++++++++ hosts/nixos/euoprie/default.nix | 7 +++++++ hosts/nixos/tethys/default.nix | 7 +++++++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 hosts/nixos/euoprie/configuration.nix create mode 100644 hosts/nixos/euoprie/default.nix diff --git a/devshells/visonum.nix b/devshells/visonum.nix index 004d0fc..b8a6c88 100644 --- a/devshells/visonum.nix +++ b/devshells/visonum.nix @@ -1,5 +1,6 @@ # Shell containing the tools I most commonly use for work { pkgs, inputs }: +let unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}; in pkgs.mkShell { - nativeBuildInputs = with pkgs; [ purescript spago typescript nodejs ]; + nativeBuildInputs = with pkgs; [ unstable.purescript unstable.spago typescript nodejs ]; } diff --git a/hosts/nixos/euoprie/configuration.nix b/hosts/nixos/euoprie/configuration.nix new file mode 100644 index 0000000..92a9b08 --- /dev/null +++ b/hosts/nixos/euoprie/configuration.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: { + # Enable the firewall. + networking.firewall.enable = true; + + # Set the name of this machine! + networking.hostName = "euporie"; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + system.stateVersion = "22.11"; + + + services.sourcehut = { + # enable = true; + # meta.enable = true; + # paste.enable = true; + # hub.enable = true; + }; +} diff --git a/hosts/nixos/euoprie/default.nix b/hosts/nixos/euoprie/default.nix new file mode 100644 index 0000000..db4e2e5 --- /dev/null +++ b/hosts/nixos/euoprie/default.nix @@ -0,0 +1,7 @@ +{ + privateNetwork = true; + hostAddress = "10.250.0.1"; + localAddress = "10.250.0.2"; + + config = import ./configuration.nix; +} diff --git a/hosts/nixos/tethys/default.nix b/hosts/nixos/tethys/default.nix index c447a31..6870a8d 100644 --- a/hosts/nixos/tethys/default.nix +++ b/hosts/nixos/tethys/default.nix @@ -23,4 +23,11 @@ # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "22.11"; + + # Temp stuff: + containers.euporie = import ../euoprie; + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + }; }