nixvim configuration using flakes

This commit is contained in:
2024-12-27 21:31:18 +01:00
parent ee3b4012c3
commit f087509250
5 changed files with 425 additions and 54 deletions

View File

@ -2,13 +2,16 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
pkgs,
...
}:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
@ -49,14 +52,17 @@
users.users.martin = {
isNormalUser = true;
description = "martin";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
extraGroups = [
"networkmanager"
"wheel"
];
packages = with pkgs; [ ];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
environment.variables = {
environment.variables = {
EDITOR = "nvim";
};
@ -100,7 +106,10 @@
];
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
settings.experimental-features = [
"nix-command"
"flakes"
];
};
# Some programs need SUID wrappers, can be configured further or are
@ -131,14 +140,14 @@
enable = true;
xwayland.enable = true;
};
kdeconnect = {
enable = true;
};
# Required for nvim with flakes
# nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
@ -184,7 +193,7 @@
xserver = {
enable = true;
# Load Nvidia driver for Xorg and Wayland
videoDrivers = ["nvidia"];
videoDrivers = [ "nvidia" ];
# Configure keymap in X11
xkb = {
layout = "gb";