nix-config/hosts/buldak/configuration.nix

146 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.

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
config,
pkgs,
inputs,
...
}:
{
imports = [
./hardware-configuration.nix
../../shared/client/tailscale.nix
../../shared/client/niri.nix
../../shared/client/nh.nix
../../shared
./features
];
# Bootloader.
boot = {
plymouth = {
enable = true;
theme = "rings";
themePackages = with pkgs; [
# By default we would install all themes
plymouth-blahaj-theme
];
};
# Enable "Silent boot"
consoleLogLevel = 3;
initrd.verbose = false;
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"udev.log_priority=3"
"rd.systemd.show_status=auto"
];
# Hide the OS choice for bootloaders.
# It's still possible to open the bootloader list by pressing any key
# It will just not appear on screen unless a key is pressed
loader.timeout = 0;
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
};
boot.initrd.luks.devices."luks-d265e9b2-2ef5-445a-83f2-ec022e0eec7b".device =
"/dev/disk/by-uuid/d265e9b2-2ef5-445a-83f2-ec022e0eec7b";
networking.hostName = "buldak"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Paris";
# Select internationalisation properties.
i18n.defaultLocale = "fr_FR.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";
};
# Configure keymap in X11
services.xserver = {
layout = "fr";
xkbVariant = "";
};
# Configure console keymap
console.keyMap = "fr";
programs.zsh.enable = true;
environment.pathsToLink = [ "/share/zsh" ];
# Define a user account. Don't forget to set a password with passwd.
users.users.misschloe777 = {
isNormalUser = true;
description = "misschloe777";
shell = pkgs.zsh;
extraGroups = [
"networkmanager"
"wheel"
"audio"
"video"
"podman"
];
packages = with pkgs; [
inputs.zen-browser.packages."${system}".default
];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
poweralertd
matugen
];
nixpkgs.config.permittedInsecurePackages = [
"libsoup-2.74.3"
];
nix.package = pkgs.lixPackageSets.stable.lix;
# laptop stuff
services.thermald.enable = true;
programs.auto-cpufreq.enable = true;
programs.auto-cpufreq.settings = {
battery = {
governor = "powersave";
turbo = "auto";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
# 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.11"; # Did you read the comment?
}