my nix stuff!

This commit is contained in:
2025-08-20 22:33:31 +03:00
parent 48100ee09e
commit 8bf64faaa8
10 changed files with 142 additions and 64 deletions

37
modules/force.nix Normal file
View File

@@ -0,0 +1,37 @@
{ config, pkgs, ... }:
{
imports = [
./nixos/bootloader.nix
./nixos/hardware.nix
./nixos/i18n.nix
./nixos/network.nix
./nixos/nixpkgs.nix
./nixos/nvidia.nix
./nixos/programs.nix
./stuff/nvim.nix
./stuff/zsh.nix
];
environment.systemPackages = with pkgs; [
gh
file
glib
openssl
nss
glibc
nixfmt-rfc-style
killall
deno
bun
imagemagick
unzip
libwebp
nix-direnv
htop
nixpkgs-fmt
nixd
ffmpeg-full
gnupg
];
}

View File

@@ -18,13 +18,6 @@
# services.displayManager.defaultSession = "hyprland";
programs.zsh.enable = true;
programs.direnv = {
enable = true;
enableZshIntegration = true;
};
programs.gamemode.enable = true;
programs.gamemode.settings.general.renice = 0;
programs.gamemode.settings.general.ioprio = 0;

27
modules/stuff/nvim.nix Normal file
View File

@@ -0,0 +1,27 @@
{ config, inputs, pkgs, lib, ... }:
{
imports = [
inputs.nvf.nixosModules.default
];
programs.nvf = {
enable = true;
defaultEditor = true;
# withLua = true;
settings.vim = {
viAlias = true;
vimAlias = true;
statusline.lualine.enable = true;
languages = {
enableLSP = true;
enableTreesitter = true;
nix.enable = true;
ts.enable = true;
# qml.enable = true;
};
};
};
}

27
modules/stuff/zsh.nix Normal file
View File

@@ -0,0 +1,27 @@
{ config, inputs, pkgs, lib, ... }:
{
programs.direnv = {
enable = true;
enableZshIntegration = true;
};
programs.zsh = {
enable = true;
autosuggestions.enable = true;
zsh-autoenv.enable = true;
syntaxHighlighting.enable = true;
ohMyZsh = {
enable = true;
plugins = [ "git" "direnv" ];
theme = "robbyrussell";
};
shellAliases = {
nixrebuild = "sudo nixos-rebuild switch --flake .#default --impure --cores 4 -L --upgrade";
dangerous-nixrebuild-server = "sudo nixos-rebuild switch --flake .#server --impure --cores 4 -L --upgrade";
neofetch = "fastfetch";
};
};
}