added nix formatting
This commit is contained in:
121
common.nix
121
common.nix
@@ -1,26 +1,36 @@
|
||||
{ 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" ];
|
||||
# Allow Nix command and flakes (ofc)
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
# Allow unfree packages
|
||||
# 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")
|
||||
{ };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Boot
|
||||
# Boot
|
||||
boot = {
|
||||
loader = {
|
||||
timeout = 2;
|
||||
@@ -37,7 +47,7 @@
|
||||
enable = true;
|
||||
theme = "catppuccin-mocha";
|
||||
themePackages = with pkgs; [
|
||||
# By default we would install all themes
|
||||
# By default we would install all themes
|
||||
(catppuccin-plymouth.override {
|
||||
variant = "mocha";
|
||||
})
|
||||
@@ -45,29 +55,18 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Use latest kernel.
|
||||
# Use latest kernel.
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# Networking settings
|
||||
# networking.hostName = "mobile02"; # Define your hostname.
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Enable bluetooth
|
||||
# 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.
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/London";
|
||||
|
||||
# Locale
|
||||
# Locale
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_GB.UTF-8";
|
||||
@@ -81,26 +80,20 @@
|
||||
LC_TIME = "en_GB.UTF-8";
|
||||
};
|
||||
|
||||
# Windowing Systems
|
||||
# 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;
|
||||
|
||||
# Keymap
|
||||
# Keymap
|
||||
services.xserver.xkb = {
|
||||
layout = "gb";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "uk";
|
||||
|
||||
# Pipewire
|
||||
# Pipewire
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
@@ -110,14 +103,20 @@
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
# Local User
|
||||
# Local User
|
||||
users.users.user01 = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
description = "user01";
|
||||
extraGroups = [ "input" "bluetooth" "networkmanager" "docker" "wheel" ];
|
||||
extraGroups = [
|
||||
"input"
|
||||
"bluetooth"
|
||||
"networkmanager"
|
||||
"docker"
|
||||
"wheel"
|
||||
];
|
||||
packages = with pkgs; [
|
||||
# Ricing
|
||||
# Ricing
|
||||
bibata-cursors
|
||||
catppuccin-gtk
|
||||
# inputs.way-edges.packages.${pkgs.system}.way-edges
|
||||
@@ -131,7 +130,7 @@
|
||||
oh-my-posh
|
||||
grimblast
|
||||
|
||||
# Terminal
|
||||
# Terminal
|
||||
carapace
|
||||
kitty
|
||||
github-cli
|
||||
@@ -151,13 +150,13 @@
|
||||
lazygit
|
||||
tailscale
|
||||
|
||||
# Thunar stuff
|
||||
# Thunar stuff
|
||||
xfce.thunar
|
||||
xfce.thunar-volman
|
||||
xfce.thunar-vcs-plugin
|
||||
xfce.thunar-archive-plugin
|
||||
|
||||
# Apps
|
||||
# Apps
|
||||
pavucontrol
|
||||
firefox
|
||||
tor-browser
|
||||
@@ -173,7 +172,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
# Zsh
|
||||
# Zsh
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
@@ -183,15 +182,19 @@
|
||||
histSize = 10000;
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" "dirhistory" "history" ];
|
||||
plugins = [
|
||||
"git"
|
||||
"dirhistory"
|
||||
"history"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# User programs
|
||||
# User programs
|
||||
programs.steam.enable = true;
|
||||
programs.walker.enable = true;
|
||||
|
||||
# User Services
|
||||
# User Services
|
||||
services.gvfs.enable = true;
|
||||
services.tailscale.enable = true;
|
||||
services.printing.enable = true;
|
||||
@@ -199,7 +202,7 @@
|
||||
services.openssh.enable = true;
|
||||
services.elephant.enable = true;
|
||||
|
||||
# Fonts
|
||||
# Fonts
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.fira-mono
|
||||
];
|
||||
@@ -207,52 +210,49 @@
|
||||
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
|
||||
unzip
|
||||
python310 # Its python like come on
|
||||
|
||||
# Graphics Drivers
|
||||
# Graphics Drivers
|
||||
mesa
|
||||
vulkan-tools
|
||||
|
||||
# FileSystem Dependancies
|
||||
# FileSystem Dependancies
|
||||
gvfs
|
||||
|
||||
# C copmpiler
|
||||
# C copmpiler
|
||||
clang
|
||||
|
||||
# XDG Desktop Portal Etc
|
||||
# XDG Desktop Portal Etc
|
||||
xdg-desktop-portal
|
||||
xdg-desktop-portal-hyprland
|
||||
|
||||
# Other things (from gnome)
|
||||
# Other things (from gnome)
|
||||
glib
|
||||
gnutls
|
||||
appimage-run
|
||||
@@ -260,8 +260,7 @@
|
||||
gsettings-desktop-schemas
|
||||
];
|
||||
|
||||
# The comment
|
||||
# The comment
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
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
|
||||
# Local User
|
||||
users.users.user01 = {
|
||||
extraGroups = [ ];
|
||||
packages = with pkgs; [
|
||||
# Ricing
|
||||
|
||||
# Terminal
|
||||
|
||||
# Apps
|
||||
bottles
|
||||
ferdium
|
||||
delfin
|
||||
jellyfin-tui
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
15
flake.nix
15
flake.nix
@@ -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;
|
||||
@@ -22,7 +30,7 @@
|
||||
{
|
||||
nixosConfigurations.mobile02 = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {inherit inputs;};
|
||||
specialArgs = { inherit inputs; };
|
||||
|
||||
modules = [
|
||||
./configuration-laptop.nix
|
||||
@@ -35,7 +43,7 @@
|
||||
};
|
||||
nixosConfigurations.hackstation = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {inherit inputs;};
|
||||
specialArgs = { inherit inputs; };
|
||||
|
||||
modules = [
|
||||
./configuration-pc.nix
|
||||
@@ -48,4 +56,3 @@
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user