nixos-config/profiles/work/configuration.nix

91 lines
2.6 KiB
Nix
Raw Normal View History

2023-06-21 20:03:51 +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, username, name, hostname, timezone, locale, wm, theme, ... }:
2023-06-21 20:03:51 +05:30
{
imports =
[ ../../system/hardware-configuration.nix
2023-08-12 00:57:02 +05:30
../../system/hardware/kernel.nix # Kernel config
../../system/hardware/power.nix # Power management
2023-06-21 20:03:51 +05:30
../../system/hardware/opengl.nix
../../system/hardware/printing.nix
../../system/hardware/bluetooth.nix
(./. + "../../../system/wm"+("/"+wm)+".nix") # My window manager
2023-06-21 20:03:51 +05:30
../../system/app/flatpak.nix
../../system/security/doas.nix
../../system/security/gpg.nix
../../system/security/blocklist.nix
../../system/security/firewall.nix
2023-07-31 20:15:45 +05:30
../../system/security/firejail.nix
2023-06-21 20:03:51 +05:30
../../system/security/openvpn.nix
../../system/style/stylix.nix
];
# Fix nix path
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" ];
# I'm sorry Stallman-taichou
nixpkgs.config.allowUnfree = true;
# Kernel modules
boot.kernelModules = [ "i2c-dev" "i2c-piix4" "cpufreq_powersave" ];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Networking
networking.hostName = hostname; # Define your hostname.
2023-06-21 20:03:51 +05:30
networking.networkmanager.enable = true; # Use networkmanager
# Timezone and locale
time.timeZone = timezone; # time zone
i18n.defaultLocale = locale;
2023-06-21 20:03:51 +05:30
i18n.extraLocaleSettings = {
LC_ADDRESS = locale;
LC_IDENTIFICATION = locale;
LC_MEASUREMENT = locale;
LC_MONETARY = locale;
LC_NAME = locale;
LC_NUMERIC = locale;
LC_PAPER = locale;
LC_TELEPHONE = locale;
LC_TIME = locale;
2023-06-21 20:03:51 +05:30
};
# User account
users.users.${username} = {
2023-06-21 20:03:51 +05:30
isNormalUser = true;
description = name;
2023-06-21 20:03:51 +05:30
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
uid = 1000;
};
# System packages
environment.systemPackages = with pkgs; [
vim
wget
zsh
git
2023-07-14 23:47:10 +05:30
cryptsetup
2023-06-21 20:03:51 +05:30
];
# I use zsh btw
environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
# It is ok to leave this unchanged for compatibility purposes
system.stateVersion = "22.11";
}