add arabic

This commit is contained in:
Sakooooo 2023-08-08 10:21:47 +03:00
parent 41cf780173
commit 27f8f252ac
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,12 +1,19 @@
{ config, inputs, outputs, pkgs, lib, home-manager, ...}:
{ {
config,
inputs,
outputs,
pkgs,
lib,
home-manager,
...
}: {
imports = [ imports = [
# home manager # home manager
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
# modules # modules
# import for each folder # import for each folder
# modules/desktop IMPORT # modules/desktop IMPORT
# modules/desktop/example DO NOT IMPORT, # modules/desktop/example DO NOT IMPORT,
# add entry to module's default.nix # add entry to module's default.nix
outputs.nixosModules.desktop outputs.nixosModules.desktop
outputs.nixosModules.shell outputs.nixosModules.shell
@ -14,18 +21,18 @@
outputs.nixosModules.dev outputs.nixosModules.dev
outputs.nixosModules.media outputs.nixosModules.media
]; ];
# flakes # flakes
nix.settings.experimental-features = [ "nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
# import the overlays # import the overlays
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
outputs.overlays.additions outputs.overlays.additions
outputs.overlays.modifications outputs.overlays.modifications
outputs.overlays.unstable-packages outputs.overlays.unstable-packages
]; ];
}; };
# grub (mount efi partition to /boot/efi) # grub (mount efi partition to /boot/efi)
# why /boot/efi? instead of /efi? # why /boot/efi? instead of /efi?
@ -33,7 +40,7 @@
# and intel microcode) # and intel microcode)
# 2. nixos does not like /efi :( # 2. nixos does not like /efi :(
# 3. i dont like systemd boot D: # 3. i dont like systemd boot D:
# TODO(sako):: add shim secure boot # TODO(sako):: add shim secure boot
# because window and riot games devs :( # because window and riot games devs :(
boot.loader = { boot.loader = {
efi = { efi = {
@ -41,7 +48,7 @@
efiSysMountPoint = "/boot/efi"; efiSysMountPoint = "/boot/efi";
}; };
grub = { grub = {
devices = [ "nodev" ]; devices = ["nodev"];
efiSupport = true; efiSupport = true;
enable = true; enable = true;
useOSProber = true; useOSProber = true;
@ -58,30 +65,30 @@
console = { console = {
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";
# keyMap = "us"; # keyMap = "us";
# use xorg layout option # use xorg layout option
# TODO(sako):: add arabic locale # TODO(sako):: add arabic locale
useXkbConfig = true; useXkbConfig = true;
}; };
# xorg layout # xorg layout
# change to needed # change to needed
services.xserver.layout = "us"; services.xserver.layout = "us,ar";
# already sold soul to corporations \_o_/ # already sold soul to corporations \_o_/
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.sako = { pkgs, ...}: { home-manager.users.sako = {pkgs, ...}: {
# CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!! # CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!!
home.stateVersion = "23.05"; home.stateVersion = "23.05";
home.packages = []; home.packages = [];
home.username = "sako"; home.username = "sako";
home.homeDirectory = "/home/sako"; home.homeDirectory = "/home/sako";
programs.bash.enable = true; programs.bash.enable = true;
programs.home-manager.enable = true; programs.home-manager.enable = true;
xdg.configFile.git = { xdg.configFile.git = {
source = ./config/git; source = ./config/git;
}; };
}; };
# bare minimum # bare minimum
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -96,9 +103,9 @@
gh # github gh # github
htop # htop htop # htop
tree # trees tree # trees
]; ];
# you phisiclally cannot live without this # you phisiclally cannot live without this
# litearlly! ! ! ! ! ! # litearlly! ! ! ! ! !
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;
pinentryFlavor = "gtk2"; pinentryFlavor = "gtk2";
@ -106,11 +113,10 @@
}; };
programs.git = { programs.git = {
enable = true; enable = true;
package = pkgs.gitFull; package = pkgs.gitFull;
}; };
# something nixos release # something nixos release
# something use ful in for mat ion # something use ful in for mat ion
# blah blah blah # blah blah blah
@ -118,6 +124,6 @@
# change this on every update idiot # change this on every update idiot
# dont name it to string beans or some shit # dont name it to string beans or some shit
# you idiot # you idiot
system.stateVersion = "23.05"; system.stateVersion = "23.05";
# read comment you read the comment? # read comment you read the comment?
} }