added nix formatting

This commit is contained in:
voidarclabs
2026-01-04 16:46:33 +00:00
parent c7b96e7d96
commit caf6b24398
3 changed files with 305 additions and 307 deletions

View File

@@ -1,26 +1,36 @@
{ config, lib, pkgs, inputs, ... }: {
config,
lib,
pkgs,
inputs,
...
}:
{ {
imports = imports = [
[
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
inputs.walker.nixosModules.default inputs.walker.nixosModules.default
]; ];
# Allow Nix command and flakes (ofc) # Allow Nix command and flakes (ofc)
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Allow unfree packages # Allow unfree packages
nixpkgs = { nixpkgs = {
config = { config = {
allowUnfree = true; allowUnfree = true;
packageOverrides = pkgs: { packageOverrides = pkgs: {
unstable = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz") {}; unstable =
import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz")
{ };
}; };
}; };
}; };
# Boot # Boot
boot = { boot = {
loader = { loader = {
timeout = 2; timeout = 2;
@@ -37,7 +47,7 @@
enable = true; enable = true;
theme = "catppuccin-mocha"; theme = "catppuccin-mocha";
themePackages = with pkgs; [ themePackages = with pkgs; [
# By default we would install all themes # By default we would install all themes
(catppuccin-plymouth.override { (catppuccin-plymouth.override {
variant = "mocha"; variant = "mocha";
}) })
@@ -45,29 +55,18 @@
}; };
}; };
# Use latest kernel. # Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
# Networking settings
# networking.hostName = "mobile02"; # Define your hostname.
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# Enable bluetooth # Enable bluetooth
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
# # Opengl and vulkan # Set your time zone.
# hardware.graphics = {
# enable = true;
# extraPackages = with pkgs; [
# intel-vaapi-driver
# libva-vdpau-driver
# ];
# };
# Set your time zone.
time.timeZone = "Europe/London"; time.timeZone = "Europe/London";
# Locale # Locale
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";
@@ -81,26 +80,20 @@
LC_TIME = "en_GB.UTF-8"; LC_TIME = "en_GB.UTF-8";
}; };
# Windowing Systems # Windowing Systems
services.xserver.enable = true; services.xserver.enable = true;
# services.displayManager.sddm = {
# enable = true;
# theme = "catppuccin-mocha-mauve";
# package = pkgs.kdePackages.sddm;
# };
programs.hyprland.enable = true; programs.hyprland.enable = true;
security.polkit.enable = true; security.polkit.enable = true;
# Keymap # Keymap
services.xserver.xkb = { services.xserver.xkb = {
layout = "gb"; layout = "gb";
variant = ""; variant = "";
}; };
console.keyMap = "uk"; console.keyMap = "uk";
# Pipewire # Pipewire
services.pulseaudio.enable = false; services.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
@@ -110,14 +103,20 @@
pulse.enable = true; pulse.enable = true;
}; };
# Local User # Local User
users.users.user01 = { users.users.user01 = {
isNormalUser = true; isNormalUser = true;
shell = pkgs.zsh; shell = pkgs.zsh;
description = "user01"; description = "user01";
extraGroups = [ "input" "bluetooth" "networkmanager" "docker" "wheel" ]; extraGroups = [
"input"
"bluetooth"
"networkmanager"
"docker"
"wheel"
];
packages = with pkgs; [ packages = with pkgs; [
# Ricing # Ricing
bibata-cursors bibata-cursors
catppuccin-gtk catppuccin-gtk
# inputs.way-edges.packages.${pkgs.system}.way-edges # inputs.way-edges.packages.${pkgs.system}.way-edges
@@ -131,7 +130,7 @@
oh-my-posh oh-my-posh
grimblast grimblast
# Terminal # Terminal
carapace carapace
kitty kitty
github-cli github-cli
@@ -151,13 +150,13 @@
lazygit lazygit
tailscale tailscale
# Thunar stuff # Thunar stuff
xfce.thunar xfce.thunar
xfce.thunar-volman xfce.thunar-volman
xfce.thunar-vcs-plugin xfce.thunar-vcs-plugin
xfce.thunar-archive-plugin xfce.thunar-archive-plugin
# Apps # Apps
pavucontrol pavucontrol
firefox firefox
tor-browser tor-browser
@@ -173,7 +172,7 @@
]; ];
}; };
# Zsh # Zsh
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
@@ -183,15 +182,19 @@
histSize = 10000; histSize = 10000;
ohMyZsh = { ohMyZsh = {
enable = true; enable = true;
plugins = [ "git" "dirhistory" "history" ]; plugins = [
"git"
"dirhistory"
"history"
];
}; };
}; };
# User programs # User programs
programs.steam.enable = true; programs.steam.enable = true;
programs.walker.enable = true; programs.walker.enable = true;
# User Services # User Services
services.gvfs.enable = true; services.gvfs.enable = true;
services.tailscale.enable = true; services.tailscale.enable = true;
services.printing.enable = true; services.printing.enable = true;
@@ -199,7 +202,7 @@
services.openssh.enable = true; services.openssh.enable = true;
services.elephant.enable = true; services.elephant.enable = true;
# Fonts # Fonts
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
nerd-fonts.fira-mono nerd-fonts.fira-mono
]; ];
@@ -207,52 +210,49 @@
fonts.fontconfig.defaultFonts.serif = [ "Fira Mono Nerd Font" ]; fonts.fontconfig.defaultFonts.serif = [ "Fira Mono Nerd Font" ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Catppuccin sddm theme
# (pkgs.catppuccin-sddm.override {
# flavor = "mocha";
# font = "Fira Mono Nerd Font";
# fontSize = "11";
# background = null;
# })
# Terminal things
(pkgs.symlinkJoin { (pkgs.symlinkJoin {
name = "nvim-with-lsp"; name = "nvim-with-lsp";
paths = [ pkgs.neovim ]; paths = [ pkgs.neovim ];
buildInputs = [ pkgs.makeWrapper ]; buildInputs = [ pkgs.makeWrapper ];
postBuild = '' postBuild = ''
wrapProgram $out/bin/nvim \ wrapProgram $out/bin/nvim \
--prefix PATH : ${pkgs.lib.makeBinPath [ --prefix PATH : ${
pkgs.lib.makeBinPath [
pkgs.lua-language-server pkgs.lua-language-server
pkgs.vscode-langservers-extracted pkgs.vscode-langservers-extracted
pkgs.emmet-ls pkgs.emmet-ls
pkgs.prettier
pkgs.black
pkgs.nixfmt
pkgs.ripgrep pkgs.ripgrep
pkgs.nil pkgs.nil
pkgs.nixd pkgs.nixd
pkgs.typescript-language-server pkgs.typescript-language-server
pkgs.tailwindcss-language-server pkgs.tailwindcss-language-server
pkgs.stylua pkgs.stylua
]} ]
}
''; '';
}) })
vim vim
unzip unzip
python310 # Its python like come on python310 # Its python like come on
# Graphics Drivers # Graphics Drivers
mesa mesa
vulkan-tools vulkan-tools
# FileSystem Dependancies # FileSystem Dependancies
gvfs gvfs
# C copmpiler # C copmpiler
clang clang
# XDG Desktop Portal Etc # XDG Desktop Portal Etc
xdg-desktop-portal xdg-desktop-portal
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
# Other things (from gnome) # Other things (from gnome)
glib glib
gnutls gnutls
appimage-run appimage-run
@@ -260,8 +260,7 @@
gsettings-desktop-schemas gsettings-desktop-schemas
]; ];
# The comment # The comment
system.stateVersion = "25.05"; # Did you read the comment? system.stateVersion = "25.05"; # Did you read the comment?
} }

