mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved to neovim
This commit is contained in:
parent
8e626d25e7
commit
2d60e04682
20 changed files with 147 additions and 103 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
flake.lock
|
||||||
|
hardware-configuration.nix
|
||||||
|
|
@ -1 +1,65 @@
|
||||||
# intentionally empty
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
system.stateVersion = "22.11";
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
environment = {
|
||||||
|
defaultPackages = [];
|
||||||
|
binsh = "${pkgs.dash}/bin/dash";
|
||||||
|
variables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
|
settings.auto-optimise-store = true;
|
||||||
|
extraOptions = ''
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
networking = {
|
||||||
|
firewall.enable = true;
|
||||||
|
firewall.allowPing = true;
|
||||||
|
useDHCP = lib.mkDefault true;
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
qt5 = {
|
||||||
|
enable = true;
|
||||||
|
style = "gtk2";
|
||||||
|
platformTheme = "gtk2";
|
||||||
|
};
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
services = {
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
|
||||||
|
#enable ssh
|
||||||
|
programs = {
|
||||||
|
mtr.enable = true;
|
||||||
|
gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.openssh.enable = true;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,13 +13,14 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
pulseaudio = true;
|
||||||
packageOverrides = super: let self = super.pkgs; in {
|
packageOverrides = super: let self = super.pkgs; in {
|
||||||
#more overrides can go here
|
#more overrides can go here
|
||||||
polkit_fix = self.polkit_gnome.overrideAttrs ( oldAttrs: rec
|
polkit_fix = self.polkit_gnome.overrideAttrs ( oldAttrs: rec
|
||||||
{
|
{
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
ln -s $out/libexec/polkit-gnome-authentication-agent-1 $out/bin/polkit-gnome-authentication-agent-1
|
ln -s $out/libexec/polkit-gnome-authentication-agent-1 $out/bin/polkit-gnome
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
nerdfonts-overpass = self.nerdfonts.override {
|
nerdfonts-overpass = self.nerdfonts.override {
|
||||||
|
|
@ -42,6 +43,7 @@
|
||||||
gerg-laptop = lib.nixosSystem {
|
gerg-laptop = lib.nixosSystem {
|
||||||
inherit system pkgs;
|
inherit system pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./systems/laptop.nix
|
./systems/laptop.nix
|
||||||
];
|
];
|
||||||
|
|
@ -49,6 +51,7 @@
|
||||||
gerg-desktop = lib.nixosSystem {
|
gerg-desktop = lib.nixosSystem {
|
||||||
inherit system pkgs;
|
inherit system pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./systems/desktop.nix
|
./systems/desktop.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
"xsetroot -cursor_name left_ptr"
|
"xsetroot -cursor_name left_ptr"
|
||||||
"xsetroot -solid \"#000000\""
|
"xsetroot -solid \"#000000\""
|
||||||
"flashfocus"
|
"flashfocus"
|
||||||
"polkit-gnome-authentication-agent-1"
|
"polkit-gnome"
|
||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
border_width = 0;
|
border_width = 0;
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
};
|
};
|
||||||
monitors = {
|
monitors = {
|
||||||
HDMI-0 = [ "I" "II" "III" "IV" "V" ];
|
HDMI-0 = [ "I" "II" "III" "IV" "V" ];
|
||||||
# eDP-1 = [ "VI" "VII" "VIII" "IX" "X" ];
|
eDP-1 = [ "VI" "VII" "VIII" "IX" "X" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
u=$(xprop -name "Polybar tray window" _NET_WM_PID | awk '{print $3}')
|
|
||||||
if [ $u -Z ]
|
|
||||||
then polybar tray &
|
|
||||||
else kill $u
|
|
||||||
fi
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.gitFull;
|
||||||
userName = "ISnortPennies";
|
userName = "ISnortPennies";
|
||||||
userEmail = "ISnortPennies@protonmail.com";
|
userEmail = "ISnortPennies@protonmail.com";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{config, pkgs, home-manager, ...}:
|
{config, pkgs, home-manager, ...}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./zsh.nix
|
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./bspwm.nix
|
./bspwm.nix
|
||||||
./sxhkd.nix
|
./sxhkd.nix
|
||||||
|
|
@ -12,6 +11,7 @@
|
||||||
./theme.nix
|
./theme.nix
|
||||||
./picom.nix
|
./picom.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
./neovim.nix
|
||||||
];
|
];
|
||||||
xsession.numlock.enable = true;
|
xsession.numlock.enable = true;
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
||||||
34
home-manager/neovim.nix
Normal file
34
home-manager/neovim.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
withNodeJs = true;
|
||||||
|
withPython3 = true;
|
||||||
|
withRuby = true;
|
||||||
|
coc = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.vimPlugins.coc-nvim;
|
||||||
|
};
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
vim-nix
|
||||||
|
vim-polyglot
|
||||||
|
vim-smoothie
|
||||||
|
tokyonight-nvim
|
||||||
|
rainbow
|
||||||
|
indentLine
|
||||||
|
undotree
|
||||||
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
set tabstop=2
|
||||||
|
set expandtab
|
||||||
|
set shiftwidth=2
|
||||||
|
set ignorecase
|
||||||
|
set incsearch
|
||||||
|
set number
|
||||||
|
set noswapfile
|
||||||
|
let mapleader = "'"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -199,7 +199,7 @@
|
||||||
"module/tray" = {
|
"module/tray" = {
|
||||||
type = "custom/text";
|
type = "custom/text";
|
||||||
content = " ";
|
content = " ";
|
||||||
click.left = "\$HOME/.config/polybar/scripts/tray";
|
click.left = "polybar-tray";
|
||||||
label = {
|
label = {
|
||||||
padding = 3;
|
padding = 3;
|
||||||
background = "\${colors.background}";
|
background = "\${colors.background}";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{pkgs, config, lib, modulesPath, ...}:
|
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
blacklistedKernelModules = [ "nouveau" "lbm-nouveau" "pcspkr" ];
|
blacklistedKernelModules = [ "nouveau" "lbm-nouveau" "pcspkr" ];
|
||||||
kernelParams = [ "fbcon=nodefer" "bgrt_disable" "quiet" "splash" ];
|
kernelParams = [ "fbcon=nodefer" "bgrt_disable" "quiet" "splash" ];
|
||||||
plymouth = {
|
plymouth = {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia = {
|
nvidia = {
|
||||||
nvidiaPersistenced = true;
|
nvidiaPersistenced = false;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{ config, pkgs, callPackage, ... }:
|
{ config, pkgs, callPackage, ... }:
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nano #editor
|
|
||||||
wget
|
wget
|
||||||
htop #view tasks
|
htop #view tasks
|
||||||
efibootmgr #efi editor
|
efibootmgr #efi editor
|
||||||
|
|
@ -12,7 +11,6 @@ environment.systemPackages = with pkgs; [
|
||||||
lightdm-mini-greeter
|
lightdm-mini-greeter
|
||||||
#needed utils
|
#needed utils
|
||||||
mesa #3d acceleration
|
mesa #3d acceleration
|
||||||
git #git duh
|
|
||||||
pciutils
|
pciutils
|
||||||
binutils
|
binutils
|
||||||
alsa-utils
|
alsa-utils
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,9 @@
|
||||||
{
|
{
|
||||||
output = "HDMI-0";
|
output = "HDMI-0";
|
||||||
primary = true;
|
primary = true;
|
||||||
|
monitorConfig = ''
|
||||||
|
Option "DPMS" "false"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
screenSection = ''
|
screenSection = ''
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,15 @@ let
|
||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
nixos-rebuild switch --flake /etc/nixos/#
|
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 {
|
in {
|
||||||
environment.systemPackages = [ update-system clean-store apply-users apply-system ];
|
environment.systemPackages = [ update-system clean-store apply-users apply-system polybar-tray ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
|
services.gvfs.enable = true;
|
||||||
programs.thunar = {
|
programs.thunar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = with pkgs.xfce; [ thunar-volman thunar-archive-plugin thunar-media-tags-plugin];
|
plugins = with pkgs.xfce; [ thunar-volman thunar-archive-plugin thunar-media-tags-plugin];
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
else [ "nvidia" ];
|
else [ "nvidia" ];
|
||||||
layout = "us";
|
layout = "us";
|
||||||
libinput.enable = true;
|
libinput.enable = true;
|
||||||
|
xautolock.enable = false;
|
||||||
desktopManager = {
|
desktopManager = {
|
||||||
xterm.enable = false;
|
xterm.enable = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,16 @@
|
||||||
programs = {
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAutosuggestions = true;
|
autosuggestions = {
|
||||||
enableSyntaxHighlighting = true;
|
enable = true;
|
||||||
completionInit = "neofetch";
|
};
|
||||||
|
syntaxHighlighting = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
interactiveShellInit = "neofetch";
|
||||||
};
|
};
|
||||||
starship = {
|
starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
|
||||||
settings = {
|
settings = {
|
||||||
add_newline = false;
|
add_newline = false;
|
||||||
format="$sudo \n $directory$git_branch$character";
|
format="$sudo \n $directory$git_branch$character";
|
||||||
|
|
@ -9,32 +9,25 @@
|
||||||
../modules/fonts.nix
|
../modules/fonts.nix
|
||||||
../modules/thunar.nix
|
../modules/thunar.nix
|
||||||
../modules/scripts.nix
|
../modules/scripts.nix
|
||||||
../modules/misc.nix
|
|
||||||
../modules/vfio.nix
|
../modules/vfio.nix
|
||||||
../modules/refreshrate.nix
|
../modules/refreshrate.nix
|
||||||
../modules/xserver.nix
|
../modules/xserver.nix
|
||||||
../modules/smb.nix
|
../modules/smb.nix
|
||||||
|
../modules/zsh.nix
|
||||||
];
|
];
|
||||||
networking.hostName = "gerg-desktop";
|
networking.hostName = "gerg-desktop";
|
||||||
nix = {
|
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
system.stateVersion = "22.11";
|
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
# end important stuff
|
#end important stuff
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
android-tools
|
android-tools
|
||||||
openjdk
|
openjdk
|
||||||
];
|
];
|
||||||
# user managment
|
#user managment
|
||||||
users = {
|
users = {
|
||||||
defaultUserShell = pkgs.dash;
|
defaultUserShell = pkgs.zsh;
|
||||||
users.gerg = {
|
users.gerg = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.zsh;
|
|
||||||
extraGroups = [ "wheel" "audio" "networkmanager" "kvm" "libvirtd" ];
|
extraGroups = [ "wheel" "audio" "networkmanager" "kvm" "libvirtd" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,29 +10,22 @@
|
||||||
../modules/fonts.nix
|
../modules/fonts.nix
|
||||||
../modules/thunar.nix
|
../modules/thunar.nix
|
||||||
../modules/scripts.nix
|
../modules/scripts.nix
|
||||||
../modules/misc.nix
|
|
||||||
../modules/xserver.nix
|
../modules/xserver.nix
|
||||||
|
../modules/zsh.nix
|
||||||
];
|
];
|
||||||
networking.hostName = "gerg-laptop";
|
networking.hostName = "gerg-laptop";
|
||||||
nix = {
|
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
system.stateVersion = "22.11";
|
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
|
||||||
# end important stuff
|
# end important stuff
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xorg.xf86videoamdgpu
|
xorg.xf86videoamdgpu
|
||||||
];
|
];
|
||||||
|
|
||||||
# user managment
|
# user managment
|
||||||
users = {
|
users = {
|
||||||
defaultUserShell = pkgs.dash;
|
defaultUserShell = pkgs.zsh;
|
||||||
users.gerg = {
|
users.gerg = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.zsh;
|
|
||||||
extraGroups = [ "wheel" "audio" "networkmanager"];
|
extraGroups = [ "wheel" "audio" "networkmanager"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue