Skip to content

Instantly share code, notes, and snippets.

View oscarcarlsson's full-sized avatar

Oscar Carlsson oscarcarlsson

View GitHub Profile
# cat /etc/nixos/virtualisation.nix
{ config, pkgs, ... }:
{
virtualisation.oci-containers = {
backend = "docker";
containers = {
jellyfin = {
image = "jellyfin/jellyfin:latest";
ports = [
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 361, in run
await self.future
File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 399, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.8/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 977, in nf
Compiling: keyboards/ergo60/keymaps/monotux/keymap.c keyboards/ergo60/keymaps/monotux/keymap.c:46:0: error: "UNICODE_KEY_LNX" redefined [-Werror]
#define UNICODE_KEY_LNX LCTL(LSFT(KC_E))
In file included from quantum/process_keycode/process_unicodemap.h:19:0,
from quantum/quantum.h:103,
from keyboards/ergo60/ergo60.h:4,
from keyboards/ergo60/keymaps/monotux/keymap.c:15:
quantum/process_keycode/process_unicode_common.h:30:0: note: this is the location of the previous definition
#define UNICODE_KEY_LNX LCTL(LSFT(KC_U))
i 2019-08-09 08:00:00 Baz:Xyz
o 2019-08-09 16:00:00
i 2019-08-09 08:00:00 Foo:Bar
o 2019-08-09 16:00:00
i 2019-08-12 08:30:00 Baz:Fez
o 2019-08-12 12:30:00
services.home-assistant = {
enable = true;
autoExtraComponents = false;
package = unstable.home-assistant.override {
extraPackages = ps: with ps; [
(callPackage ./pkgs/hassio/rfxtrx.nix {})
(callPackage ./pkgs/hassio/smhi.nix {})
];
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
}:
buildPythonPackage rec {
pname = "smhi-pkg";
version = "1.0.10";
{ lib
, buildPythonPackage
, fetchPypi
, pyserial
}:
buildPythonPackage rec {
pname = "pyRFXtrx";
version = "0.23.0";

Keybase proof

I hereby claim:

  • I am oscarcarlsson on github.
  • I am monotux (https://keybase.io/monotux) on keybase.
  • I have a public key ASBQPFBJXIgTJB6kJM_2VA1EoXv8LqgVR5POuBzHVqLaYgo

To claim this, I am signing this object:

@oscarcarlsson
oscarcarlsson / configuration.nix
Created April 9, 2019 13:08 — forked from LnL7/configuration.nix
NixOS configuration overlays
{ config, pkgs, ... }:
let
# Import unstable channel.
# sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
# sudo nix-channel --update nixpkgs-unstable
unstable = import <nixpkgs-unstable> {};
in
{
-- Autostart applications *once* at startup
autorun = true
autorun_apps =
{
-- cmd is required, the rest is optional.
{ cmd="nm-applet", },
-- Args are supported as well.
{ cmd="xrdb", args="~/.Xdefaults"},