nix-config/hosts/adalbert/default.nix

95 lines
2.6 KiB
Nix
Raw Normal View History

2023-12-23 21:20:40 +01:00
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
outputs,
lib,
config,
pkgs,
2024-02-04 20:53:09 +01:00
heliox-cli,
2023-12-23 21:20:40 +01:00
...
}: {
# You can import other NixOS modules here
imports = [
# If you want to use modules your own flake exports (from modules/nixos):
# outputs.nixosModules.example
# Or modules from other flakes (such as nixos-hardware):
2023-12-24 11:16:59 +01:00
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-gpu-nvidia
inputs.hardware.nixosModules.common-pc-ssd
2023-12-23 21:20:40 +01:00
# You can also split up your configuration and import pieces of it here:
# ./users.nix
# Import your generated (nixos-generate-config) hardware configuration
./hardware-configuration.nix
2023-12-24 11:16:59 +01:00
../common/global
../common/optional/desktop/awesome.nix
../common/optional/systemd-boot.nix
../common/optional/wireshark.nix
../common/optional/kde-connect.nix
2023-12-25 23:12:37 +01:00
../common/optional/gnome-keyring.nix
2023-12-26 13:59:40 +01:00
../common/optional/adb.nix
2024-01-07 15:42:16 +01:00
../common/optional/docker.nix
2023-12-26 22:15:20 +01:00
../common/optional/gaming/gamemode.nix
2023-12-27 22:50:11 +01:00
../common/optional/gaming/steam.nix
2023-12-26 22:15:20 +01:00
../common/optional/gaming/vr.nix
../common/optional/desktop/japanese.nix
2024-01-07 15:41:41 +01:00
../common/optional/udisks.nix
2023-12-23 21:20:40 +01:00
];
nix.extraOptions = ''
download-speed = 4000
'';
2023-12-23 21:20:40 +01:00
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
2023-12-26 23:25:22 +01:00
firefox.enablePlasmaBrowserIntegration = true;
2023-12-23 21:20:40 +01:00
};
};
2023-12-23 22:05:10 +01:00
networking.hostName = "adalbert";
2023-12-23 21:20:40 +01:00
2024-02-04 20:53:09 +01:00
services.udev.packages = [inputs.heliox-cli.packages.x86_64-linux.default];
environment.systemPackages = [inputs.heliox-cli.packages.x86_64-linux.default];
2023-12-24 11:16:59 +01:00
# Force disable Nvidia PRIME, needed by nix-hardware
hardware.nvidia.prime.offload.enable = false;
2023-12-23 21:20:40 +01:00
2023-12-24 11:16:59 +01:00
programs = {
adb.enable = true;
dconf.enable = true;
2023-12-23 21:20:40 +01:00
};
2023-12-24 11:16:59 +01:00
hardware = {
opengl.enable = true;
opentabletdriver.enable = true;
2023-12-23 21:20:40 +01:00
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
2023-12-23 22:05:10 +01:00
system.stateVersion = "23.11";
2023-12-23 21:20:40 +01:00
}