Skip to content

Instantly share code, notes, and snippets.

@freeman42x
Created October 13, 2019 21:41
Show Gist options
  • Save freeman42x/5cd2a1ab6ad97d5fcdee18f471d5da00 to your computer and use it in GitHub Desktop.
Save freeman42x/5cd2a1ab6ad97d5fcdee18f471d5da00 to your computer and use it in GitHub Desktop.
nixos 19.09 failed build
# 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
unstableTarball =
fetchTarball
https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
nixpkgs.config = {
allowUnfree = true;
oraclejdk.accept_license = true;
packageOverrides = pkgs: {
unstable = import unstableTarball {
config = config.nixpkgs.config;
};
};
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
hardware.bluetooth.enable = true;
networking.networkmanager.enable = true;
networking.hostName = "nixos"; # Define your hostname.
networking.firewall.allowedTCPPorts = [ 1234 ];
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
};
# Set your time zone.
time.timeZone = "Europe/Dublin";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
((import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {}).selection { selector = p: { inherit (p) ghc865; }; })
atom
haskellPackages.cabal-install
haskell.compiler.ghc865
hasklig
telnet
networkmanager-openvpn
binutils
gcc9
gpp
gnumake
automake
autoconf
file
xdotool # used by Keepass to paste stuff
unixtools.quota # used by the disk report widget
htop
jdiskreport
flameshot
openjdk11
peek # GIF recorder
gparted
hardinfo
geekbench
anydesk
zerotierone
unetbootin
multibootusb
git
gitg
git-cola
gimp
nomacs
hardinfo
haskellPackages.sysinfo
maven
kdeconnect
geeqie
clementine
ark
gnome3.file-roller
keepass
qbittorrent
unstable.dropbox
unstable.google-chrome
unstable.firefox
anki
libreoffice
meld
nixui
nox
nix-info
nix-index
appimage-run
dpkg
# games:
zeroad
unstable.openraPackages.mods.raclassic
uget
virtualbox
azure-cli
remmina
gnome3.vinagre
nomachine-client
vlc
jetbrains.datagrip
squirrel-sql
unstable.discord
unstable.slack
unstable.gitter
unstable.qtox
unstable.hexchat
unstable.riot-web
unstable.zeronet
unstable.bitlbee
unstable.bitlbee-facebook
unstable.zoom-us
obs-studio
# (wine.override { wineBuild = "wineWow"; })
unstable.wine
unstable.wineWowPackages.full
unstable.winetricks
unstable.playonlinux
unstable.steam
# (unstable.steam.override { extraPkgs = pkgs: [ mono gtk3 gtk3-x11 libgdiplus zlib ]; nativeOnly = true; withPrimus = true; withJava = true; }).run
kate
gnome3.gedit
unstable.vscode
emacs
neovim
vim
jetbrains.idea-community
sublime3
heimdall
heimdall-gui
androidenv.androidPkgs_9_0.platform-tools
adb-sync
(python27.withPackages (ps: [ps.pip]))
# python37Full
# (import (fetchTarball "channel:nixos-unstable") {}).anki
# nodejs
# electron
haskell.compiler.ghcjs
haskellPackages.stack
haskellPackages.ghcid
haskellPackages.cabal2nix
# haskellPackages.stack2nix
haskellPackages.alex
haskellPackages.happy
# (import /home/neo/Sources/nix-pkgconfig/default.nix {}) # allows cabal-install to see zlib and other libraries
];
environment.variables.EDITOR = "kate";
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.xkbOptions = "eurosign:e";
# Enable touchpad support.
services.xserver.libinput.enable = true;
# Enable the KDE Desktop Environment.
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.neo = {
isNormalUser = true;
home = "/home/neo";
extraGroups = [ "wheel" "networkmanager" "audio" ]; # Enable ‘sudo’ for the user.
};
nix.trustedUsers = [ "root" "neo" ];
services.zerotierone.enable = true;
services.zerotierone.joinNetworks = ["0cccb752f7b87cb4"];
# services.toxvpn.enable = true;
# services.toxvpn.localip = "127.169.0.1";
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.03"; # Did you read the comment?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment