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
inputs.walker.nixosModules.default
];
# Allow Nix command and flakes (ofc)
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Allow unfree packages
nixpkgs = {
config = {
allowUnfree = true;
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.
boot.kernelPackages = pkgs.linuxPackages_latest;
# Networking settings
# networking.hostName = "mobile02"; # Define your hostname.
networking.networkmanager.enable = true;
# Enable bluetooth
hardware.bluetooth.enable = true;
# # Opengl and vulkan
# hardware.graphics = {
# enable = true;
# extraPackages = with pkgs; [
# intel-vaapi-driver
# libva-vdpau-driver
# ];
# };
# Set your time zone.
time.timeZone = "Europe/London";
@@ -84,12 +83,6 @@
# Windowing Systems
services.xserver.enable = true;
# services.displayManager.sddm = {
# enable = true;
# theme = "catppuccin-mocha-mauve";
# package = pkgs.kdePackages.sddm;
# };
programs.hyprland.enable = true;
security.polkit.enable = true;
@@ -115,7 +108,13 @@
isNormalUser = true;
shell = pkgs.zsh;
description = "user01";
extraGroups = [ "input" "bluetooth" "networkmanager" "docker" "wheel" ];
extraGroups = [
"input"
"bluetooth"
"networkmanager"
"docker"
"wheel"
];
packages = with pkgs; [
# Ricing
bibata-cursors
@@ -183,7 +182,11 @@
histSize = 10000;
ohMyZsh = {
enable = true;
plugins = [ "git" "dirhistory" "history" ];
plugins = [
"git"
"dirhistory"
"history"
];
};
};
@@ -207,31 +210,28 @@
fonts.fontconfig.defaultFonts.serif = [ "Fira Mono Nerd Font" ];
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 {
name = "nvim-with-lsp";
paths = [ pkgs.neovim ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/nvim \
--prefix PATH : ${pkgs.lib.makeBinPath [
--prefix PATH : ${
pkgs.lib.makeBinPath [
pkgs.lua-language-server
pkgs.vscode-langservers-extracted
pkgs.emmet-ls
pkgs.prettier
pkgs.black
pkgs.nixfmt
pkgs.ripgrep
pkgs.nil
pkgs.nixd
pkgs.typescript-language-server
pkgs.tailwindcss-language-server
pkgs.stylua
]}
]
}
'';
})
vim
@@ -264,4 +264,3 @@
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
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-vaapi-driver
libva-vdpau-driver
];
enable32Bit = true;
};
services.displayManager.sddm = {
enable = true;
services.displayManager = {
autoLogin.enable = true;
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
users.users.user01 = {
extraGroups = [ ];
packages = with pkgs; [
# Ricing
# Terminal
# Apps
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";
system = stdenv.hostPlatform.system;
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
@@ -48,4 +56,3 @@
};
};
}