Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active May 12, 2017 13:30
Show Gist options
  • Save cleverca22/18b59d036a47bda54ec7d22113fbabe7 to your computer and use it in GitHub Desktop.
Save cleverca22/18b59d036a47bda54ec7d22113fbabe7 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
let
keys = import ./keys.nix;
in
{
imports = [ ./clevers_machines.nix ./snmpd.nix ];
hardware = {
pulseaudio.enable = true;
pulseaudio.package = pkgs.pulseaudioFull;
opengl.driSupport32Bit = true;
};
environment.systemPackages = with pkgs; [
skype file vnstat sysstat teamspeak_client chromium pavucontrol
audacity ncdu mplayer
acpi iftop minicom socat tcpdump
];
zramSwap.enable = true;
services = {
avahi.enable = true;
zfs.autoSnapshot.enable = true;
toxvpn = {
enable = true;
localip = "192.168.123.1";
};
synergy.client = {
enable = false;
screenName = "ramboot";
serverAddress = "amd.localnet";
};
synergy.server = {
enable = false;
configFile = pkgs.writeTextFile {
name = "synergy-server.conf";
text = ''
section: screens
laptop:
amd-nixos:
end
section: links
laptop:
left = amd-nixos
amd-nixos:
right = laptop
end
'';
};
};
xserver = {
enable = false;
displayManager.slim.enable = true;
desktopManager = {
xfce.enable = true;
xterm.enable = false;
gnome3.enable = false;
};
videoDrivers = [
#"nvidiaLegacy340"
#"nouveau"
#"vesa"
];
#useGlamor = false;
#deviceSection = ''Option "NoAccel" "true"'';
};
};
boot = {
initrd = {
};
kernelParams = [ "boot.shell_on_fail" ];
#kernelPackages = pkgs.linuxPackages_4_1;
};
networking = {
firewall.enable = false;
hostName = "laptop";
wireless.enable = true;
enableB43Firmware = true;
};
virtualisation.virtualbox.host.enable = false;
virtualisation.xen = {
enable = true;
package = pkgs.xen.overrideDerivation (old: { makeFlags = old.makeFlags ++ [ "verbose=y" ]; });
bootParams = [ "loglvl=all guest_loglvl=all sync_console console_to_ring" ];
};
}
{ pkgs, ... }:
{
imports = [ ./clevers_machines.nix ];
boot.loader.grub.devices = [ "/dev/sda" ];
boot.kernelParams = [ "boot.panic_on_fail" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "xfs"; };
environment.systemPackages = with pkgs; [ ncdu ];
networking = {
wireless.enable = true;
wireless.interfaces = [ "wlp1s0" ];
};
services = {
openssh.enable = true;
xserver = {
enable = true;
displayManager.slim.enable = true;
desktopManager = {
xfce.enable = true;
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment