2023-04-23 02:12:52 +05:30
|
|
|
|
# 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’).
|
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
{ config, lib, pkgs, blocklist-hosts, myName, myHostname, myTimezone, myLocale, myTheme, myBackgroundUrl, myBackgroundSha256, ... }:
|
2023-04-23 02:12:52 +05:30
|
|
|
|
{
|
|
|
|
|
imports =
|
2023-06-21 08:33:14 +05:30
|
|
|
|
[ ../../system/hardware-configuration.nix
|
2023-06-21 08:38:25 +05:30
|
|
|
|
../../system/hardware/power.nix
|
|
|
|
|
../../system/hardware/opengl.nix
|
|
|
|
|
../../system/hardware/printing.nix
|
|
|
|
|
#../../system/hardware/bluetooth.nix
|
|
|
|
|
#../../system/hardware/openrgb.nix
|
|
|
|
|
../../system/wm/xmonad.nix
|
|
|
|
|
../../system/app/flatpak.nix
|
|
|
|
|
../../system/app/gamemode.nix
|
|
|
|
|
../../system/security/doas.nix
|
|
|
|
|
../../system/security/gpg.nix
|
|
|
|
|
../../system/security/blocklist.nix
|
|
|
|
|
../../system/security/firewall.nix
|
|
|
|
|
../../system/security/openvpn.nix
|
2023-06-21 08:33:14 +05:30
|
|
|
|
../../system/style/stylix.nix
|
2023-04-23 02:12:52 +05:30
|
|
|
|
];
|
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# Fix nix path
|
2023-04-23 02:12:52 +05:30
|
|
|
|
nix.nixPath = [ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
|
|
|
|
"nixos-config=$HOME/dotfiles/system/configuration.nix"
|
|
|
|
|
"/nix/var/nix/profiles/per-user/root/channels"
|
|
|
|
|
];
|
2023-05-06 23:02:14 +05:30
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# Experimental features
|
2023-05-06 23:02:14 +05:30
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
2023-06-08 22:15:08 +05:30
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# Bless me father for I have sinned
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2023-05-24 05:26:09 +05:30
|
|
|
|
|
2023-05-24 07:18:47 +05:30
|
|
|
|
# Kernel modules
|
2023-06-21 08:38:25 +05:30
|
|
|
|
boot.kernelModules = [ "i2c-dev" "i2c-piix4" "cpufreq_powersave" ];
|
2023-05-24 07:18:47 +05:30
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# Bootloader
|
2023-04-23 02:12:52 +05:30
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# Networking
|
2023-06-21 04:01:49 +05:30
|
|
|
|
networking.hostName = myHostname; # Define your hostname.
|
2023-06-21 08:38:25 +05:30
|
|
|
|
networking.networkmanager.enable = true; # Use networkmanager
|
2023-04-23 02:12:52 +05:30
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# Timezone and locale
|
|
|
|
|
time.timeZone = myTimezone; # time zone
|
|
|
|
|
i18n.defaultLocale = myLocale;
|
2023-04-23 02:12:52 +05:30
|
|
|
|
i18n.extraLocaleSettings = {
|
2023-06-21 08:38:25 +05:30
|
|
|
|
LC_ADDRESS = myLocale;
|
|
|
|
|
LC_IDENTIFICATION = myLocale;
|
|
|
|
|
LC_MEASUREMENT = myLocale;
|
|
|
|
|
LC_MONETARY = myLocale;
|
|
|
|
|
LC_NAME = myLocale;
|
|
|
|
|
LC_NUMERIC = myLocale;
|
|
|
|
|
LC_PAPER = myLocale;
|
|
|
|
|
LC_TELEPHONE = myLocale;
|
|
|
|
|
LC_TIME = myLocale;
|
2023-04-23 02:12:52 +05:30
|
|
|
|
};
|
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# User account
|
2023-06-21 08:33:14 +05:30
|
|
|
|
users.users.${myName} = {
|
2023-04-23 02:12:52 +05:30
|
|
|
|
isNormalUser = true;
|
2023-06-06 00:43:39 +05:30
|
|
|
|
description = "Emmet";
|
2023-04-23 02:12:52 +05:30
|
|
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
|
|
|
packages = with pkgs; [];
|
2023-06-07 19:08:52 +05:30
|
|
|
|
uid = 1000;
|
2023-04-23 02:12:52 +05:30
|
|
|
|
};
|
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# System packages
|
2023-04-23 02:12:52 +05:30
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-06-21 08:38:25 +05:30
|
|
|
|
vim
|
2023-04-23 02:12:52 +05:30
|
|
|
|
wget
|
|
|
|
|
zsh
|
2023-05-08 06:12:10 +05:30
|
|
|
|
git
|
2023-04-23 02:12:52 +05:30
|
|
|
|
];
|
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# I use zsh btw
|
2023-04-23 02:12:52 +05:30
|
|
|
|
environment.shells = with pkgs; [ zsh ];
|
2023-06-21 08:38:25 +05:30
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
2023-05-08 04:17:40 +05:30
|
|
|
|
programs.zsh.enable = true;
|
2023-04-23 02:12:52 +05:30
|
|
|
|
|
2023-06-21 08:38:25 +05:30
|
|
|
|
# It is ok to leave this unchanged for compatibility purposes
|
|
|
|
|
system.stateVersion = "22.11";
|
2023-04-23 02:12:52 +05:30
|
|
|
|
|
|
|
|
|
}
|