2023-06-13 23:34:03 -04:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
2023-06-15 17:03:09 -04:00
|
|
|
./cfg/home-manager.nix
|
2023-06-19 01:36:50 -04:00
|
|
|
./cfg/boot.nix
|
|
|
|
./cfg/security.nix
|
|
|
|
./cfg/extra-hardware.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;
|
|
|
|
sessionPackages = [ pkgs.hyprland ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
# $ nix search wget
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-06-15 23:09:12 -04:00
|
|
|
xorg.xhost
|
|
|
|
wl-clipboard
|
2023-06-13 23:34:03 -04:00
|
|
|
brightnessctl
|
|
|
|
pulseaudio
|
|
|
|
alsa-utils
|
|
|
|
wget
|
|
|
|
tree
|
|
|
|
mlocate
|
|
|
|
gcc
|
|
|
|
rsync
|
|
|
|
tmux
|
|
|
|
git
|
|
|
|
git-lfs
|
|
|
|
killall
|
|
|
|
htop
|
|
|
|
fzf
|
|
|
|
jq
|
|
|
|
ripgrep
|
|
|
|
python3
|
|
|
|
neovim
|
|
|
|
gnome3.adwaita-icon-theme
|
|
|
|
xorg.xcursorthemes
|
|
|
|
imagemagick
|
|
|
|
usbutils
|
|
|
|
catppuccin-plymouth
|
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?
|
|
|
|
|
|
|
|
}
|