mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(lib): add localAddresses
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
{ pkgs, lib, config, options, ... }:
|
||||
let inherit (lib.strings) makeBinPath;
|
||||
let
|
||||
inherit (lib.strings) makeBinPath;
|
||||
inherit (import <niveum/lib>) localAddresses;
|
||||
in {
|
||||
imports = [
|
||||
<niveum/modules/constants.nix>
|
||||
@@ -222,11 +224,6 @@ in {
|
||||
|
||||
environment.systemPackages = [ pkgs.wpa_supplicant_gui ];
|
||||
}
|
||||
{
|
||||
networking.hosts = {
|
||||
"192.168.178.1" = [ "fritz.box" ];
|
||||
};
|
||||
}
|
||||
{ i18n.defaultLocale = "en_GB.UTF-8"; }
|
||||
{ services.illum.enable = true; }
|
||||
{
|
||||
@@ -266,6 +263,12 @@ in {
|
||||
helpLine = lib.mkForce "";
|
||||
};
|
||||
}
|
||||
{
|
||||
networking.hosts = lib.mapAttrs' (name: address: {
|
||||
name = address;
|
||||
value = [ "${name}.local" ];
|
||||
}) localAddresses;
|
||||
}
|
||||
./alacritty.nix
|
||||
./bash.nix
|
||||
./bluetooth.nix
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
let hp-driver = pkgs.hplipWithPlugin;
|
||||
let
|
||||
inherit (import <niveum/lib>) localAddresses;
|
||||
hp-driver = pkgs.hplipWithPlugin;
|
||||
in {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
@@ -16,7 +18,7 @@ in {
|
||||
hardware.printers.ensurePrinters = [{
|
||||
name = "OfficeJet";
|
||||
location = "Zimmer";
|
||||
deviceUri = "https://192.168.178.27";
|
||||
deviceUri = "https://${localAddresses.officejet}";
|
||||
model = "drv:///hp/hpcups.drv/hp-officejet_4650_series.ppd";
|
||||
ppdOptions = {
|
||||
Duplex = "DuplexNoTumble"; # DuplexNoTumble DuplexTumble None
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
{ pkgs, lib, ... }: {
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
inherit (import <niveum/lib>) localAddresses;
|
||||
living-room-id = 131086;
|
||||
in
|
||||
{
|
||||
imports = [ <niveum/modules/traadfri.nix> ];
|
||||
|
||||
niveum.traadfri = {
|
||||
enable = true;
|
||||
user = "kmein";
|
||||
host = "192.168.178.28";
|
||||
host = localAddresses.tradfri;
|
||||
key = lib.strings.fileContents <secrets/traadfri.key>;
|
||||
rooms = {
|
||||
corridor = 131080;
|
||||
|
||||
Reference in New Issue
Block a user