nixos/default.nix

66 lines
1.6 KiB
Nix
Raw Normal View History

2023-07-08 18:39:19 +04:00
{ config, inputs, outputs, pkgs, lib, home-manager, ...}:
2023-07-07 00:39:27 +04:00
{
imports = [
# home manager
2023-07-08 17:08:50 +04:00
inputs.home-manager.nixosModules.default
2023-07-07 00:39:27 +04:00
# modules
2023-07-08 20:00:13 +04:00
# import for each folder
# modules/desktop IMPORT
# modules/desktop/example DO NOT IMPORT,
# add entry to module's default.nix
2023-07-08 18:39:19 +04:00
outputs.nixosModules.desktop
2023-07-08 20:00:13 +04:00
outputs.nixosModules.shell
2023-07-07 00:39:27 +04:00
];
2023-07-08 20:00:13 +04:00
# flakes
2023-07-07 00:39:27 +04:00
nix.settings.experimental-features = [ "nix-command" "flakes"];
2023-07-08 20:00:13 +04:00
# import the overlays
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
];
};
2023-07-07 00:39:27 +04:00
# grub (mount efi partition to /boot/efi)
# why /boot/efi? instead of /efi?
# 1. when dualbooting, windows makes the efi partition 100mb instead of 512mb+ (we need this for generations
# and intel microcode)
# 2. nixos does not like /efi :(
# 3. i dont like systemd boot D:
# TODO(sako):: add shim secure boot
# because window and riot games devs :(
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
devices = [ "nodev" ];
efiSupport = true;
enable = true;
useOSProber = true;
};
};
2023-07-08 17:08:50 +04:00
# TODO(sako):: figure out plymouth and why my system is too fast
#boot.plymouth.enable = true;
2023-07-07 00:39:27 +04:00
# this shouldnt cause any issues right?
networking.networkmanager.enable = true;
time.timeZone = "Africa/Cairo";
2023-07-08 17:08:50 +04:00
i18n.defaultLocale = "en_US.UTF-8";
2023-07-07 00:39:27 +04:00
console = {
font = "Lat2-Terminus16";
# keyMap = "us";
useXkbConfig = true;
};
# already sold soul to corporations \_O_/
nixpkgs.config.allowUnfree = true;
}