add display

This commit is contained in:
Markus Schmidl 2022-09-16 19:30:47 +02:00
parent a2e7414985
commit e771588538
4 changed files with 97 additions and 0 deletions

View File

@ -196,11 +196,23 @@
}
] ++ data-hoarder-modules;
};
display = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
dump-dvb.nixosModules.default
dump-dvb.nixosModules.disk-module
./hosts/display
./modules/base.nix
./hardware/dell-wyse-3040.nix
];
};
};
hydraJobs = (lib.mapAttrs (name: value: { ${value.config.system.build.toplevel.system} = value.config.system.build.toplevel; }) self.nixosConfigurations) // {
traffic-stop-box-3-disk."aarch64-linux" = self.nixosConfigurations.traffic-stop-box-3.config.system.build.sdImage;
mobile-box-disk."x86_64-linux" = self.nixosConfigurations.mobile-box.config.system.build.diskImage;
display-disk."x86_64-linux" = self.nixosConfigurations.display.config.system.build.diskImage;
sops-binaries."x86_64-linux" = sops-nix.packages."x86_64-linux".sops-install-secrets;
};
};

View File

@ -0,0 +1,67 @@
{ pkgs, config, ... }:
{
boot.tmpOnTmpfs = true;
networking.hostName = "display";
# Set your time zone.
time.timeZone = "Europe/Berlin";
documentation.enable = false;
documentation.nixos.enable = false;
nix = {
buildCores = 1;
gc = {
automatic = true;
dates = "daily";
};
};
services.journald.extraConfig = ''
SystemMaxUse=5M
'';
environment.systemPackages = with pkgs; [ surf unclutter ];
environment.etc."i3.conf".text = ''
exec surf "https://map.dvb.solutions"
exec watch i3-msg "fullscreen enable global"
exec unclutter
exec xset -dpms
exec setterm -blank 0 -powerdown 0
exec xset s off
'';
services.xserver = {
enable = true;
displayManager = {
gdm.enable = true;
gdm.wayland = false;
autoLogin = {
enable = true;
user = "display";
};
};
desktopManager.xterm.enable = false;
windowManager.i3 = {
enable = true;
configFile = "/etc/i3.conf";
};
};
users.users."display" = {
uid = 1000;
isNormalUser = true;
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.05"; # Did you read the comment?
}

View File

@ -0,0 +1,6 @@
{
imports = [
./configuration.nix
./hardware-configuration.nix
];
}

View File

@ -0,0 +1,12 @@
# 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.
{ modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
}