This commit is contained in:
cnst
2024-07-03 20:32:23 +02:00
parent 789d2d0867
commit cca2745dfa
620 changed files with 49 additions and 12 deletions

1
nixos/core/adb.nix Normal file
View File

@@ -0,0 +1 @@
{ programs.adb.enable = true; }

65
nixos/core/default.nix Normal file
View File

@@ -0,0 +1,65 @@
# This file (and the global directory) holds config that i use on all hosts
{
inputs,
outputs,
pkgs,
...
}: {
imports = [
inputs.home-manager.nixosModules.home-manager
./adb.nix
./zsh.nix
./fonts.nix
./hyprland.nix
];
home-manager = {
# useGlobalPkgs = true;
extraSpecialArgs = {
inherit inputs outputs;
};
};
nixpkgs = {
overlays = [];
config = {
allowUnfree = true;
};
};
programs.dconf.enable = true;
console.useXkbConfig = true;
environment = {
localBinInPath = true;
systemPackages = with pkgs; [
# Core
git
sbctl
niv
nix-output-monitor
nvd
# Util
stow
wget
curl
ripgrep
python312Packages.oauth2
python312Packages.httplib2
killall
tree-sitter
lazygit
tmux
tmuxifier
unzip
p7zip
unrar
xdg-utils
xdg-user-dirs
ntfs3g
udiskie
wlroots
fzf
];
};
}

21
nixos/core/fonts.nix Normal file
View File

@@ -0,0 +1,21 @@
{pkgs, ...}: {
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code-symbols
font-awesome
recursive
jetbrains-mono
(nerdfonts.override {
fonts = [
"JetBrainsMono"
"FiraCode"
"Iosevka"
"3270"
"DroidSansMono"
];
})
];
}

15
nixos/core/hyprland.nix Normal file
View File

@@ -0,0 +1,15 @@
{pkgs, ...}: {
programs.hyprland = {
enable = true;
package = pkgs.hyprland;
xwayland.enable = true;
};
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
AMD_VULKAN_ICD = "RADV";
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
};
}

1
nixos/core/zsh.nix Normal file
View File

@@ -0,0 +1 @@
{ programs.zsh.enable = true; }