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

57 lines
1.6 KiB
Nix
Raw Normal View History

2020-11-05 21:28:23 +01:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
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>
<niveum/configs/battery.nix>
<niveum/configs/wpa_supplicant.nix>
2020-11-05 21:28:23 +01:00
{
programs.steam.enable = true;
nixpkgs.config.steam.java = true;
2020-11-05 21:28:23 +01: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";
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;
};
networking.wireless.interfaces = [ "wlp3s0" ];
2020-11-05 21:28:23 +01:00
environment.systemPackages = with pkgs; [
git vim
];
networking.retiolum = retiolumAddresses.manakish;
2020-11-05 21:28:23 +01:00
networking.hostName = "manakish";
system.stateVersion = "20.09"; # Did you read the comment?
}