diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..ca3a7a12 --- /dev/null +++ b/default.nix @@ -0,0 +1,48 @@ +{ config, pkgs, lib, home-manager, ...}: +{ + imports = [ + # home manager + home-manager.nixosModules.default + # modules + #i dont think this is right + ./modules + ]; + + nix.settings.experimental-features = [ "nix-command" "flakes"]; + + # 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; + }; + }; + + # this shouldnt cause any issues right? + networking.networkmanager.enable = true; + + time.timeZone = "Africa/Cairo"; + + il8n.defaultLocale = "en_US.UTF-8"; + console = { + font = "Lat2-Terminus16"; + # keyMap = "us"; + useXkbConfig = true; + }; + # already sold soul to corporations \_O_/ + nixpkgs.config.allowUnfree = true; + +} diff --git a/hosts/sakotop/default.nix b/hosts/sakotop/default.nix index 4825cbfe..786174c6 100644 --- a/hosts/sakotop/default.nix +++ b/hosts/sakotop/default.nix @@ -55,14 +55,10 @@ useXkbConfig = true; # use xkbOptions in tty. }; - #TODO(sako):: put this in that curly bracket # Enable the X11 windowing system. - #services.xserver.enable = true; - # enable bspwm - #services.xserver.windowManager.bspwm.enable = true; - services.xserver = { enable = true; + # bspwm windowManager.bspwm.enable = true; layout = "us"; };