flake/common.nix

176 lines
3.7 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
pkgs,
inputs,
...
}: {
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
hardware = {
opengl.enable = true;
pulseaudio.enable = false;
};
sound.enable = true;
services = {
# apparently needed for mesa
xserver = {
enable = true;
displayManager = {
lightdm.enable = false;
gdm = {
enable = true;
wayland = true;
};
defaultSession = "hyprland";
};
};
printing.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
};
udisks2.enable = true;
gvfs.enable = true;
gnome.gnome-keyring.enable = true;
};
xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
};
mime.enable = true;
icons.enable = true;
};
networking.networkmanager.enable = true;
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8";
LC_IDENTIFICATION = "fr_FR.UTF-8";
LC_MEASUREMENT = "fr_FR.UTF-8";
LC_MONETARY = "fr_FR.UTF-8";
LC_NAME = "fr_FR.UTF-8";
LC_NUMERIC = "fr_FR.UTF-8";
LC_PAPER = "fr_FR.UTF-8";
LC_TELEPHONE = "fr_FR.UTF-8";
LC_TIME = "fr_FR.UTF-8";
};
console.keyMap = "fr";
security.rtkit.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.leo = {
isNormalUser = true;
description = "leo";
extraGroups = ["networkmanager" "wheel" "video"];
shell = pkgs.fish;
packages = with pkgs; [
firefox
kitty
chezmoi
starship
waybar
rofi-wayland
hyprpaper
swappy
swayidle
wl-clipboard
cliphist
font-manager
polkit_gnome
nwg-look
(catppuccin-gtk.override {
variant = "macchiato";
accents = ["sky" "sapphire"];
})
jetbrains.idea-ultimate
mold
sccache
pavucontrol
obs-studio
mpv
vscode
nil
glfw-wayland-minecraft
(prismlauncher.override {
jdks = [temurin-bin-17];
})
vesktop
grimblast
playerctl
inputs.getchvim.packages.${pkgs.stdenv.hostPlatform.system}.default
mate.eom
osu-lazer-bin
];
};
programs = {
gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "gnome3";
};
hyprland.enable = true;
fish.enable = true;
command-not-found.enable = false;
nix-index = {
enable = true;
enableFishIntegration = true;
};
steam.enable = true;
seahorse.enable = true;
thunar = {
enable = true;
plugins = with pkgs.xfce; [thunar-volman thunar-archive-plugin];
};
};
fonts.packages = with pkgs; [
iosevka
jetbrains-mono
cantarell-fonts
(nerdfonts.override {fonts = ["Iosevka" "JetBrainsMono"];})
];
environment.systemPackages = with pkgs; [
neovim
git
];
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["nix-command" "flakes"];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
}