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,21 +1,31 @@
{ 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")
{ };
}; };
}; };
}; };
@@ -48,22 +58,11 @@
# 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
# hardware.graphics = {
# enable = true;
# extraPackages = with pkgs; [
# intel-vaapi-driver
# libva-vdpau-driver
# ];
# };
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/London"; time.timeZone = "Europe/London";
@@ -84,12 +83,6 @@
# 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;
@@ -115,7 +108,13 @@
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
@@ -183,7 +182,11 @@
histSize = 10000; histSize = 10000;
ohMyZsh = { ohMyZsh = {
enable = true; enable = true;
plugins = [ "git" "dirhistory" "history" ]; plugins = [
"git"
"dirhistory"
"history"
];
}; };
}; };
@@ -207,31 +210,28 @@
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
@@ -264,4 +264,3 @@
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";
# Catppuccin sddm theme
# (pkgs.catppuccin-sddm.override {
# flavor = "mocha";
# font = "Fira Mono Nerd Font";
# fontSize = "11";
# background = null;
# })
# Local User # 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;
@@ -48,4 +56,3 @@
}; };
}; };
} }