add opengl

This commit is contained in:
iofq 2023-04-27 02:50:29 -05:00
parent 1c91e99fcb
commit e1fe85f763
5 changed files with 25 additions and 21 deletions

8
flake.lock generated
View file

@ -38,16 +38,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1682303062,
"narHash": "sha256-x+KAADp27lbxeoPXLUMxKcRsUUHDlg+qVjt5PjgBw9A=",
"lastModified": 1682453498,
"narHash": "sha256-WoWiAd7KZt5Eh6n+qojcivaVpnXKqBsVgpixpV2L9CE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "f5364316e314436f6b9c8fd50592b18920ab18f9",
"rev": "c8018361fa1d1650ee8d4b96294783cf564e8a7f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-22.11",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}

View file

@ -2,24 +2,22 @@
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, nixos-hardware, ... }:
inputs.nixpkgs.follows = "nixpkgs"; };
};
outputs = { self, nixpkgs, home-manager, nixos-hardware, ... }:
let
username = "e";
in {
nixosConfigurations = (
import ./hosts {
inherit (nixpkgs) lib;
inherit nixos-hardware;
inherit nixpkgs home-manager username;
}
);
};
}
nixosConfigurations = (
import ./hosts {
inherit (nixpkgs) lib;
inherit nixos-hardware;
inherit nixpkgs home-manager username;
}
);
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ nixos-hardware, config, pkgs, ... }:
{
imports =
[
@ -21,5 +21,7 @@
pulse.enable = true;
};
nixpkgs.config.allowUnfree = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.opengl.enable = true;
system.stateVersion = "22.11";
}

View file

@ -7,9 +7,12 @@
home = {
packages = with pkgs; [
neofetch
pulseaudio
pulsemixer
alsa-utils
discord
signal-desktop
pulseaudio
runelite
];
};
}

View file

@ -38,6 +38,7 @@
export GPG_2FA="cjriddz@protonmail.com"
export MANPAGER="nvim +Man!"
export EDITOR="nvim"
export _JAVA_AWT_WM_NONREPARENTING=1
[[ $- != *i* ]] && return
function exists {
type $1 >/dev/null 2>&1