mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
159 lines
3.1 KiB
Nix
159 lines
3.1 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
imports =
|
|
[ # Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
./modules/boot.nix
|
|
./modules/nvidia.nix
|
|
./modules/services.nix
|
|
./modules/styling.nix
|
|
];
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 1w";
|
|
};
|
|
|
|
# Remove old gtkrc file, otherwise it will not work
|
|
system.userActivationScripts = {
|
|
removeConflictingFiles = {
|
|
text = ''
|
|
rm -f /home/r3ddy/.gtkrc-2.0.backup
|
|
'';
|
|
};
|
|
};
|
|
|
|
networking.hostName = "nixos"; # Define your hostname.
|
|
|
|
networking.networkmanager.enable = true;
|
|
networking.firewall.allowedUDPPorts = [ 25565 ];
|
|
networking.firewall.allowedTCPPorts = [ 25565 ];
|
|
hardware.bluetooth.enable = true;
|
|
hardware.bluetooth.powerOnBoot = true;
|
|
|
|
time.timeZone = "Europe/Rome";
|
|
|
|
# Select internationalisation properties.
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "it_IT.UTF-8";
|
|
LC_IDENTIFICATION = "it_IT.UTF-8";
|
|
LC_MEASUREMENT = "it_IT.UTF-8";
|
|
LC_MONETARY = "it_IT.UTF-8";
|
|
LC_NAME = "it_IT.UTF-8";
|
|
LC_NUMERIC = "it_IT.UTF-8";
|
|
LC_PAPER = "it_IT.UTF-8";
|
|
LC_TELEPHONE = "it_IT.UTF-8";
|
|
LC_TIME = "it_IT.UTF-8";
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
NIXOS_OZONE_WL = "1"; # Use Wayland when possible
|
|
GOPATH = "$HOME/.go";
|
|
};
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
services.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
|
|
programs.fish.enable = true; # This must be true before initializing my user
|
|
users.users.r3ddy = {
|
|
isNormalUser = true;
|
|
description = "Patrick Canal";
|
|
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
|
shell = pkgs.fish;
|
|
};
|
|
|
|
fonts.packages = with pkgs; [
|
|
nerd-fonts.jetbrains-mono
|
|
];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
# CLI utils
|
|
appimage-run
|
|
btop
|
|
busybox
|
|
cmake
|
|
distrobox
|
|
docker
|
|
fish
|
|
fzf
|
|
gcc
|
|
git
|
|
gnumake
|
|
htop
|
|
jq
|
|
killall
|
|
md2pdf
|
|
python3
|
|
ripgrep
|
|
tree
|
|
unzip
|
|
wget
|
|
wl-clipboard
|
|
xdotool
|
|
xorg.xwininfo
|
|
yad
|
|
zip
|
|
zoxide
|
|
zulu
|
|
|
|
# Man pages
|
|
man-pages
|
|
|
|
vim # The only and one great editor
|
|
neovim # The only and one great editor improved even further
|
|
|
|
# Video card
|
|
vulkan-tools
|
|
|
|
# Gaming
|
|
dolphin-emu
|
|
gamemode
|
|
gamescope
|
|
heroic
|
|
mangohud
|
|
prismlauncher
|
|
steam
|
|
vesktop
|
|
|
|
# Desktop utils
|
|
brave
|
|
kitty
|
|
mpv
|
|
xdg-desktop-portal
|
|
xdg-desktop-portal-gtk
|
|
xdg-desktop-portal-kde
|
|
|
|
# GUI applications
|
|
baobab
|
|
# ciscoPacketTracer8 # Every time this application fucks up
|
|
libreoffice
|
|
telegram-desktop
|
|
|
|
# LSPs
|
|
gopls # .go
|
|
nil # .nix
|
|
# luajitPackages.lua-lsp # .lua
|
|
jdt-language-server # .java
|
|
];
|
|
|
|
programs.steam.enable = true;
|
|
programs.steam.remotePlay.openFirewall = true;
|
|
virtualisation.podman.enable = true;
|
|
virtualisation.podman.dockerCompat = true;
|
|
virtualisation.vmware.host.enable = true;
|
|
# virtualisation.virtualbox.host.enable = true;
|
|
# virtualisation.virtualbox.host.enableExtensionPack = true;
|
|
# users.extraGroups.vboxusers.members = [ "r3ddy" ];
|
|
|
|
system.stateVersion = "24.05"; # Did you read the comment?
|
|
}
|