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": {
"nixpkgs": {
"locked": {
"lastModified": 1700794826,
"narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=",
"lastModified": 1701068326,
"narHash": "sha256-vmMceA+q6hG1yrjb+MP8T0YFDQIrW3bl45e7z24IEts=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8",
"rev": "8cfef6986adfb599ba379ae53c9f5631ecd2fd9c",
"type": "github"
},
"original": {

View File

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

View File

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

View File

@ -1,4 +1,4 @@
with import <nixpkgs> {};
{users, pkgs, ...}:
{
users.extraUsers.mypackaegsstayinstoreffs = {
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
# (the default) this is the recommended approach. When using systemd-networkd it's

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
with import <nixpkgs> {};
{pkgs, ...}:
{
environment.systemPackages = with pkgs; [
wget
@ -17,6 +17,13 @@ with import <nixpkgs> {};
ffmpeg-full
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 = {
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.tlp = {

View File

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

View File

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

View File

@ -1,4 +1,3 @@
with import <nixpkgs> {};
{
# Enable the X11 windowing system.
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 "$@"
''