# 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, ... }:
let
user="justin";
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# <home-manager/nixos>
];
# Bootloader.
# boot.loader.systemd-boot.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.devices = [ "nodev" ];
boot.loader.grub.efiSupport = true;
boot.loader.grub.useOSProber = true;
boot.loader.grub.extraEntries = ''
menuentry 'Arch Linux' {
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --no-floppy --fs-uuid --set=root 42B8-29F3
chainloader /EFI/Arch/grubx64.efi
}
'';
networking.hostName = "fibonacci"; # Define your hostname.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
networking.wireless.enable = false; #Enables wpa_supplicant
# Set your time zone.
time.timeZone = "Asia/Manila";
# Select internationalisation properties.
i18n.defaultLocale = "en_PH.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "fil_PH";
LC_IDENTIFICATION = "fil_PH";
LC_MEASUREMENT = "fil_PH";
LC_MONETARY = "fil_PH";
LC_NAME = "fil_PH";
LC_NUMERIC = "fil_PH";
LC_PAPER = "fil_PH";
LC_TELEPHONE = "fil_PH";
LC_TIME = "fil_PH";
};
services.xserver = {
enable = true;
layout = "us";
desktopManager.plasma5.enable = true;
windowManager.qtile = {
enable = true;
backend = "x11";
extraPackages = python3Packages: with python3Packages; [
qtile-extras
psutil
dbus-python
pyxdg
mpd2
dateutil
keyring
];
};
displayManager = {
lightdm.enable = true;
# ssdm.enable = true # plasma's default display manager
defaultSession = "none+qtile"; # plasma or none+qtile
};
};
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.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.${user} = {
isNormalUser = true;
description = "${user}";
extraGroups = [ "networkmanager" "wheel" ];
initialPassword = "password";
packages = with pkgs; [
firefox
kate
# thunderbird
];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
grub2
nm-tray
joplin-desktop
brave
nitrogen
neofetch
# qtile-unwrapped
# python310Packages.setuptools
# python310Packages.qtile-extras
# psutils
# python310Packages.dbus-python
# python310Packages.pyxdg
# python310Packages.mpd2
# python310Packages.keyring
# dateutils
# python3Packages.qtile-extras
xfce.thunar
rofi
vlc
dunst
clementine
filezilla
qbittorrent
picom-jonaburg
picom
zoom-us
alacritty
git
direnv
arandr
vim
wget
discord
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
emacs
rofi
dmenu
trayer
htop
feh
networkmanagerapplet
(appimageTools.wrapType2 {
name = "everdo";
src = fetchurl {
url = "https://release.everdo.net/1.8.5/Everdo-1.8.5.AppImage";
sha256 = "sha256-/DZ6CCJOS/lm5hzBailLOtrUDRyOEzVBDKwYmlFpsU8=";
};
extraPkgs = pkgs: with pkgs; [ ];
})
];
fonts.fonts = with pkgs; [
fantasque-sans-mono
nerdfonts
font-awesome
];
# 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;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Nix daemon config
nix = {
# Automate garbage collection
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# Flakes settings
package = pkgs.nixVersions.unstable; #pkgs.nixFlakes
extraOptions = "experimental-features = nix-command flakes";
# registry.nixpkgs.flake = inputs.nixpkgs;
settings = {
# Automate `nix store --optimise`
auto-optimise-store = true;
# Required by Cachix to be used as non-root user
# trusted-users = [ "root" "justin" ];
#experimental-features = [ "nix-command" "flakes" ];
#warn-dirty = false;
# Avoid unwanted garbage collection when using nix-direnv
keep-outputs = true;
keep-derivations = true;
};
};
system = {
autoUpgrade = {
enable = true;
channel = "https://nixos.org/channels/nixos-unstable";
};
};
system.stateVersion = "22.11";
}