moved to neovim

This commit is contained in:
ISnortPennies 2022-08-09 16:42:45 -04:00 committed by ISnortPennies
parent 8e626d25e7
commit 2d60e04682
20 changed files with 147 additions and 103 deletions

View file

@ -1,7 +1,5 @@
{pkgs, config, lib, modulesPath, ...}:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
blacklistedKernelModules = [ "nouveau" "lbm-nouveau" "pcspkr" ];
kernelParams = [ "fbcon=nodefer" "bgrt_disable" "quiet" "splash" ];
plymouth = {

View file

@ -1,53 +0,0 @@
{ config, pkgs, lib, ... }:
{
nix.settings.auto-optimise-store = true;
networking = {
firewall.enable = true;
firewall.allowPing = true;
useDHCP = lib.mkDefault true;
networkmanager.enable = true;
};
qt5 = {
enable = true;
style = "gtk2";
platformTheme = "gtk2";
};
programs = {
zsh.enable = true;
dconf.enable = true;
};
time.timeZone = "America/New_York";
services = {
gvfs.enable = true;
timesyncd = {
enable = true;
servers = [
"time.google.com"
"time2.google.com"
];
};
};
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
useXkbConfig = true;
};
# Enable sound.
security.rtkit.enable = true;
hardware.pulseaudio = {
enable = true;
support32Bit = true;
package = pkgs.pulseaudioFull;
};
nixpkgs.config.pulseaudio = true;
#enable ssh
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.openssh.enable = true;
}

View file

@ -1,9 +1,8 @@
{ config, ... }:
{
hardware = {
nvidia = {
nvidiaPersistenced = true;
nvidiaPersistenced = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
@ -12,7 +11,7 @@
enable = true;
driSupport = true;
driSupport32Bit = true;
};
};
};
}

View file

@ -1,7 +1,6 @@
{ config, pkgs, callPackage, ... }:
{
environment.systemPackages = with pkgs; [
nano #editor
wget
htop #view tasks
efibootmgr #efi editor
@ -12,7 +11,6 @@ environment.systemPackages = with pkgs; [
lightdm-mini-greeter
#needed utils
mesa #3d acceleration
git #git duh
pciutils
binutils
alsa-utils

View file

@ -4,6 +4,9 @@
{
output = "HDMI-0";
primary = true;
monitorConfig = ''
Option "DPMS" "false"
'';
}
];
screenSection = ''

View file

@ -25,6 +25,15 @@ let
#!${pkgs.stdenv.shell}
nixos-rebuild switch --flake /etc/nixos/#
'';
polybar-tray = pkgs.writeScriptBin "polybar-tray" ''
#!${pkgs.stdenv.shell}
u=$(xprop -name "Polybar tray window" _NET_WM_PID | awk '{print $3}')
if [ $u -Z ]
then polybar tray &
else kill $u
fi
'';
in {
environment.systemPackages = [ update-system clean-store apply-users apply-system ];
environment.systemPackages = [ update-system clean-store apply-users apply-system polybar-tray ];
}

View file

@ -1,5 +1,6 @@
{pkgs, ...}:
{
services.gvfs.enable = true;
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [ thunar-volman thunar-archive-plugin thunar-media-tags-plugin];

View file

@ -8,13 +8,14 @@
else [ "nvidia" ];
layout = "us";
libinput.enable = true;
xautolock.enable = false;
desktopManager = {
xterm.enable = false;
};
windowManager.bspwm = {
enable = true;
};
displayManager = {
displayManager = {
defaultSession = "none+bspwm";
lightdm = {
enable = true;

35
modules/zsh.nix Executable file
View file

@ -0,0 +1,35 @@
{
programs = {
zsh = {
enable = true;
autosuggestions = {
enable = true;
};
syntaxHighlighting = {
enable = true;
};
interactiveShellInit = "neofetch";
};
starship = {
enable = true;
settings = {
add_newline = false;
format="$sudo \n $directory$git_branch$character";
character = {
success_symbol = "[](#9ece6a bold)";
error_symbol = "[](#db4b4b bold)";
};
directory = {
read_only = " ";
};
git_branch = {
style = "bold red";
};
sudo ={
format = "[ ](#7aa2f7)";
disabled = false;
};
};
};
};
}