System configuration and remove boot parameters

This commit is contained in:
Sravan Balaji
2024-03-23 14:27:52 -04:00
parent aa0322a18a
commit 4b46d84b21
3 changed files with 386 additions and 7 deletions

View File

@@ -8,4 +8,83 @@
imports = [
../../system/hardware-configuration.nix
];
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.config.allowUnfree = true;
boot = {
loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
};
};
networking = {
hostName = systemSettings.hostname;
networkmanager.enable = true;
};
time.timeZone = systemSettings.timezone;
i18n.defaultLocale = systemSettings.locale;
i18n.extraLocaleSettings = {
LC_ADDRESS = systemSettings.locale;
LC_IDENTIFICATION = systemSettings.locale;
LC_MEASUREMENT = systemSettings.locale;
LC_MONETARY = systemSettings.locale;
LC_NAME = systemSettings.locale;
LC_NUMERIC = systemSettings.locale;
LC_PAPER = systemSettings.locale;
LC_TELEPHONE = systemSettings.locale;
LC_TIME = systemSettings.locale;
};
users.users.${userSettings.username} = {
isNormalUser = true;
description = userSettings.name;
extraGroups = [ "networkmanager" "wheel" "input" "dialout" ];
packages = [];
uid = 1000;
};
environment.systemPackages = with pkgs; [
vim
wget
zsh
git
cryptsetup
home-manager
];
environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
fonts.fontDir.enable = true;
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal
pkgs.xdg-desktop-portal-gtk
];
config.common.default = [ "gtk" ];
};
# The first version of NixOS installed on this particular machine
# Is used to maintain compatibility with application data
# (e.g., databases) created on older NixOS version
system.stateVersion = "23.11";
}