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

27
flake.lock generated
View File

@@ -116,11 +116,11 @@
"nixpkgs": "nixpkgs_4" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1773279064, "lastModified": 1773964968,
"narHash": "sha256-BLcSfp2aNm+0oDoHbvTufBRS2XwKqbIeUOXD8t58efE=", "narHash": "sha256-/vojK9noVTM+aWl+gX/vFjREtYcp0TGflBmQ1B4oIIk=",
"owner": "Mjoyufull", "owner": "Mjoyufull",
"repo": "fsel", "repo": "fsel",
"rev": "7b38c6223eed6e509f98e066ff89f481bd1930d7", "rev": "c8f9b8080b2ea87d2c0fa6ea4d2bd6b96c154f38",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -282,11 +282,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1773222311, "lastModified": 1773964973,
"narHash": "sha256-BHoB/XpbqoZkVYZCfXJXfkR+GXFqwb/4zbWnOr2cRcU=", "narHash": "sha256-NV/J+tTER0P5iJhUDL/8HO5MDjDceLQPRUYgdmy5wXw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0590cd39f728e129122770c029970378a79d076a", "rev": "812b3986fd1568f7a858f97fcf425ad996ba7d25",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -365,10 +365,11 @@
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1772709070, "lastModified": 1774179420,
"narHash": "sha256-HXlGlbDVKMdw1ENgYu6gM3jyw+nPoam25SsgzRhtEG8=", "narHash": "sha256-RkiN/X22AfHQCkIm5y/4GjBc07pOjhAqMFvqIGTKyGE=",
"rev": "68a7427e800f07d09a85a6014006d67c9350eaeb", "ref": "refs/heads/main",
"revCount": 50, "rev": "1d69673e62cc5072543476f08df3f3432239d6d9",
"revCount": 53,
"type": "git", "type": "git",
"url": "file:///home/user01/.dotfiles/.config/nvim" "url": "file:///home/user01/.dotfiles/.config/nvim"
}, },
@@ -385,11 +386,11 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1771555910, "lastModified": 1773647611,
"narHash": "sha256-tTqkVD4c8JK5UILju9IF9cXa7eP1S+mehnjWmVHb3sA=", "narHash": "sha256-Dkb6ft4LNHiYpmzJ9O90Qg3Jv2VThtzlC88bIAgVTWM=",
"owner": "kuokuo123", "owner": "kuokuo123",
"repo": "otter-launcher", "repo": "otter-launcher",
"rev": "c07b437da5fd466d5eb511fc7a3a2b373c51747c", "rev": "5aea41193a8da76c4720ec11059d56eb2fd86de1",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -2,22 +2,24 @@
description = "Master flake for Voidarc nix config"; description = "Master flake for Voidarc nix config";
inputs = { inputs = {
# System
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
nvim-wrapped = {
sls-steam = { url = "git+file:///home/user01/.dotfiles/.config/nvim";
url = "github:AceSLS/SLSsteam"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# Apps
sls-steam.url = "github:AceSLS/SLSsteam";
chataigne.url = "./modules/chataigne"; chataigne.url = "./modules/chataigne";
nvim-wrapped.url = "git+file:///home/user01/.dotfiles/.config/nvim";
tree-sitter.url = "github:tree-sitter/tree-sitter?ref=8b8199775f96ca8642cf7860da46100875b38453";
# Utils
doot.url = "github:voidarclabs/nixos.doot"; doot.url = "github:voidarclabs/nixos.doot";
way-edges.url = "github:way-edges/way-edges"; way-edges.url = "github:way-edges/way-edges";
otter-launcher.url = "github:kuokuo123/otter-launcher"; otter-launcher.url = "github:kuokuo123/otter-launcher";
fsel.url = "github:Mjoyufull/fsel"; fsel.url = "github:Mjoyufull/fsel";
# Davinci-resolve
mesa-davinci.url = "github:nixos/nixpkgs?ref=599ddd2b79331c1e6153e1659bdaab65d62c4c82"; mesa-davinci.url = "github:nixos/nixpkgs?ref=599ddd2b79331c1e6153e1659bdaab65d62c4c82";
}; };