nix-configs

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

atlas.nix (2726B)


      1 # Desktop
      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 = "atlas"; 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-unfree.nix
     23     ../common/packages.nix
     24     ../common/ssh.nix
     25     ../common/steam.nix
     26     ../common/syncthing.nix
     27     ../common/user.nix
     28     ../common/ydotool.nix
     29     ../common/zram.nix
     30     ../scripts/ctimerename.nix
     31     ../scripts/duupmove.nix
     32     ../scripts/restic.nix
     33     ../scripts/seedy.nix
     34     ../scripts/vidyascape.nix
     35     ../scripts/xdb.nix
     36   ];
     37   home-manager.users.${username} = {pkgs, ...}: { imports = [
     38         ../home/alacritty.nix
     39         ../home/clipse.nix
     40         ../home/cursor.nix
     41         ../home/espanso.nix
     42         ../home/firefox.nix
     43         ../home/fish.nix
     44         ../home/git.nix
     45         ../home/htop.nix
     46         ../home/hypridle.nix
     47         ../home/hyprland.nix
     48         ../home/hyprland-numlock.nix
     49         ../home/iamb.nix
     50         ../home/lf.nix
     51         ../home/mpv.nix
     52         ../home/neovim.nix
     53         ../home/newsboat.nix
     54         ../home/rbw.nix
     55         ../home/rclone.nix
     56         ../home/ssh.nix
     57         ../home/tofi.nix
     58         ../home/yt-dlp.nix
     59       ];
     60       home.stateVersion = "24.11";
     61     };
     62 
     63   # Hardware and system
     64   boot = {
     65     initrd = { availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; };
     66     kernelModules = [ "kvm-intel" ];
     67     loader = {
     68       systemd-boot.enable = true;
     69       efi.canTouchEfiVariables = true;
     70     };
     71   };
     72   hardware.graphics = {
     73     enable = true;
     74     enable32Bit = true;
     75     };
     76   hardware.firmware = [ pkgs.linux-firmware ];
     77   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     78   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     79 
     80   # Packages
     81   environment.systemPackages = with pkgs; [
     82     ntfs3g
     83     glib
     84   ];
     85 
     86   system.stateVersion = "24.11"; # Did you read the comment?
     87 
     88 }