~ruther/nixos-config

8f34e848896b7e8ab5bfcb03009e7d21d06db50e — Rutherther 1 year, 6 months ago fdb403d
feat: update laptop packages
2 files changed, 13 insertions(+), 5 deletions(-)

M hosts/laptop/default.nix
M hosts/laptop/home.nix
M hosts/laptop/default.nix => hosts/laptop/default.nix +7 -2
@@ 16,14 16,19 @@
#           └─ default.nix
#

{ config, pkgs, user, ... }:
{ config, pkgs, lib, user, ... }:

{
  imports =                                               # For now, if applying to other system, swap files
    [(import ./hardware-configuration.nix)] ++            # Current system hardware config @ /etc/nixos/hardware-configuration.nix
    [(import ../../modules/desktop/dm/sddm.nix)] ++       # Desktop manager
    [(import ../../modules/desktop/qtile/default.nix)] ++ # Window Manager
    (import ../../modules/hardware);                      # Hardware devices
    (import ../../modules/hardware) ++
    (import ../../modules/desktop/virtualisation) ++
    [(import ../../modules/programs/fpga/vivado {
      inherit pkgs lib config;
      vivadoPath = "/data/fpga/xilinx/Vivado/2023.1/bin/vivado";
    })];                      # Hardware devices

  networking.hostName = "nixos-laptop";


M hosts/laptop/home.nix => hosts/laptop/home.nix +6 -3
@@ 11,18 11,21 @@
#              └─ home.nix
#

{ pkgs, ... }:
{ pkgs, lib, config, unstable, ... }:

{
  imports =
    [
      ../../modules/desktop/qtile/home.nix # Window Manager
      (import ../../modules/programs/fpga/vivado/home.nix {
        inherit pkgs lib config;
        vivadoPath = "/data/fpga/xilinx/Vivado/2023.1/bin/vivado";
      })
    ];

  home = {                                # Specific packages for laptop
    packages = with pkgs; [
      # Applications
      libreoffice                         # Office packages
      unstable.distrobox

      # Display
      #light                              # xorg.xbacklight not supported. Other option is just use xrandr.

Do not follow this link