my nix stuff!
This commit is contained in:
37
modules/force.nix
Normal file
37
modules/force.nix
Normal 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
|
||||
];
|
||||
}
|
||||
@@ -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
27
modules/stuff/nvim.nix
Normal 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
27
modules/stuff/zsh.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user