View File

@@ -1,44 +1,36 @@
{ config, lib, pkgs, inputs, ... }: {
config,
lib,
pkgs,
inputs,
...
}:
{ {
networking.hostName = "HACKSTATION"; # Define your hostname. networking.hostName = "HACKSTATION";
# Opengl and vulkan
# Opengl and vulkan
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;
extraPackages = with pkgs; [ enable32Bit = true;
intel-vaapi-driver
libva-vdpau-driver
];
}; };
services.displayManager.sddm = { services.displayManager = {
enable = true;
autoLogin.enable = true; autoLogin.enable = true;
autoLogin.user = "user01"; autoLogin.user = "user01";
sddm = {
enable = true;
};
}; };
services.getty.autologinUser = "user01"; # Local User
# Catppuccin sddm theme
# (pkgs.catppuccin-sddm.override {
# flavor = "mocha";
# font = "Fira Mono Nerd Font";
# fontSize = "11";
# background = null;
# })
# Local User
users.users.user01 = { users.users.user01 = {
extraGroups = [ ]; extraGroups = [ ];
packages = with pkgs; [ packages = with pkgs; [
# Ricing
# Terminal
# Apps
bottles bottles
ferdium
delfin
jellyfin-tui
]; ];
}; };

View File

@@ -14,7 +14,15 @@
}; };
}; };
outputs = { self, doot, chataigne, nixpkgs, ... }@inputs: let outputs =
{
self,
doot,
chataigne,
nixpkgs,
...
}@inputs:
let
stdenv.hostPlatform.system = "x86_64-linux"; stdenv.hostPlatform.system = "x86_64-linux";
system = stdenv.hostPlatform.system; system = stdenv.hostPlatform.system;
hardwareConfig = import /etc/nixos/hardware-configuration.nix; hardwareConfig = import /etc/nixos/hardware-configuration.nix;
@@ -22,7 +30,7 @@
{ {
nixosConfigurations.mobile02 = nixpkgs.lib.nixosSystem { nixosConfigurations.mobile02 = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = {inherit inputs;}; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration-laptop.nix ./configuration-laptop.nix
@@ -35,7 +43,7 @@
}; };
nixosConfigurations.hackstation = nixpkgs.lib.nixosSystem { nixosConfigurations.hackstation = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = {inherit inputs;}; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration-pc.nix ./configuration-pc.nix
@@ -48,4 +56,3 @@
}; };
}; };
} }