nixos-configs/nixos/configuration.nix

195 lines
4.9 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
2023-06-19 01:36:50 -04:00
./cfg/boot.nix
./cfg/security.nix
./cfg/extra-hardware.nix
2023-06-19 19:27:38 -04:00
./overlays/list.nix
./cfg/home-manager.nix
];
services.xserver = {
enable = true;
2023-06-19 01:36:50 -04:00
layout = "ca";
displayManager = {
gdm.enable = true;
gdm.wayland = true;
sessionPackages = [ pkgs.hyprland pkgs.gnome.gnome-session.sessions ];
};
};
services.locate = {
enable = true;
interval = "hourly";
prunePaths = [
"/tmp"
"/var/tmp"
"/var/cache"
"/var/lock"
"/var/run"
"/var/spool"
"/nix/var/log/nix"
"/proc"
];
};
programs.tmux = {
enable = true;
keyMode = "vi";
terminal = "screen-256color";
newSession = true;
historyLimit = 30000;
extraConfig = ''
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
set -g mouse on
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
'';
};
programs.git = { # TODO: make better config
enable = true;
lfs.enable = true;
};
programs.htop = {
enable = true;
};
programs.fzf = {
fuzzyCompletion = true;
keybindings = true;
};
networking.hostName = "wim";
networking.networkmanager.enable = true;
networking.networkmanager.wifi.backend = "iwd";
# Set your time zone.
time.timeZone = "America/Montreal";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8";
console = {
#font = "Lat2-Terminus16";
keyMap = "ca";
#useXkbConfig = true; # use xkbOptions in tty.
};
2023-06-15 23:09:12 -04:00
virtualisation = {
waydroid.enable = true;
lxd.enable = true;
};
2023-06-19 19:27:38 -04:00
services.dbus.enable = true;
xdg.portal.enable = true;
2023-06-15 23:09:12 -04:00
xdg.portal.extraPortals = [
pkgs.xdg-desktop-portal-hyprland
];
services.flatpak.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with 'passwd'.
users.users.matt = {
isNormalUser = true;
extraGroups = [ "wheel" "input" "adm" "mlocate" "video" ];
# packages = with pkgs; [
# firefox
# tree
# ];
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
# List packages in root user PATH
environment.systemPackages = with pkgs; [
2023-06-15 23:09:12 -04:00
wl-clipboard
alsa-utils
wget
tree
rsync
killall
ripgrep-all
neovim # TODO: use nix
imagemagick
usbutils
evtest
];
fonts = {
fontconfig = {
enable = true;
defaultFonts = {
#emoji = [ "Noto Color Emoji" ];
#monospace = [ "MesloLGS Nerd Font" ];
#sansSerif = [ "MesloLGS Nerd Font" ];
#serif = [ "MesloLGS Nerd Font" ];
};
};
fonts = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" "Go-Mono" "Iosevka" "NerdFontsSymbolsOnly" "SpaceMono" "Ubuntu" ]; })
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
font-awesome
meslo-lgs-nf
jetbrains-mono
#google-fonts
ubuntu_font_family
];
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
programs.waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
});
};
# TODO: see if setting them in Hyprland.nix works
environment.sessionVariables = {
GTK_THEME = "Lavanda-Dark";
QT_QPA_PLATFORMTHEME = "qt5ct";
QT_STYLE_OVERRIDE = "kvantum";
QT_FONT_DPI = "125";
};
environment.variables = {
GTK_THEME = "Lavanda-Dark";
QT_QPA_PLATFORMTHEME = "qt5ct";
QT_STYLE_OVERRIDE = "kvantum";
QT_FONT_DPI = "125";
};
# 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. It's 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?
}