From e88fed18f499a3e8ac98c772bbb62f00d1f8d1d7 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 9 Jan 2022 08:09:39 +0100 Subject: use flakes instead of niv & stuff --- hosts/flora/configuration.nix | 4 ---- hosts/flora/hardware-configuration.nix | 4 ++-- hosts/flora/services/blog.nix | 4 ++-- hosts/flora/services/pleroma.nix | 5 ++--- 4 files changed, 6 insertions(+), 11 deletions(-) (limited to 'hosts/flora') diff --git a/hosts/flora/configuration.nix b/hosts/flora/configuration.nix index 5bdc18a..b2699b7 100644 --- a/hosts/flora/configuration.nix +++ b/hosts/flora/configuration.nix @@ -19,10 +19,6 @@ boot.loader.grub.version = 2; boot.loader.grub.devices = [ "/dev/sda" ]; - hexchen.deploy = { - ssh.host = "flora"; - }; - networking = { hostName = "flora"; diff --git a/hosts/flora/hardware-configuration.nix b/hosts/flora/hardware-configuration.nix index faac1af..2ce21f4 100644 --- a/hosts/flora/hardware-configuration.nix +++ b/hosts/flora/hardware-configuration.nix @@ -1,11 +1,11 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, ... }: +{ modulesPath, config, lib, pkgs, inputs, ... }: { imports = - [ + [ "${modulesPath}/profiles/qemu-guest.nix" ]; boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "xhci_pci" "sd_mod" "sr_mod" ]; diff --git a/hosts/flora/services/blog.nix b/hosts/flora/services/blog.nix index 428b3fb..056a63b 100644 --- a/hosts/flora/services/blog.nix +++ b/hosts/flora/services/blog.nix @@ -1,9 +1,9 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: { services.nginx.virtualHosts."stuebinm.eu" = { enableACME = true; forceSSL = true; - locations."/".root = (import /home/stuebinm/Dokumente/blog); + locations."/".root = (import inputs.blog); }; } diff --git a/hosts/flora/services/pleroma.nix b/hosts/flora/services/pleroma.nix index fca9d65..e93e553 100644 --- a/hosts/flora/services/pleroma.nix +++ b/hosts/flora/services/pleroma.nix @@ -1,8 +1,7 @@ -{config, pkgs, ...}: +{config, pkgs, inputs, ...}: let - sources = import ../../../nix/sources.nix; domain = "pleroma.stuebinm.eu"; in { @@ -30,7 +29,7 @@ in enable = true; - package = (import sources.nixpkgs-unstable {}).pleroma; + package = (import inputs.nixpkgs-unstable {}).pleroma; # this is barely necessary at this point — all that's # set in here is the default_signer for joken, and the -- cgit v1.2.3