2020-11-05 21:28:23 +01:00
|
|
|
{ config, pkgs, ... }:
|
2021-10-12 11:51:55 +02:00
|
|
|
let
|
|
|
|
|
inherit (import <niveum/lib>) retiolumAddresses;
|
|
|
|
|
in
|
2020-11-05 21:28:23 +01:00
|
|
|
{
|
|
|
|
|
imports = [ # Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
<niveum/configs/default.nix>
|
2021-02-28 08:01:51 +01:00
|
|
|
<niveum/configs/battery.nix>
|
2021-09-17 11:12:23 +02:00
|
|
|
<niveum/configs/wpa_supplicant.nix>
|
2020-11-05 21:28:23 +01:00
|
|
|
{
|
2021-02-28 08:01:51 +01:00
|
|
|
programs.steam.enable = true;
|
|
|
|
|
nixpkgs.config.steam.java = true;
|
2020-11-05 21:28:23 +01:00
|
|
|
}
|
2021-04-17 09:27:49 +02:00
|
|
|
{
|
|
|
|
|
services.xserver.displayManager.sessionCommands =
|
|
|
|
|
let
|
|
|
|
|
intern = "LVDS-1";
|
|
|
|
|
extern = "HDMI-1";
|
|
|
|
|
pulseaudioCard = "alsa_card.pci-0000_00_1b.0";
|
|
|
|
|
pulseaudioProfile = "output:hdmi-stereo+input:analog-stereo";
|
|
|
|
|
in toString (pkgs.writers.writeDash "hdmi-on" ''
|
|
|
|
|
${pkgs.xorg.xrandr}/bin/xrandr --output ${intern} --primary --auto --output ${extern} --above ${intern} --auto
|
|
|
|
|
${pkgs.pulseaudio}/bin/pactl set-card-profile ${pulseaudioCard} ${pulseaudioProfile}
|
|
|
|
|
'');
|
|
|
|
|
}
|
2020-11-05 21:28:23 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
niveum = {
|
|
|
|
|
batteryName = "BAT0";
|
|
|
|
|
wirelessInterface = "wlp3s0";
|
2021-04-17 09:27:49 +02:00
|
|
|
promptColours.success = "green";
|
2020-11-05 21:28:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
|
networking.interfaces = {
|
|
|
|
|
enp0s25.useDHCP = true;
|
|
|
|
|
wlp3s0.useDHCP = true;
|
|
|
|
|
wwp0s20u4i6.useDHCP = true;
|
|
|
|
|
};
|
2021-06-16 21:59:33 +02:00
|
|
|
networking.wireless.interfaces = [ "wlp3s0" ];
|
2020-11-05 21:28:23 +01:00
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
git vim
|
|
|
|
|
];
|
|
|
|
|
|
2021-10-12 11:51:55 +02:00
|
|
|
networking.retiolum = retiolumAddresses.manakish;
|
2020-11-05 21:28:23 +01:00
|
|
|
|
|
|
|
|
networking.hostName = "manakish";
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "20.09"; # Did you read the comment?
|
|
|
|
|
}
|