summaryrefslogtreecommitdiff
path: root/nixos/hosts/apocalypse/default.nix
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-04-05 13:14:31 +0200
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-04-05 14:29:48 +0200
commite185b7f874566c66fd97f158a457c4c64d0628ce (patch)
treeb242707378575c3aa286b4c3a7f8b198672e4440 /nixos/hosts/apocalypse/default.nix
parent45ec0396b4d56798f39254e9ef31b9c144e681fd (diff)
add the new laptop install
Diffstat (limited to 'nixos/hosts/apocalypse/default.nix')
-rw-r--r--nixos/hosts/apocalypse/default.nix70
1 files changed, 70 insertions, 0 deletions
diff --git a/nixos/hosts/apocalypse/default.nix b/nixos/hosts/apocalypse/default.nix
new file mode 100644
index 0000000..8ad76ef
--- /dev/null
+++ b/nixos/hosts/apocalypse/default.nix
@@ -0,0 +1,70 @@
+ {pkgs, config, lib, ...}:
+ {
+ imports = [
+ ./hardware-configuration.nix
+ ../../common
+ ./nvidia.nix
+ ];
+ boot.loader.grub = {
+ useOSProber = true;
+ device = "nodev";
+
+
+ efiSupport = true;
+ default = "saved";
+ memtest86.enable = true;
+ # splashImage = ./GrubBG.png;
+ };
+ boot.loader.efi.canTouchEfiVariables = true;
+ boot.crashDump.enable = false;
+ boot.plymouth = {
+ enable = true;
+ theme = "bgrt";
+ };
+
+ boot.kernelParams = [
+ "quiet"
+ "splash"
+ "loglevel=3"
+ "rd.systemd.show_status=false"
+ "rd.udev.log_level=3"
+ "udev.logpriority=3"
+ ];
+ boot.consoleLogLevel = 0;
+
+ networking.hostName = "apocalypse"; # Define your hostname.
+ networking.firewall.enable = false;
+ networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
+
+ hardware.bluetooth.enable = true;
+ hardware.bluetooth.settings = {
+ General = {Enable = "Source,Sink,Media,Socket";};
+ };
+
+ hardware.bluetooth.powerOnBoot = true;
+ services.blueman.enable = true;
+
+ programs.nix-ld.enable = true;
+ services.printing.enable = true;
+ nixpkgs.config.allowUnfree = true;
+
+
+ services.resolved = {
+ enable = true;
+ dnssec = "false";
+ domains = [ "~." ];
+ fallbackDns = [ ];
+ dnsovertls = "opportunistic";
+ };
+
+
+ networking.useDHCP = lib.mkDefault true;
+ networking.firewall.checkReversePath = false;
+
+
+ # Thunderbolt
+ services.hardware.bolt.enable = true;
+ powerManagement.enable = true;
+}
+
+