From 8e34c30072d27023d6ccc0d7542b8df437335c66 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Tue, 7 Jul 2026 12:28:58 +0100 Subject: [PATCH] Setup tardis --- flake.nix | 1 + home/default.nix | 8 ++++++- hosts/common.nix | 2 ++ hosts/syedm/hardware-configuration.nix | 3 --- hosts/tardis/default.nix | 12 +++++++++- hosts/tardis/hardware-configuration.nix | 30 +++++++++++++++++++++++++ 6 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 hosts/tardis/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index aabd7c1..8ef76df 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,7 @@ { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; + kutu.url = "git+https://git.syedm.dev/syedm/kutu.git"; home-manager = { url = "github:nix-community/home-manager/release-26.05"; diff --git a/home/default.nix b/home/default.nix index 6d991d2..ebc15bb 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { imports = [ @@ -9,5 +9,11 @@ home.username = "me"; home.homeDirectory = "/home/me"; + programs.git = { + enable = true; + userName = "Syed Daanish"; + userEmail = "me@syedm.dev"; + }; + home.stateVersion = "26.05"; } diff --git a/hosts/common.nix b/hosts/common.nix index 104a853..d8d10a3 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -6,6 +6,8 @@ ../modules/secrets ]; + nixpkgs.config.allowUnfree = true; + boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/hosts/syedm/hardware-configuration.nix b/hosts/syedm/hardware-configuration.nix index 87653e3..efc3834 100644 --- a/hosts/syedm/hardware-configuration.nix +++ b/hosts/syedm/hardware-configuration.nix @@ -1,6 +1,3 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. { config, lib, pkgs, modulesPath, ... }: { diff --git a/hosts/tardis/default.nix b/hosts/tardis/default.nix index cf84d51..5a7ec51 100644 --- a/hosts/tardis/default.nix +++ b/hosts/tardis/default.nix @@ -6,11 +6,21 @@ ./hardware-configuration.nix ]; + boot.blacklistedKernelModules = [ + "nouveau" + ]; + environment.systemPackages = lib.mkAfter (with pkgs; [ firefox + kitty + rofi ]); - services.xserver.enable = true; + services.xserver = { + enable = true; + displayManager.startx.enable = true; + videoDrivers = [ "modesetting" ]; + }; networking.hostName = "tardis"; } diff --git a/hosts/tardis/hardware-configuration.nix b/hosts/tardis/hardware-configuration.nix new file mode 100644 index 0000000..a388c48 --- /dev/null +++ b/hosts/tardis/hardware-configuration.nix @@ -0,0 +1,30 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "vmd" "nvme" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/29a53eeb-befc-4512-9255-e1c5f1cf55ae"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/0951-B8D1"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/659310da-4655-461e-a992-6e62d7a0362d"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}