mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-27 14:34:22 -04:00
nvim added
This commit is contained in:
parent
f915112ce5
commit
c3c790052f
9 changed files with 210 additions and 150 deletions
|
@ -7,7 +7,8 @@
|
|||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
|
@ -16,16 +17,16 @@
|
|||
boot.loader.grub.efiSupport = true;
|
||||
boot.loader.grub.useOSProber = true;
|
||||
boot.loader.grub.efiInstallAsRemovable = true;
|
||||
boot.kernelModules = ["i2c_dev"];
|
||||
hardware.bluetooth.enable = true;
|
||||
boot.kernelModules = [ "i2c_dev" ];
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
networking.hostName = "nix-desktop-evo4b5"; # Define your hostname.
|
||||
networking.hostName = "nix-desktop-evo4b5"; # Define your hostname.
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/New_York";
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
# Select internationalisation properties.
|
||||
# i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
@ -34,16 +35,16 @@ hardware.bluetooth.enable = true;
|
|||
# keyMap = "us";
|
||||
# useXkbConfig = true; # use xkb.options in tty.
|
||||
# };
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
};
|
||||
desktopManager.plasma6.enable = true;
|
||||
};
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.sddm = {
|
||||
enable = true;
|
||||
};
|
||||
desktopManager.plasma6.enable = true;
|
||||
};
|
||||
# Enable the X11 windowing system.
|
||||
# servives.desktopManager.plasma6.enable = true;
|
||||
# services.desktopManager.plasma6.enable = true;
|
||||
# services.desktopManager.plasma6.enable = true;
|
||||
|
||||
|
||||
|
||||
|
@ -53,14 +54,14 @@ services.xserver = {
|
|||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
# Enable sound.
|
||||
sound.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
# hardware.pulseaudio.enable = true;
|
||||
|
||||
|
@ -71,38 +72,41 @@ services.xserver = {
|
|||
users.users.meyer = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel" # Enable ‘sudo’ for the user.
|
||||
"audio" "sound" "video"
|
||||
"networkmanager"
|
||||
"input" "tty"
|
||||
"wheel" # Enable ‘sudo’ for the user.
|
||||
"audio"
|
||||
"sound"
|
||||
"video"
|
||||
"networkmanager"
|
||||
"input"
|
||||
"tty"
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
|
||||
|
||||
programs.zsh.enable = true;
|
||||
programs.steam.enable = true;
|
||||
programs.steam.extraCompatPackages = with pkgs; [
|
||||
programs.zsh.enable = true;
|
||||
programs.steam.enable = true;
|
||||
programs.steam.extraCompatPackages = with pkgs; [
|
||||
proton-ge-bin
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs = {inherit inputs;};
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
users = {
|
||||
"meyer" = import ./home.nix;
|
||||
"meyer" = import ./home.nix;
|
||||
};
|
||||
};
|
||||
# networking.nameservers = ["10.0.0.97" "1.1.1.1"];
|
||||
networking.nameservers = ["10.0.0.97"];
|
||||
# networking.nameservers = ["10.0.0.97" "1.1.1.1"];
|
||||
networking.nameservers = [ "10.0.0.97" ];
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
ddcutil
|
||||
i2c-tools
|
||||
ddcutil
|
||||
i2c-tools
|
||||
# python311
|
||||
# python311Packages.evdev
|
||||
# python311Packages.xlib
|
||||
|
@ -120,18 +124,18 @@ networking.nameservers = ["10.0.0.97"];
|
|||
libnotify
|
||||
file
|
||||
];
|
||||
#LD fix
|
||||
programs.nix-ld.enable = true;
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
pkgs.curlWithGnuTls
|
||||
];
|
||||
programs.ssh.startAgent = true;
|
||||
programs.ssh.askPassword = pkgs.lib.mkForce "${pkgs.ksshaskpass.out}/bin/ksshaskpass";
|
||||
#LD fix
|
||||
programs.nix-ld.enable = true;
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
pkgs.curlWithGnuTls
|
||||
];
|
||||
programs.ssh.startAgent = true;
|
||||
programs.ssh.askPassword = pkgs.lib.mkForce "${pkgs.ksshaskpass.out}/bin/ksshaskpass";
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-gnome3;
|
||||
};
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-gnome3;
|
||||
};
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
[
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
|
@ -14,19 +15,20 @@
|
|||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/789aab6a-3f46-4023-9aab-0569bb06bcde";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/789aab6a-3f46-4023-9aab-0569bb06bcde";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/FA5C-26B6";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/FA5C-26B6";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/8d59260c-90c4-440e-8ac6-f0135e90451f"; }
|
||||
];
|
||||
[{ device = "/dev/disk/by-uuid/8d59260c-90c4-440e-8ac6-f0135e90451f"; }];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
cpkg = import ../../customPackages {inherit pkgs;};
|
||||
let
|
||||
cpkg = import ../../customPackages { inherit pkgs; };
|
||||
|
||||
in
|
||||
in
|
||||
{
|
||||
programs.zsh.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
programs.zsh.oh-my-zsh.enable = true;
|
||||
programs.zsh.initExtra = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme" + "\n" + "source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" + "\n" + "[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh";
|
||||
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
||||
programs.zsh.initExtra = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme" + "\n" + "source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" + "\n" + "[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh";
|
||||
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# nixpkg.config.allowUnfree = true;
|
||||
# manage.
|
||||
|
@ -25,7 +25,7 @@ programs.zsh.initExtra = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel1
|
|||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
home.packages = with pkgs;[
|
||||
obs-studio
|
||||
obs-studio
|
||||
tokyo-night-gtk
|
||||
linuxHeaders
|
||||
#NODE
|
||||
|
@ -37,15 +37,15 @@ programs.zsh.initExtra = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel1
|
|||
zsh-syntax-highlighting
|
||||
hello
|
||||
gh
|
||||
(prismlauncher.override {
|
||||
jdks = [
|
||||
jdk8
|
||||
jdk17
|
||||
jdk19
|
||||
];
|
||||
})
|
||||
(prismlauncher.override {
|
||||
jdks = [
|
||||
jdk8
|
||||
jdk17
|
||||
jdk19
|
||||
];
|
||||
})
|
||||
ksshaskpass
|
||||
libsForQt5.kinit
|
||||
libsForQt5.kinit
|
||||
fzf
|
||||
#C AND CXX START
|
||||
glib
|
||||
|
@ -53,9 +53,9 @@ jdk19
|
|||
#C AND CXX END
|
||||
|
||||
#PYTHONSTART
|
||||
(python39.withPackages(ps: with ps;[
|
||||
evdev
|
||||
xlib
|
||||
(python39.withPackages (ps: with ps;[
|
||||
evdev
|
||||
xlib
|
||||
]))
|
||||
# python311Packages.evdev
|
||||
# python311Packages.xlib
|
||||
|
@ -90,38 +90,38 @@ jdk19
|
|||
# echo "Hello, ${config.home.username}!"
|
||||
# '')
|
||||
(pkgs.writeShellScriptBin "installVencord" ''
|
||||
set -e
|
||||
set -x
|
||||
out=$(mktemp)
|
||||
# trap 'rm -f "$out"' EXIT
|
||||
curl -sS https://github.com/Vendicated/VencordInstaller/releases/latest/download/VencordInstallerCli-Linux \
|
||||
--output "$out" \
|
||||
--location
|
||||
set -e
|
||||
set -x
|
||||
out=$(mktemp)
|
||||
# trap 'rm -f "$out"' EXIT
|
||||
curl -sS https://github.com/Vendicated/VencordInstaller/releases/latest/download/VencordInstallerCli-Linux \
|
||||
--output "$out" \
|
||||
--location
|
||||
|
||||
chmod +x "$out"
|
||||
chmod +x "$out"
|
||||
|
||||
sudo NIX_LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH NIX_LD=$NIX_LD $out -location "${pkgs.discord}/opt/Discord"
|
||||
sudo NIX_LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH NIX_LD=$NIX_LD $out -location "${pkgs.discord}/opt/Discord"
|
||||
'')
|
||||
];
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
# plain files is through 'home.file'.
|
||||
home.file = {
|
||||
kitty = {
|
||||
recursive = true;
|
||||
source = ../../dotfiles/kitty;
|
||||
target = "./.config/kitty";
|
||||
};
|
||||
gh = {
|
||||
recursive = true;
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos/dotfiles/gh";
|
||||
target = "./.config/gh";
|
||||
};
|
||||
btop = {
|
||||
recursive = true;
|
||||
source = ../../dotfiles/btop;
|
||||
target = "./.config/btop";
|
||||
};
|
||||
# "testconfigfile".source = ../../dotfiles/testconfigfile;
|
||||
kitty = {
|
||||
recursive = true;
|
||||
source = ../../dotfiles/kitty;
|
||||
target = "./.config/kitty";
|
||||
};
|
||||
gh = {
|
||||
recursive = true;
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos/dotfiles/gh";
|
||||
target = "./.config/gh";
|
||||
};
|
||||
btop = {
|
||||
recursive = true;
|
||||
source = ../../dotfiles/btop;
|
||||
target = "./.config/btop";
|
||||
};
|
||||
# "testconfigfile".source = ../../dotfiles/testconfigfile;
|
||||
# ".gitconfig".source = ../../dotfiles/.gitconfig;
|
||||
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
||||
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
||||
|
@ -151,20 +151,20 @@ jdk19
|
|||
# /etc/profiles/per-user/meyer/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
home.shellAliases = {
|
||||
paste = "xsel -ob";
|
||||
copt = "xsel -ib";
|
||||
paste = "xsel -ob";
|
||||
copt = "xsel -ib";
|
||||
};
|
||||
home.sessionPath = [
|
||||
"$HOME/.local/bin"
|
||||
];
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
MANPAGER = "nvim +Man!";
|
||||
MANWIDTH = "999";
|
||||
SSH_ASKPASS_REQUIRE="prefer";
|
||||
PRISMA_QUERY_ENGINE_BINARY="${pkgs.prisma-engines}/bin/query-engine";
|
||||
PRISMA_SCHEMA_ENGINE_BINARY="${pkgs.prisma-engines}/bin/schema-engine";
|
||||
PRISMA_QUERY_ENGINE_LIBRARY="${pkgs.prisma-engines}/lib/libquery_engine.node";
|
||||
EDITOR = "nvim";
|
||||
MANPAGER = "nvim +Man!";
|
||||
MANWIDTH = "999";
|
||||
SSH_ASKPASS_REQUIRE = "prefer";
|
||||
PRISMA_QUERY_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/query-engine";
|
||||
PRISMA_SCHEMA_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/schema-engine";
|
||||
PRISMA_QUERY_ENGINE_LIBRARY = "${pkgs.prisma-engines}/lib/libquery_engine.node";
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue