nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

minerva.nix (2485B)


      1 # Laptop
      2 
      3 { config, pkgs, lib, fullname, username, domain, email, sshkey, sshport, timezone, postcode, address, htpasswd, vpnusername, vpnpassword, todosecret, privatekey, matrixuser, matrixserver, ... }:
      4 
      5 let machine = "minerva"; in {
      6 
      7   imports = [
      8     (import ../common/variables.nix { inherit machine fullname username domain email sshkey sshport timezone postcode address htpasswd vpnusername vpnpassword todosecret privatekey matrixuser matrixserver; })
      9     (import ../common/home-manager.nix  { inherit machine fullname username domain email sshkey sshport timezone postcode address htpasswd vpnusername vpnpassword todosecret privatekey matrixuser matrixserver; })
     10     ../common/audio.nix
     11     ../common/autologin.nix
     12     ../common/devel.nix
     13     ../common/flakes.nix
     14     ../common/fonts.nix
     15     ../common/garbage.nix
     16     ../common/hyprland.nix
     17     ../common/locale.nix
     18     ../common/mount-drives.nix
     19     ../common/networking.nix
     20     ../common/nfs.nix
     21     ../common/nur.nix
     22     ../common/packages.nix
     23     ../common/packages-unfree.nix
     24     ../common/ssh.nix
     25     ../common/syncthing.nix
     26     ../common/user.nix
     27     ../common/ydotool.nix
     28     ../scripts/ctimerename.nix
     29     ../scripts/duupmove.nix
     30     ../scripts/restic.nix
     31     ../scripts/vidyascape.nix
     32     ../scripts/xdb.nix
     33   ];
     34   home-manager.users.${username} = {pkgs, ...}: { imports = [
     35         ../home/alacritty.nix
     36         ../home/clipse.nix
     37         ../home/cursor.nix
     38         ../home/espanso.nix
     39         ../home/firefox.nix
     40         ../home/fish.nix
     41         ../home/git.nix
     42         ../home/htop.nix
     43         ../home/hypridle.nix
     44         ../home/hyprland.nix
     45         ../home/iamb.nix
     46         ../home/lf.nix
     47         ../home/mpv.nix
     48         ../home/neovim.nix
     49         ../home/newsboat.nix
     50         ../home/rbw.nix
     51         ../home/ssh.nix
     52         ../home/tofi.nix
     53         ../home/yt-dlp.nix
     54       ];
     55       home.stateVersion = "24.11";
     56   };
     57 
     58   # Hardware and system
     59   boot = {
     60     initrd = { availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ]; };
     61     kernelModules = [ "kvm-intel" ];
     62     loader.grub = {
     63       enable = true;
     64       device = "/dev/sda";
     65       useOSProber = true;
     66     };
     67   };
     68   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     69   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     70 
     71   # Packages
     72   environment.systemPackages = with pkgs; [
     73     brightnessctl
     74   ];
     75 
     76   system.stateVersion = "24.11"; # Did you read the comment?
     77 }