nixos-config/profiles/personal/configuration.nix

90 lines
2.6 KiB
Nix
Raw Normal View History

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).
{ config, lib, pkgs, blocklist-hosts, myName, myHostname, myTimezone, myLocale, myTheme, myBackgroundUrl, myBackgroundSha256, ... }:
2023-04-23 02:12:52 +05:30
{
imports =
[ ../../system/hardware-configuration.nix
../../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
../../system/style/stylix.nix
2023-04-23 02:12:52 +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"
];
# Experimental features
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# 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
boot.kernelModules = [ "i2c-dev" "i2c-piix4" "cpufreq_powersave" ];
2023-05-24 07:18:47 +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";
# Networking
2023-06-21 04:01:49 +05:30
networking.hostName = myHostname; # Define your hostname.
networking.networkmanager.enable = true; # Use networkmanager
2023-04-23 02:12:52 +05:30
# Timezone and locale
time.timeZone = myTimezone; # time zone
i18n.defaultLocale = myLocale;
2023-04-23 02:12:52 +05:30
i18n.extraLocaleSettings = {
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
};
# User account
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
};
# System packages
2023-04-23 02:12:52 +05:30
environment.systemPackages = with pkgs; [
vim
2023-04-23 02:12:52 +05:30
wget
zsh
git
2023-04-23 02:12:52 +05:30
];
# I use zsh btw
2023-04-23 02:12:52 +05:30
environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh;
2023-05-08 04:17:40 +05:30
programs.zsh.enable = true;
2023-04-23 02:12:52 +05:30
# It is ok to leave this unchanged for compatibility purposes
system.stateVersion = "22.11";
2023-04-23 02:12:52 +05:30
}