fix impure issues

This commit is contained in:
LordGrimmauld 2023-11-29 22:56:30 +01:00
parent f7d78897c5
commit 8e482fc526
17 changed files with 22 additions and 31 deletions

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1700794826, "lastModified": 1701068326,
"narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=", "narHash": "sha256-vmMceA+q6hG1yrjb+MP8T0YFDQIrW3bl45e7z24IEts=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8", "rev": "8cfef6986adfb599ba379ae53c9f5631ecd2fd9c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, fonts, ...}:
{ {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
noto-fonts noto-fonts
@ -9,5 +9,4 @@ with import <nixpkgs> {};
liberation_ttf liberation_ttf
]; ];
fonts.fontDir.enable = true; fonts.fontDir.enable = true;
} }

View file

@ -1,4 +1,3 @@
with import <nixpkgs> {};
{ {
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {users, pkgs, ...}:
{ {
users.extraUsers.mypackaegsstayinstoreffs = { users.extraUsers.mypackaegsstayinstoreffs = {
isNormalUser = true; isNormalUser = true;

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, lib, ...}:
{ {
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -1,12 +1,9 @@
with import <nixpkgs> {};
{ {
# Enable OpenGL # Enable OpenGL
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
extraPackages = with pkgs; [
];
}; };
environment.sessionVariables = { environment.sessionVariables = {

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, ...}:
{ {
security.polkit.enable = true; security.polkit.enable = true;

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, ... }:
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, ...}:
{ {
# Enable sound with pipewire. # Enable sound with pipewire.
sound.enable = true; sound.enable = true;

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, ...}:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget wget
@ -17,6 +17,13 @@ with import <nixpkgs> {};
ffmpeg-full ffmpeg-full
imagemagick imagemagick
(import ../scripts.nix)
(writeShellScriptBin "primerun" ''
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"
'')
]; ];
} }

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, ...}:
{ {
systemd.services.otd-daemon = { systemd.services.otd-daemon = {
description = "opentabletdriver daemon, a user service to make the gui work"; description = "opentabletdriver daemon, a user service to make the gui work";

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; { ... }:
{ {
} }

View file

@ -1,4 +1,3 @@
with import <nixpkgs> {};
{ {
services.power-profiles-daemon.enable = false; services.power-profiles-daemon.enable = false;
services.tlp = { services.tlp = {

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, ...}:
{ {
users.users.grimmauld = { users.users.grimmauld = {
isNormalUser = true; isNormalUser = true;

View file

@ -1,4 +1,4 @@
with import <nixpkgs> {}; {pkgs, ...}:
{ {
xdg.portal = { xdg.portal = {
enable = true; enable = true;

View file

@ -1,4 +1,3 @@
with import <nixpkgs> {};
{ {
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver = { services.xserver = {

View file

@ -1,9 +0,0 @@
with import <nixpkgs> {};
writeShellScriptBin "primerun" ''
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"
''