2020-02-24 03:16:25 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
../../configs/system.nix
|
2020-07-06 16:03:10 +02:00
|
|
|
../../configs/network.nix
|
2020-02-24 03:16:25 +01:00
|
|
|
../../configs/user.nix
|
2020-03-16 15:01:59 +01:00
|
|
|
../../configs/dev.nix
|
2020-03-04 18:25:25 +01:00
|
|
|
../../configs/virtualisation.nix
|
2020-02-24 03:16:25 +01:00
|
|
|
];
|
|
|
|
|
|
2020-02-26 19:12:43 +01:00
|
|
|
# Use older kernel thanks to Intel
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_4_19;
|
|
|
|
|
boot.kernelParams = [ "intel_idle.max_cstate=1" ];
|
2020-02-24 03:16:25 +01:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
networking = {
|
2020-02-24 11:54:45 +01:00
|
|
|
hostName = "froidmpa-linux";
|
2020-02-24 03:16:25 +01:00
|
|
|
networkmanager.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking.interfaces.enp0s31f6.useDHCP = true;
|
|
|
|
|
networking.interfaces.wlp2s0.useDHCP = true;
|
|
|
|
|
|
|
|
|
|
console = {
|
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
|
keyMap = "fr";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
];
|
|
|
|
|
|
2020-02-26 19:12:43 +01:00
|
|
|
hardware.bluetooth = {
|
|
|
|
|
enable = true;
|
|
|
|
|
# Enable A2DP Sink
|
|
|
|
|
extraConfig = "
|
|
|
|
|
[General]
|
|
|
|
|
Enable=Source,Sink,Media,Socket
|
|
|
|
|
";
|
|
|
|
|
};
|
|
|
|
|
hardware.pulseaudio = {
|
|
|
|
|
enable = true;
|
2020-02-24 03:16:25 +01:00
|
|
|
|
2020-02-26 19:12:43 +01:00
|
|
|
# Use full build to have Bluetooth support
|
|
|
|
|
package = pkgs.pulseaudioFull;
|
|
|
|
|
};
|
2020-02-24 11:54:45 +01:00
|
|
|
services.blueman.enable = true;
|
2020-02-24 03:16:25 +01:00
|
|
|
|
|
|
|
|
home-manager.users.froidmpa = {pkgs, config, ...}: {
|
2020-02-24 11:54:45 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
|
slack-dark
|
|
|
|
|
];
|
2020-02-24 03:16:25 +01:00
|
|
|
services.network-manager-applet.enable = true;
|
2020-02-24 11:54:45 +01:00
|
|
|
services.blueman-applet.enable = true;
|
2020-03-04 19:23:38 +01:00
|
|
|
services.grobi = {
|
|
|
|
|
enable = true;
|
|
|
|
|
executeAfter = ["${pkgs.systemd}/bin/systemctl --user restart stalonetray" "${pkgs.feh}/bin/feh --bg-fill ~/.wallpaper.png"];
|
|
|
|
|
rules = [
|
|
|
|
|
{
|
|
|
|
|
name = "Work HDMI";
|
|
|
|
|
outputs_connected = [ "HDMI-1" ];
|
|
|
|
|
configure_single = "HDMI-1";
|
|
|
|
|
primary = true;
|
|
|
|
|
atomic = true;
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
name = "Fallback";
|
|
|
|
|
configure_single = "eDP-1";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
2020-02-24 03:16:25 +01:00
|
|
|
};
|
|
|
|
|
# Enable touchpad support.
|
|
|
|
|
services.xserver.libinput.enable = true;
|
2020-03-04 18:24:47 +01:00
|
|
|
|
|
|
|
|
fileSystems."/home/froidmpa/Projectlib" = {
|
|
|
|
|
device = "//fs-common.aris-lux.lan/projectlib";
|
|
|
|
|
fsType = "cifs";
|
|
|
|
|
options = let
|
|
|
|
|
# this line prevents hanging on network split
|
|
|
|
|
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
|
|
|
|
in ["${automount_opts},credentials=/etc/nixos/smb-secrets"];
|
|
|
|
|
};
|
|
|
|
|
fileSystems."/home/froidmpa/Projectlib2" = {
|
|
|
|
|
device = "//fs-projects.aris-lux.lan/projectlib2";
|
|
|
|
|
fsType = "cifs";
|
|
|
|
|
options = let
|
|
|
|
|
# this line prevents hanging on network split
|
|
|
|
|
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
|
|
|
|
in ["${automount_opts},credentials=/etc/nixos/smb-secrets"];
|
|
|
|
|
};
|
|
|
|
|
fileSystems."/home/froidmpa/NetworkDrive" = {
|
|
|
|
|
device = "//fs-users.aris-lux.lan/users/froidmpa";
|
|
|
|
|
fsType = "cifs";
|
|
|
|
|
options = let
|
|
|
|
|
# this line prevents hanging on network split
|
|
|
|
|
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
|
|
|
|
in ["${automount_opts},credentials=/etc/nixos/smb-secrets"];
|
|
|
|
|
};
|
2020-02-24 03:16:25 +01:00
|
|
|
}
|
|
|
|
|
|