2023-06-13 23:34:03 -04:00
|
|
|
{ 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
|
2023-06-13 23:34:03 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
2023-06-19 01:36:50 -04:00
|
|
|
layout = "ca";
|
2023-06-13 23:34:03 -04:00
|
|
|
displayManager = {
|
|
|
|
gdm.enable = true;
|
|
|
|
gdm.wayland = true;
|
2023-06-19 20:49:16 -04:00
|
|
|
sessionPackages = [ pkgs.hyprland pkgs.gnome.gnome-session.sessions ];
|
2023-06-13 23:34:03 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-19 20:49:16 -04:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2023-06-13 23:34:03 -04:00
|
|
|
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-13 23:34:03 -04:00
|
|
|
|
2023-06-19 19:27:38 -04:00
|
|
|
services.dbus.enable = true;
|
|
|
|
|
2023-06-13 23:34:03 -04:00
|
|
|
xdg.portal.enable = true;
|
2023-06-15 23:09:12 -04:00
|
|
|
xdg.portal.extraPortals = [
|
|
|
|
pkgs.xdg-desktop-portal-hyprland
|
|
|
|
];
|
2023-06-13 23:34:03 -04:00
|
|
|
services.flatpak.enable = true;
|
|
|
|
|
|
|
|
# Enable touchpad support (enabled default in most desktopManager).
|
|
|
|
# services.xserver.libinput.enable = true;
|
|
|
|
|
2023-06-13 23:36:06 -04:00
|
|
|
# Define a user account. Don't forget to set a password with 'passwd'.
|
2023-06-13 23:34:03 -04:00
|
|
|
users.users.matt = {
|
|
|
|
isNormalUser = true;
|
2023-06-15 17:03:09 -04:00
|
|
|
extraGroups = [ "wheel" "input" "adm" "mlocate" "video" ];
|
2023-06-13 23:34:03 -04:00
|
|
|
# packages = with pkgs; [
|
|
|
|
# firefox
|
|
|
|
# tree
|
|
|
|
# ];
|
|
|
|
};
|
2023-06-15 17:03:09 -04:00
|
|
|
|
2023-06-13 23:34:03 -04:00
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2023-06-19 20:49:16 -04:00
|
|
|
# List packages in root user PATH
|
2023-06-13 23:34:03 -04:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-06-15 23:09:12 -04:00
|
|
|
wl-clipboard
|
2023-06-13 23:34:03 -04:00
|
|
|
alsa-utils
|
|
|
|
wget
|
|
|
|
tree
|
|
|
|
rsync
|
|
|
|
killall
|
2023-06-19 20:49:16 -04:00
|
|
|
ripgrep-all
|
|
|
|
neovim # TODO: use nix
|
2023-06-13 23:34:03 -04:00
|
|
|
imagemagick
|
|
|
|
usbutils
|
2023-06-15 17:03:09 -04:00
|
|
|
evtest
|
2023-06-13 23:34:03 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
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" ];
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2023-06-15 17:03:09 -04:00
|
|
|
# TODO: see if setting them in Hyprland.nix works
|
2023-06-13 23:34:03 -04:00
|
|
|
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?
|
|
|
|
|
|
|
|
}
|