1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/systems/zaatar/configuration.nix

85 lines
2.1 KiB
Nix
Raw Normal View History

2020-10-28 20:29:41 +01:00
{ config, pkgs, lib, ... }:
2019-07-03 22:12:59 +02:00
let
2020-10-28 20:29:41 +01:00
kmeinKeys = lib.strings.splitString "\n" (lib.strings.fileContents (pkgs.fetchurl {
url = "https://github.com/kmein.keys";
sha256 = "1b9gbpgihg7zc89ivsz0gs3najp0zg53rcknvzvkm0851fdzkryx";
}));
2019-07-03 22:12:59 +02:00
in {
2020-10-28 20:29:41 +01:00
imports = [
./hardware-configuration.nix
<niveum/configs/wifi.nix>
<niveum/configs/keyboard.nix>
<niveum/modules/retiolum.nix>
<niveum/modules/constants.nix>
<niveum/configs/spacetime.nix>
<niveum/configs/mpd.nix>
<niveum/configs/sshd.nix>
<niveum/configs/spotifyd.nix>
2020-10-28 20:29:41 +01:00
{
sound.enable = true;
}
{
services.illum.enable = true;
}
{
users.extraUsers.kiosk = {
isNormalUser = true;
password = "";
openssh.authorizedKeys.keys = kmeinKeys;
2020-10-28 20:29:41 +01:00
};
services.cage = {
2020-10-28 20:29:41 +01:00
enable = true;
user = config.users.extraUsers.kiosk.name;
program =
let startUrl = "https://youtube.com";
in pkgs.writers.writeDash "kiosk-browser" ''
2020-10-29 07:54:22 +01:00
export XKB_DEFAULT_LAYOUT=de
export XKB_DEFAULT_OPTIONS=compose:caps
while true; do
${pkgs.chromium}/bin/chromium \
--no-first-run --no-message-box --noerrdialogs \
--default-browser --no-default-browser-check \
--start-maximized --kiosk ${startUrl}
sleep 0.5
done
'';
2020-10-28 20:29:41 +01:00
};
2020-10-29 07:54:22 +01:00
programs.chromium = {
enable = true;
extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # uBlock Origin
];
};
2020-10-28 20:29:41 +01:00
}
];
nix.nixPath = [ "/var/src" ];
services.logind = {
lidSwitch = "ignore";
lidSwitchDocked = "ignore";
lidSwitchExternalPower = "ignore";
};
2020-10-28 20:29:41 +01:00
services.illum.enable = true;
environment.systemPackages = with pkgs; [ git vim htop ];
boot.loader.systemd-boot = {
enable = true;
configurationLimit = 5;
};
2019-01-30 17:08:07 +01:00
boot.loader.efi.canTouchEfiVariables = true;
2020-10-28 21:56:14 +01:00
networking.hostName = "zaatar";
2019-01-30 17:08:07 +01:00
2020-01-24 08:57:39 +01:00
networking.retiolum = {
ipv4 = "10.243.2.2";
ipv6 = "42:0:3c46:4007:5bce:f1bc:606b:2b18";
};
2020-10-28 20:29:41 +01:00
system.stateVersion = "20.09";
2019-01-30 17:08:07 +01:00
}