grub + nvidia (kinda)

This commit is contained in:
nx2
2024-04-05 14:48:12 +02:00
parent 9d0835f94e
commit ecb83a4025
5 changed files with 219 additions and 124 deletions

View File

@@ -1,30 +1,27 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, user, allowed, secrets, rice, ... }:
{ config, lib, pkgs, user, allowed, secrets, rice, nvidia, ... }:
let
in
{
imports =
[ # Include the results of the hardware scan.
./system-modules/hardware-configuration.nix
./system-modules/users.nix
./system-modules/sound.nix
./system-modules/ollama.nix
./system-modules/grub.nix
./system-modules/dm.nix
imports = [
./system-modules/hardware-configuration.nix
./system-modules/nvidia.nix # only does stuff if nvidia.enabled
./system-modules/users.nix
./system-modules/sound.nix
./system-modules/grub.nix
./system-modules/dm.nix
./system-modules/hsmw.nix
./system-modules/health_reminder.nix
./system-modules/davmail.nix
./system-modules/docker.nix
./system-modules/hsmw.nix
./system-modules/docker.nix
./system-modules/health_reminder.nix
./system-modules/davmail.nix
./system-modules/ollama.nix
];
networking.hostName = "NxXPS";
networking.hostName = "NxXPS";
networking.networkmanager = {
enable = true;
};
};
@@ -48,13 +45,13 @@
services.printing.enable = true;
# rtkit is optional but recommended
security.rtkit.enable = true;
security.rtkit.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
hardware.uinput.enable = true;
# log into this machine
# log into this machine
services.openssh.enable = false;
@@ -62,6 +59,9 @@
hardware.bluetooth.powerOnBoot = true; #
services.blueman.enable = true;
nixpkgs.config.allowUnfree = true;
# nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) allowed.unfree-packages;
# List packages installed in system profile. To search, run:
# $ nix search wget
@@ -81,6 +81,7 @@
direnv
openssl
blueman
dmidecode
];
fonts.packages = with pkgs; [
@@ -90,7 +91,7 @@
] ++ [
rice.font.base.package
rice.font.code.package
]
];
programs.gnupg.agent = {
enable = true;
@@ -98,9 +99,10 @@
};
programs.hyprland = { # config is done with home-manager
programs.hyprland = {
# config is done with home-manager
enable = true;
xwayland.enable = true;
xwayland.enable = true;
};
system.stateVersion = "23.11";