1
0
Fork 0
mirror of https://github.com/inexcode/nixos-config.git synced 2024-11-23 15:01:26 +00:00
This commit is contained in:
Inex Code 2020-05-16 20:32:53 +03:00
parent 88c2e8f78f
commit 9039bdc3b1
4 changed files with 52 additions and 22 deletions

View file

@ -13,11 +13,15 @@
./modules/zsh.nix ./modules/zsh.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
# Networking # Networking
@ -34,8 +38,8 @@
}; };
}; };
firewall = { firewall = {
allowedTCPPorts = [ 1716 ]; allowedTCPPorts = [ 1716 51820 24642 ];
allowedUDPPorts = [ 1716 ]; allowedUDPPorts = [ 1716 51820 24642 ];
}; };
}; };
@ -74,7 +78,7 @@
services.xserver = { services.xserver = {
enable = true; enable = true;
layout = "us"; layout = "us";
videoDrivers = [ "intel" "nv" ]; videoDrivers = [ "nvidia" ];
libinput.enable = true; libinput.enable = true;
exportConfiguration = true; exportConfiguration = true;
wacom.enable = true; wacom.enable = true;
@ -83,24 +87,24 @@
}; };
# Video driver # Video driver
hardware = { hardware = {/*
bumblebee = { bumblebee = {
enable = true; enable = true;
driver = "nouveau"; driver = "nouveau";
}; };*/
opengl = { opengl = {
enable = true; enable = true;
driSupport32Bit = true; driSupport32Bit = true;
}; /* };
nvidia = { nvidia = {
modesetting.enable = true; modesetting.enable = true;
optimus_prime = { prime = {
enable = true; offload.enable = true;
allowExternalGpu = true; # allowExternalGpu = true;
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";
intelBusId = "PCI:0:2:0"; intelBusId = "PCI:0:2:0";
}; };
}; */ };
}; };
programs = { programs = {
@ -110,6 +114,8 @@
}; };
}; };
virtualisation.docker.enable = true;
hardware.steam-hardware.enable = true; hardware.steam-hardware.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
@ -117,7 +123,7 @@
isNormalUser = true; isNormalUser = true;
home = "/home/inex"; home = "/home/inex";
description = "Inex Code"; description = "Inex Code";
extraGroups = [ "wheel" "networkmanager" "jackaudio" "audio" "video" "adbusers" ]; # Enable sudo for the user. extraGroups = [ "wheel" "networkmanager" "jackaudio" "audio" "video" "adbusers" "docker" ]; # Enable sudo for the user.
}; };
# This value determines the NixOS release with which your system is to be # This value determines the NixOS release with which your system is to be
@ -128,4 +134,3 @@
} }

View file

@ -6,7 +6,7 @@
displayManager = { displayManager = {
gdm = { gdm = {
enable = true; enable = true;
wayland = true; wayland = false;
}; };
}; };
desktopManager = { desktopManager = {
@ -21,6 +21,7 @@
gnome3.pomodoro gnome3.pomodoro
gnome3.gnome-tweaks gnome3.gnome-tweaks
gnome3.networkmanager-openvpn gnome3.networkmanager-openvpn
gnome3.evolution
gnomeExtensions.gsconnect gnomeExtensions.gsconnect
paper-icon-theme paper-icon-theme
]; ];

View file

@ -16,6 +16,7 @@ in neovim.override {
"nerdtree" "nerdtree"
"vim-nix" "vim-nix"
"dart-vim-plugin" "dart-vim-plugin"
"coc-nvim"
]; ];
} }
]; ];

View file

@ -11,34 +11,49 @@ in {
(pkgs.callPackage ./modules/my_vim.nix {}) (pkgs.callPackage ./modules/my_vim.nix {})
neofetch neofetch
pciutils pciutils
openvpn usbutils
bind
# openvpn
git git
unzip unzip
tldr tldr
ffmpeg ffmpeg
wget
nix-bundle
nmap
# Wireguard
wireguard
wireguard-tools
nextcloud-client nextcloud-client
# Encrypted folders # Encrypted folders
encfs encfs
gencfsm #gencfsm
# Browsers # Browsers
firefox firefox
transmission-gtk transmission-gtk
youtube-dl
# Messangers # Messangers
tdesktop tdesktop
discord #discord
riot-desktop mumble
#riot-desktop
qtox qtox
dino
zoom-us
# Games # Games
steam steam
steam-run-native steam-run-native
unstable.openttd unstable.openttd
lutris
vulkan-tools vulkan-tools
lutris-unwrapped wineWowPackages.full
wineWowPackages.fonts
# Development # Development
vscode vscode
@ -47,8 +62,12 @@ in {
texlive.combined.scheme-full texlive.combined.scheme-full
gcc-unwrapped gcc-unwrapped
python3Full python3Full
# (import (builtins.fetchTarball "https://github.com/babariviere/nixpkgs/archive/flutter-init.tar.gz") {}).flutter
#android-studio #android-studio
cmake cmake
nodejs
ccls
josm josm
@ -59,21 +78,25 @@ in {
# Graphics # Graphics
krita krita
gmic_krita_qt gmic_krita_qt
potrace
# Audio # Audio
audacity audacity
lmms # lmms
picard picard
cmus cmus
# Plugins # Plugins
ladspaPlugins # ladspaPlugins
lsp-plugins # lsp-plugins
# Documents # Documents
anki anki
libreoffice libreoffice
homebank homebank
trilium
klavaro
liberation_ttf
]; ];
} }