re-organised flake inputs and common config

This commit is contained in:
2026-03-22 12:00:27 +00:00
parent f3d247f8ca
commit 911930bcc3
3 changed files with 91 additions and 91 deletions

View File

@@ -11,7 +11,8 @@
/etc/nixos/hardware-configuration.nix
];
# Allow Nix command and flakes (ofc)
# Nix settings
## Limit Cores on rebuild and enable Flakes
nix.settings = {
cores = 6;
experimental-features = [
@@ -20,7 +21,7 @@
];
};
# Allow unfree packages
## Allow unfree packages and add pkgs.unstable
nixpkgs = {
config = {
allowUnfree = true;
@@ -34,7 +35,7 @@
};
};
# Nix store shit
## Optimise Nix store on rebuild and collect garbage as a service
nix.optimise.automatic = true;
nix.gc = {
automatic = true;
@@ -42,7 +43,7 @@
options = "--delete-older-than 5d";
};
# Boot
# Bootloader theming and plymouth
boot = {
loader = {
timeout = 2;
@@ -67,9 +68,13 @@
};
};
# Use latest kernel.
## Use latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# Bluetooth and Networking
hardware.bluetooth.enable = true;
hardware.xpadneo.enable = true;
networking.networkmanager.enable = true;
networking.networkmanager.dns = "none";
networking.nameservers = [
@@ -77,14 +82,8 @@
"8.8.8.8"
];
# Enable bluetooth
hardware.bluetooth.enable = true;
hardware.xpadneo.enable = true;
# Set your time zone.
time.timeZone = "Europe/London";
# Locale
time.timeZone = "Europe/London";
i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_GB.UTF-8";
@@ -98,23 +97,23 @@
LC_TIME = "en_GB.UTF-8";
};
# Windowing Systems
services.xserver.enable = true;
programs.hyprland = {
enable = true;
package = pkgs.unstable.hyprland;
};
security.polkit.enable = true;
# Keymap
# Userspace Stuff
## Keymap
services.xserver.xkb = {
layout = "gb";
variant = "";
};
console.keyMap = "uk";
# Pipewire
## Desktop
services.xserver.enable = true;
programs.hyprland = {
enable = true;
package = pkgs.unstable.hyprland;
};
security.polkit.enable = true;
## Audio Server
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
@@ -125,6 +124,7 @@
};
# Local User
## User config
users.users.user01 = {
isNormalUser = true;
shell = pkgs.zsh;
@@ -165,21 +165,18 @@
in
[
# Ricing
## Desktop
bibata-cursors
catppuccin-gtk
waybar
hyprlock
cava
cmatrix
swaynotificationcenter
(input {
package = "chataigne";
})
wlogout
wpaperd
kando
oh-my-posh
## Desktop Utilities
grimblast
wl-clipboard
(wrap {
name = "otter-launcher";
pkg = (
@@ -192,58 +189,64 @@
jq
];
})
(input {
package = "fsel";
})
(input { package = "fsel"; })
# Terminal
carapace
bat
## Styling / Functionality
kitty
wl-clipboard
oh-my-posh
carapace
zsh-autocomplete
bat
## Tools
lazygit
p7zip-rar
fzf
ripgrep
wget
htop
playerctl
git
fastfetch
zellij
lsd
(input {
package = "doot";
})
fzf
ripgrep
zsh-autocomplete
nodejs
lazygit
tailscale
unstable.norgolith
# Thunar stuff
xfce.thunar
xfce.thunar-volman
xfce.thunar-vcs-plugin
xfce.thunar-archive-plugin
## Other CLI Apps
nodejs
fastfetch
zellij
cava
cmatrix
tailscale
syncthing
unstable.norgolith
jellyfin-tui
# Apps
pavucontrol
## Actual Useful Stuff
nemo
firefox
htop
input-remapper
tor-browser
gotify-desktop
techmino
pavucontrol
mpv
input-remapper
## Other Nonsense
tor-browser
techmino
prismlauncher
delfin
onlyoffice-desktopeditors
syncthing
blueman
jellyfin-tui
(input {
package = "chataigne";
})
];
};
# Zsh
## Zsh
programs.zsh = {
enable = true;
enableCompletion = true;
@@ -261,11 +264,11 @@
};
};
# User programs
## User programs
programs.dconf.enable = true;
programs.xfconf.enable = true;
# User Services
## User Services
services.gvfs.enable = true;
services.input-remapper.enable = true;
services.tailscale.enable = true;
@@ -274,36 +277,30 @@
services.openssh.enable = true;
services.avahi.enable = true;
# Fonts
## Fonts
fonts.packages = with pkgs; [
nerd-fonts.fira-mono
];
fonts.fontconfig.defaultFonts.serif = [ "Fira Mono Nerd Font" ];
# System Packages
environment.systemPackages = with pkgs; [
# Utilities
inputs.nvim-wrapped.packages.${stdenv.hostPlatform.system}.default
vim
unzip
python310 # Its python like come on
python310
usbutils
curlWithGnuTls
# Graphics Drivers
# System
mesa
vulkan-tools
# FileSystem Dependancies
gvfs
# C copmpiler
clang
# XDG Desktop Portal Etc
xdg-desktop-portal
xdg-desktop-portal-hyprland
# Other things (from gnome)
glib
gnutls
liblzf