fix impure issues
This commit is contained in:
parent
f7d78897c5
commit
8e482fc526
17 changed files with 22 additions and 31 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
with import <nixpkgs> {};
|
|
||||||
{
|
{
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
with import <nixpkgs> {};
|
{users, pkgs, ...}:
|
||||||
{
|
{
|
||||||
users.extraUsers.mypackaegsstayinstoreffs = {
|
users.extraUsers.mypackaegsstayinstoreffs = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
with import <nixpkgs> {};
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
with import <nixpkgs> {};
|
{pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
with import <nixpkgs> {};
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
|
|
|
@ -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 "$@"
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
with import <nixpkgs> {};
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
with import <nixpkgs> {};
|
|
||||||
{
|
{
|
||||||
services.power-profiles-daemon.enable = false;
|
services.power-profiles-daemon.enable = false;
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
with import <nixpkgs> {};
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
users.users.grimmauld = {
|
users.users.grimmauld = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
with import <nixpkgs> {};
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
with import <nixpkgs> {};
|
|
||||||
{
|
{
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
|
|
|
@ -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 "$@"
|
|
||||||
''
|
|
Loading…
Reference in a new issue