Merge remote-tracking branch 'tv/master'

This commit is contained in:
makefu 2021-02-15 19:09:42 +01:00
commit da0ab68232
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225
10 changed files with 96 additions and 18 deletions

View file

@ -10,6 +10,21 @@ self: super: {
};
});
exim = super.exim.overrideAttrs (old: rec {
version = warnOldVersion old.version "4.95+fixes";
src = self.fetchgit {
url = "git://git.exim.org/exim.git";
rev = "cdb37db5c0ff060de7edfc94e830cab6b7f7c084";
sha256 = "1xaxs1p8yy5f04an5g9mxhj5cvbnzj0xfb50aa1xxkhkqkspzlsg";
postFetch = /* sh */ ''
${self.gnutar}/bin/tar xf ${old.src}
${self.rsync}/bin/rsync -vac "$out"/src/ exim-4.94/src
rm -R "$out"
mv exim-4.94 "$out"
'';
};
});
flameshot = super.flameshot.overrideAttrs (old: rec {
patches = old.patches or [] ++ [
(self.writeText "flameshot-imgur.patch" /* diff */ ''

View file

@ -0,0 +1,46 @@
{ pkgs }:
/* gitignore - Filter for intentionally untracked lines or blocks of code
This is a filter that allows specifying intentionally untracked lines and
blocks of code that Git should ignore.
Example:
int main(void) {
printf("I would never say derp.\n");
//#gitignore-begin
printf("DERP!\n");
//#gitignore-end
printf("DERP!\n"); //#gitignore
return 0;
}
Installation:
Define a filter, e.g. in ~/.config/git/config[1]:
[filter "gitignore"]
clean = gitignore
smudge = cat
Assing that filter to some paths, e.g. in ~/.config/git/attributes[2]:
*.hs filter=gitignore
*.c filter=gitignore
...
[1]: For more information about defining filters see git-config(1).
[2]: For more information about assigning filters see gitattributes(5).
*/
pkgs.execBin "gitignore" {
filename = "${pkgs.gnused}/bin/sed";
argv = [
"gitignore"
/* sed */ ''
/#gitignore-begin/,/#gitignore-end/d
/#gitignore/d
''
];
}

View file

@ -16,4 +16,7 @@
networking.interfaces.wwp0s29u1u4i6.useDHCP = true;
system.stateVersion = "20.03";
tv.hw.screens.primary.width = 1920;
tv.hw.screens.primary.height = 1080;
}

View file

@ -7,10 +7,6 @@ with import <stockholm/lib>;
<stockholm/tv>
<stockholm/tv/2configs/hw/w110er.nix>
<stockholm/tv/2configs/exim-retiolum.nix>
<stockholm/tv/2configs/gitrepos.nix>
<stockholm/tv/2configs/mail-client.nix>
<stockholm/tv/2configs/man.nix>
<stockholm/tv/2configs/nginx/public_html.nix>
<stockholm/tv/2configs/pulse.nix>
<stockholm/tv/2configs/retiolum.nix>
<stockholm/tv/2configs/xserver>
@ -38,14 +34,4 @@ with import <stockholm/lib>;
networking.wireless.enable = true;
services.printing.enable = true;
services.udev.extraRules = ''
SUBSYSTEM=="net", ATTR{address}=="00:90:f5:da:aa:c3", NAME="en0"
SUBSYSTEM=="net", ATTR{address}=="a0:88:b4:1b:ae:6c", NAME="wl0"
# for jack
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
'';
}

View file

@ -44,4 +44,7 @@ with import <stockholm/lib>;
'';
krebs.nixpkgs.allowUnfreePredicate = pkg: packageName pkg == "broadcom-sta";
tv.hw.screens.primary.width = 1366;
tv.hw.screens.primary.height = 768;
}

View file

@ -59,4 +59,7 @@ with import <stockholm/lib>;
services.xserver = {
videoDriver = "intel";
};
tv.hw.screens.primary.width = 1366;
tv.hw.screens.primary.height = 768;
}

View file

@ -1,4 +1,6 @@
{ config, pkgs, ... }:
{ config, pkgs, ... }: let
lib = import <stockholm/lib>;
in
{
imports = [
../smartd.nix
@ -74,4 +76,7 @@
services.xserver = {
videoDriver = "intel";
};
tv.hw.screens.primary.width = lib.mkDefault 1366;
tv.hw.screens.primary.height = lib.mkDefault 768;
}

View file

@ -12,9 +12,9 @@ with import <stockholm/lib>;
"${config.krebs.build.host.name}.hkw"
"${config.krebs.build.host.name}.r"
];
locations."~ ^/~(.+?)(/.*)?\$".extraConfig = ''
alias /home/$1/public_html$2;
'';
locations."~ ^/~([a-z]+)(?:/(.*))?\$" = {
alias = "/srv/$1/public_html/$2";
};
};
};
tv.iptables.input-internet-accept-tcp = singleton "http";

View file

@ -5,6 +5,7 @@
./ejabberd
./focus.nix
./hosts.nix
./hw.nix
./im.nix
./iptables.nix
./slock.nix

16
tv/3modules/hw.nix Normal file
View file

@ -0,0 +1,16 @@
let
lib = import <stockholm/lib>;
local.types.screen = lib.types.submodule {
options.width = lib.mkOption {
type = lib.types.uint;
};
options.height = lib.mkOption {
type = lib.types.uint;
};
};
in {
options.tv.hw.screens = lib.mkOption {
type = lib.types.attrsOf local.types.screen;
default = {};
};
}