Sidebar

Nix

nix
Nix rhm54 10 months ago 100%
Issue with docker containers permissions.

I am trying to use Nixos as my docker host. Everything works fine except for weird behavior when it comes to the config files. When the containers start up and apply permissions to /config instead of using the supplied PUID and PGID it instead uses (PUID -1+100000) and (PGID-1+100000). For example if I supply 1026 as the PUID and 100 as the PGID it applies 101025 as the owner and 100099 as the group. This is my docker config from my configuration.nix: # Docker Config virtualisation.docker.enable = true; virtualisation.docker.rootless = { enable = true; setSocketVariable = true; }; And this is a sample docker-compose config: services: jackett: image: ghcr.io/linuxserver/jackett:latest container_name: jackett environment: - PUID=${PUID_NEW} - PGID=${PGID_NEW} - TZ=${TZ} volumes: - '${DOCKER_CONFIG}/jackett:/config' - '${SHARE_DRIVE}:/downloads' networks: - medianetwork ports: - 9117:9117 restart: always ​

1
0
nix
Nix notSugarBun 10 months ago 83%
Final Rice for This Year
4
7
nix
Nix kavb333 10 months ago 100%
What is the ~/.cache/.keep file, and how do I move it?

I'm currently trying to get comfortable on NixOS on my laptop before switching over to it from Arch on my desktop, and I've noticed that there's a .keep file in the \~/.cache directory. I normally wouldn't care about it, except that my XDG\_CACHE\_HOME isn't \~/.cache, but rather set to $XDG\_STATE\_HOME/cache which is \~/.var/cache (to mirror how cache is in /var/cache). So what even is the .keep file, and how do I make it go to my XDG\_CACHE\_HOME to stop it from cluttering up my home directory?

1
1
nix
Nix TibialCuriosity 10 months ago 100%
Trying to set systemd timer to work

Hi all, Trying to get a systemd timer script working that would turn off the scree at a set time each day. This is the script that I am using in default.nix systemd.timers.screenoff = { timerConfig = { Unit = "screenoff.service"; OnCalendar = "*-*-* 14:35:00"; }; wantedBy = ["default.target"]; }; systemd.user.services.screenoff = { script = '' ${pkgs.bash}/bin/bash /home/"user"/screen_off.sh ''; wantedBy = ["default.target"]; }; The script contains this bit of bash #!/usr/bin/env busctl --user set-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode i 3 I have tired a few various formats but in this current version I see the time and service listed in systemctl list-timers --all, but typing systemctl enable screenoff.service leads to error stating that service doesn't exist. ​ Any help would be greatly appreciated! Thank you!

2
1
nix
Nix TalkierTick9904 10 months ago 100%
Hyprland share picker theme

I am trying to apply qt theme to share picker. I have QT\_QPA\_PLATFORMTHEME variable set to qt5ct and working qt configuration in home-manager, but share picker uses ugly default theme. [Wiki instructions](https://wiki.hyprland.org/Useful-Utilities/Hyprland-desktop-portal/#share-picker-doesnt-use-the-system-theme) dont work either. [share picker](https://preview.redd.it/eg1gc7ptvw0c1.png?width=568&format=png&auto=webp&s=a89926c7b53f1c2ff63555360ffdacc0ddf7c62b) ​ [qt5ct and qt6ct](https://preview.redd.it/2iouy8gvvw0c1.png?width=1528&format=png&auto=webp&s=cbd552ac4c201b78bcc60db2050f8e5947b74c56)

1
3
nix
Nix LazyWalkingPole 10 months ago 100%
How to add a dependency to a package?

I'd like to add 'ImageMagick' as a dependency for ranger to enable sixel support for image preview. How do I go about doing this?

1
3
nix
Nix caplodst 10 months ago 100%
put symlink in /usr/bin

I host a bunch of websites with NixOS. Most of them need the bin 'convert' from imagemagick. It is a bit tedious to specify in every website the path to convert = /run/current-system/sw/bin/convert Is there a way to put a symlink /usr/bin/convert -> /run/current-system/sw/bin/convert ?

2
1
nix
Nix zxjk-io 10 months ago 100%
How to prepare a configuration.nix prior to installing NixOS

Hello, hope your all well? So I'm about to install NixOS on my primary workstation. I've been tinkering on an old laptop, learning flakes, getting to grips with home-manager and the nix commands especially garbage collection. So the configuration.nix I've created on my laptop, isn't all the tooling I'll use on my workstation and honestly, I can remember half the stuff I've installed or tools I install along the way. So here is my actual question is there anything like a nix config generator, where I can cherry pick apps, services and utilities?

3
9
nix
Nix CaniballShiaLaBuff 10 months ago 100%
I'm trying to package a binary, how to translate missing files into package names?

I'm trying to package [this](https://github.com/NixOS/nixpkgs/issues/266113). I followed the [wiki](https://nixos.wiki/wiki/Packaging/Binaries) and when I tried to run it with `autopatchelf` hook I got this: ``` setting interpreter of /nix/store/bwxdfc238al3mmvsqx7qf3a1l4i3ip3l-keymapp-21.07.0/bin/keymapp searching for dependencies of /nix/store/bwxdfc238al3mmvsqx7qf3a1l4i3ip3l-keymapp-21.07.0/bin/keymapp libusb-1.0.so.0 -> not found! libudev.so.1 -> not found! libwebkit2gtk-4.0.so.37 -> not found! libgtk-3.so.0 -> not found! libgdk-3.so.0 -> not found! libgdk_pixbuf-2.0.so.0 -> not found! libgio-2.0.so.0 -> not found! libjavascriptcoregtk-4.0.so.18 -> not found! libgobject-2.0.so.0 -> not found! libglib-2.0.so.0 -> not found! libstdc++.so.6 -> not found! libgcc_s.so.1 -> not found! auto-patchelf: 12 dependencies could not be satisfied ``` I figured out that the first (and actually second too) get resolved by adding `libusb1`, but I have trouble figuring out the name of the package that contains `libwebkit2gtk-4.0.so.37`. Is there some tool that could tell me which packages do I need to install to get these files? Or what is the best way to do this?

2
3
nix
Nix ipetepete 10 months ago 100%
Why does nix-env create 'result' symlinks everywhere?

Ok, maybe not everywhere, but at least in all my docker directories and some repo directories. The symlink points to /nix/store/ This is what's in the target directory: result ├── lib │   └── locale │   └── locale-archive ├── nix-support │   └── setup-hook └── share └── i18n └── SUPPORTED How do I get it to stop creating this 'result' symlink all over the place? My google-fu failed to find me an answer. ​ \-- A little more info for clarity: I'm currently running on Ubuntu, I used nix-env to install some apps in the past. What other info is relevant?

1
1
nix
Nix Genex_04 10 months ago 100%
home manager: configure applications' settings in ~/.config, but do not install the binary in ~/.nix-profile/bin?

i'm using home manager on a non nixos distro (gentoo), and I like it because I can declarative configure my programs, eg firefox nushell etc etc. but, each time I have to unlink some programs in `~/.nix-profile/bin/` because they get picked up instead of the one that are native to my system (managed via package manager). i've been `unlink` manually, but is there a way to tell home manager "just configure this, don't install the binary"?

1
0
nix
Nix ManasLmao_ 10 months ago 100%
VSCode on Home Manager crashes

Nothing fancy, I just put programs.vscode.enable = true; in home manager config. I am presented with this error after a successful rebuild switch. [1117/114505.763499:FATAL:v8_initializer.cc(538)] Error loading V8 startup snapshot file /nix/store/1lqh595004maiapcx72wkp65r1nbnh9n-vscode-1.84.2/bin/.code-wrapped: line 63: 39906 Trace/breakpoint trap (core dumped) ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@" I have tried a lot of fixes, from reinstalling, to adding some custom settings in vscode config. Nothing seems to work. Thanks in advance! If you want any additional information, let me know.

1
4
nix
Nix mister_drgn 10 months ago 100%
Installing neovim plugins (nvim-tree)

I'll start by saying I'm super new to vim, so I'm messing around with make a configuration from scratch. As such, I'd like to use nix as my plugin manager; However, I'm seemingly failing to install nvim-tree, and I was hoping someone could point out what I'm missing. programs.neovim = { enable = true; defaultEditor = true; viAlias = true; vimAlias = true; vimdiffAlias = true; plugins = with pkgs.vimPlugins; [ # nerdtree nvim-tree-lua vim-sleuth catppuccin-nvim ]; extraConfig = lib.fileContents ./init.vim; }; This works for installing the other plugins. But I can't seem to access nvim-tree. According to the website (https://github.com/nvim-tree/nvim-tree.lua), I should be able enter `:NvimTreeOpen` in neovim, but I get "Not an editor command: NvimTreeOpen." Any ideas? Thanks.

2
3
nix
Nix Ajlow2000 10 months ago 50%
What's the ng mean in ocaml-ng.ocamlPackages

Example: https://ryantm.github.io/nixpkgs/languages-frameworks/ocaml/

0
0
nix
Nix Asleep_Detective3274 10 months ago 50%
Application menu doesn't work in LXQt 1.4

Is anyone else experiencing this? when I try and launch lxqt-config from the terminal I get the message 'Menu file not defined'

0
0
nix
Nix ledmine 10 months ago 50%
NixOS on WSL

Hello everyone, I just found out that it's possible to use NixOS on WSL. But I'm wondering if it really works properly so please let me know if you've used it. Would help a lot! Btw this is the video that talks about it: https://youtu.be/UmRXXYxq8k4?si=8LAY__35DiVlwZY7

0
2
nix
Nix LyonSyonII 10 months ago 50%
nix develop takes ages on big directories

I've been seeing that `nix develop` takes a very long time on large projects, and I believe it's due to the whole folder being copied to the `store`. `nix-shell` doesn't have this problem, but I need flakes specifically because they allow to have runtime libraries, which shell doesn't seem to support. (Translating flake.nix to a shell.nix exactly has different execution results.) What can I do? I've tried putting the flake.nix on an empty subfolder, and it solves it, but it's extremely tedious and clunky.

0
4
nix
Nix ManasLmao_ 10 months ago 66%
NixOS is crashing with nvAssertOkFailedNoLog

jounalctl gives the error - Nov 16 22:34:46 nixos kernel: input: MSFT0001:01 04F3:3140 Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-2/i2c-MSFT00 01:01/0018:04F3:3140.0001/input/input15 Nov 16 22:34:46 nixos kernel: hid-multitouch 0018:04F3:3140.0001: input,hidraw0: I2C HID v1.00 Mouse [MSFT0001:01 04F3:3140] on i2c-MSFT0 001:01 Nov 16 22:34:46 nixos kernel: mousedev: PS/2 mouse device common for all mice Nov 16 22:34:47 nixos kernel: Bluetooth: hci0: Waiting for firmware download to complete Nov 16 22:34:47 nixos kernel: Bluetooth: hci0: Firmware loaded in 1603830 usecs Nov 16 22:34:47 nixos kernel: Bluetooth: hci0: Waiting for device to boot Nov 16 22:34:47 nixos kernel: Bluetooth: hci0: Device booted in 14713 usecs Nov 16 22:34:47 nixos kernel: Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-19-0-4.ddc Nov 16 22:34:47 nixos kernel: Bluetooth: hci0: Applying Intel DDC parameters completed Nov 16 22:34:47 nixos kernel: Bluetooth: hci0: Firmware revision 0.4 build 249 week 27 2023 Nov 16 22:34:47 nixos kernel: NVRM nvAssertOkFailedNoLog: Assertion failed: Invalid data passed [NV_ERR_INVALID_DATA] (0x00000025) returned from PlatformRequestHandler failed to get target temp from SBIOS @ platform_request_handler_ctrl.c:2146 Nov 16 22:34:47 nixos kernel: NVRM nvAssertFailedNoLog: Assertion failed: PRH failed to update thermal limit! @ platform_request_handler.c:685 Nov 16 22:34:47 nixos systemd-modules-load[497]: Inserted module 'nvidia_uvm' Nov 16 22:34:47 nixos kernel: nvidia-uvm: Loaded the UVM driver, major device number 237. Nov 16 22:34:47 nixos kernel: [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1 Nov 16 22:34:47 nixos systemd-modules-load[497]: Inserted module 'nvidia_drm' Nov 16 22:34:47 nixos systemd[1]: Finished Load Kernel Modules. I don't really know if this is crashing the OS, but this was the only error that I could find. I have intel processor, plus Nvidia MX450 dedicated GPU. I am using hyprland on NixOS. My video and audio settings in hardware-configuration.nix are as follows : # Graphics Stuff hardware.opengl = { enable = true; driSupport = true; driSupport32Bit = true; }; hardware.nvidia = { modesetting.enable = true; open = true; nvidiaSettings = true; package = config.boot.kernelPackages.nvidiaPackages.stable; }; hardware.nvidia.prime = { offload = { enable = true; enableOffloadCmd = true; }; intelBusId = "PCI:00:02:0"; nvidiaBusId = "PCI:01:00:0"; }; # Audio Stuff services.pipewire = { enable = true; alsa.enable = true; audio.enable = true; alsa.support32Bit = true; pulse.enable = true; }; Hyprland parameters are as follows : programs.hyprland = { enable = true; xwayland = { enable = true; }; }; x11 parameters : services.xserver = { enable = true; layout = "us"; videoDrivers = ["nvidia"]; libinput = { enable = true; }; };

1
0
nix
Nix travel_unique_world 10 months ago 50%
Webcam in my NIx-os not working.. (Asus laptop)

Any suggestions to make my internal webcam work, it works sometimes but sometimes not.. Installed nix os recently and pre-installed cheese webcam not showing my webcam and only No devices found . similar to online web apps too..

0
1
nix
Nix GroSZmeister 10 months ago 50%
Use NixOs or other Distro+ZFS

Hello, i cant decide whats better: NixOs with his Configuration File and Snapshots of the complete System or other Linux Distro with ZFS. Can you say whats make more sence on day2day use?

0
3
nix
Nix proofconstruct 10 months ago 100%
2023 Nix Developer Dialogues (live stream)

Reminder: the first episode of the [2023 Nix Developer Dialogues](https://discourse.nixos.org/t/2023-nix-developer-dialogues-live-stream) will be streamed **this Friday, 2023-11-17 10:30 UTC**. Hope to see you there!

2
1
nix
Nix TuringTestTwister 10 months ago 100%
Post-apocalyptic NixOS

Kind of a strange question, but let's say that the apocalypse occurs, or at least solar flares that knock out the internet for months. What services would you need to self-host to be able to arbitrarily configure and build a NixOS based system? Ideally, you'd point your system to self-hosted services, such as your own nixpkgs and binary cache, which get synced with public repos regularly. Is that all that is needed? Or would there be more to it? How would you ensure the cache has all needed packages? Presumably you wouldn't be able to rebuild a lot of packages without internet. Or can dependencies be cached as well?

1
9
nix
Nix Warm_Feature_7302 10 months ago 100%
Starting

So I have been using PopOS/Mint for a couple of years now and I regularly listen to Linux Unplugged and have been getting some FOMO when all they talk about how great NixOS is. So I guess my default starting point is going to be a Vm through VMware. My question is: Is this a good place to start? Should I just use a basic desktop on bare metal to get it running.

1
11
nix
Nix Asleep_Detective3274 10 months ago 100%
Python3.10-subliminal

Is anyone running the unstable channel having issues upgrading due to python3.10-subliminal failing to build?

1
0
nix
Nix no_brains101 10 months ago 25%
GitHub leaving git. What does it mean for nix?

I am new to nixOS. I hear github is moving away from git. Will nixOS be able to pull from it still or will we just lose access to every flake on github at once?

-2
14
nix
Nix hippoyd 10 months ago 80%
My mental model of nix

After about one year of using nix and nixos, I'm starting to "get" it. I think about the whole ecosystem as basically three layers. The top most layer is the nix language layer, which I think of as the haskell layer or the functional-programming layer. Without prior functional programming knowledge, the language is eventually going to cause you problems. That top layer and the nix language expressions written in it then feed into the middle layer, which I think of as the shell layer. The top layer creates a perfectly bespoke shell environment for you to run all kinds of shell things and build-y things like make and autoconf and all that to create your package. Then that middle layer feeds into the bottom layer which is the nix store, which is closest to a file-system layer. But really it's an abstraction atop the file system. I usually just think of the filesystem as "the filesystem", but with nix-store it's best to think of it as a layer atop of it. So to recap, the three layers are 1. the haskell layer (nix language layer) 2. the bash / shell layer (the bespoke shell with env vars and tools create from layer 1) 3. the file system layer (the result of builds from layer 2) Now this can kind of go fractal, as the module system is kind-of atop the haskell-layer, as it's a domain specific language written in nix. But eventually the module system descends downward and goes through the shell-layer and file-system layer. Nixpkgs is a huge piece of code that is clearly in the haskell-layer. You can get away with not knowing how to write nix by using lots of boilerplate from nixpkgs, but you might hit a wall eventually when trying to do something custom. The shell layer is inhabited by things like composing $PATH, $RPATH, environment variables, the "standard environment" package, and lots of wild bash-isms. I mean the standard environment basically is a 2000-line clever bash script that's meant to be an abstraction atop all kinds of build systems. Also in this layer is autoconf, a build tool populated by monstrous shell scripts and perl scripts and the m4 macro language. It's what's used to build nearly all GNU projects, so it's inescapable. This layer seems to be the least discussed and documented. But if you ever find some project that isn't in nixpkgs, you'll probably spend a lot of time debugging in this layer. If you find yourself here, you best hope your bash skills and build-tools knowledge will see you through to the final layer. Finally we get to the filesystem layer where everything eventually goes to live. Coding against this layer usually happens between machines, as in via the substitute method where you can download a build from a remote /nix/store. In essence you're going straight from layer 1 to layer 3, by letting some other machine do the layer 2 for you. I don't know if this is helpful or not, but if it is I can make a better presentation on this. It's helped me understand the wild world that is nix and nixos and think about what layers different tools live in. I learned all this by forcing myself to go through the QEMU 2020 advent calendar and build nix expressions to make all of the images run. Sadly that site doesn't seem to be up anymore [https://www.qemu-advent-calendar.org/](https://www.qemu-advent-calendar.org/). My code is here if anyone is interested: [https://github.com/idrisr/qemu-advent](https://github.com/idrisr/qemu-advent)

3
2
nix
Nix Cyph0n 10 months ago 100%
compose2nix: Generate a NixOS config from a Docker Compose project

Repo: [https://github.com/aksiksi/compose2nix](https://github.com/aksiksi/compose2nix) I've been working on a CLI tool that takes a Docker Compose project and converts into a NixOS config file consisting of `oci-containers` (Podman or Docker) and associated systemd services. This file can then be imported as-is as part of your NixOS `configuration.nix`. You can see a sample input and output here: [https://github.com/aksiksi/compose2nix#sample](https://github.com/aksiksi/compose2nix#sample) This tool is still early in development, but the basic functionality works. I would appreciate any feedback or input on what features you'd want to see in a tool like this. Thanks!

7
5
nix
Nix CalebCodes94 10 months ago 100%
How I switch channels

I noticed some posts about how to switch from stable to unstable. This is my method at the moment, not sure if I am able to specify in configuration.nix which package uses which channel, I know nix-env isnt the most popular, but it works for me for now.

1
4
nix
Nix Extreme_Ocelot_3149 10 months ago 100%
relatively old kernel?

Hi, i was just switching to the unstable channel and NixOS in general, but I'm still on Kernel version 6.1.xx. Is this normal? On my Fedora Laptop I didnt update quite a while is Kernel version 6.5.xx installed. I dont have a problem with that, as long as everything just works (yeah funny i know). But why is that, maybe a bug? Or just the spirit of this distribution?

1
1
nix
Nix Finally-Here 10 months ago 100%
I added Continous Integration to my personal Nix configuration

Github CI now builds my NixOS starter template. Next, I'm looking into a GitHub bot to automatically update my flake and merge it only if the build passes. I found this to be super cool. How is this not the future of Linux? [https://github.com/dustinlyons/nixos-config](https://github.com/dustinlyons/nixos-config) Edits: * Just learning about the Determinate Systems [Update Flake Lock](https://github.com/DeterminateSystems/update-flake-lock) Github Action. Looks like I won't have to write anything myself! * Adding Cachix to the mix should greatly speed things up, u/One-Triggy-Boi left some good examples below. ​

1
0
nix
Nix etherswangel 10 months ago 100%
How does Nix (package manager) work on Apple Silicon?

Hi, I have been working on Void Linux for a while and all the develop dependencies are installed by nix. With nix, I can make sure every project is using the right version of libraries with no conflicts, even though it causes much inconvenience (especially with python). Now I purchased a new macbook, and I wonder if I can keep using nix to manage environments, a few points of my concerns listed: - it doesn't support single user install on macos and requires a lot more steps than on linux, can I uninstall nix and all its packages cleanly without leaving anything? (That's my original point of using nix, develop without ruining the system) - is there enough cache for apple silicon, or I have to build locally for the most time? - is there any package in nixpkgs actually unzipping a .deb or doing sth similar? Thanks for your help!

2
2
nix
Nix hydraByte 10 months ago 100%
When to use nix build vs nix shell vs nix develop vs nix run?

Hey Nix friends! I’ve been working on learning the basics of Nix for awhile now, in particular focusing on flakes. One of the things that still eludes me is the different use cases for the main flake commands. When would you use `nix build` vs `nix shell` vs `nix develop` vs `nix run`? What are the strengths and weaknesses of each? So far, I feel like nix develop is the command I am most familiar with from setting up my development environment on a web app, but I’d really like to understand all of them better.

5
1
nix
Nix nisasters 10 months ago 100%
Updating an overlay has no effect

I’m at a loss here. After searching for solutions, I’ve come to ask for opinions. In my configuration.nix I have 5 overlays defined. I’ve modified the source code of all of them at some point and their changes are implemented after running ‘sudo nixos-rebuild switch’. At some point one of the overlays just stopped making the changes. Running that command does nothing to change the program. I’ve removed the program and it’s overlay, run the garbage collector, and when I add them back, it’s exactly the same as it was. As if it’s building the program from an older cached version of the overlay. Any thoughts? Thank you

2
0
nix
Nix rglullis 11 months ago 77%
Community seems dead. Can we mirror reddit posts here?

Despite this being the "official" nix community on the Fediverse, it seems quite inactive. Others like !nix@programming.dev and !nixos@infosec.pub are only slightly better. I'm wondering if the admins would be okay with me configuring my [fediverser](https://communick.news/post/266268) instance to mirror reddit posts and comments here?

12
11
nix
Nix rglullis 1 year ago 83%
KDE Plasma controls are very slow to respond since channel update package upgrades.

cross-posted from: https://programming.dev/post/1699017 > So the issue that I'm having wasn't entirely noticeable at first, so I didn't realize that I might need to revert something until I went ahead and made a lot more changes to my install. I've learned something here about the value of a GitHub repo to store my configurations. > > So as of five days ago, I had a perfectly functional KDE Plasma NixOS daily driver. I recall having an issue with Discord and crackling audio that resulted me toggling some pulse audio and pipewire options to avoid a conflict. It seemed to work. Then on the next day, I did `nix-channel --update` and `nixos-rebuild switch --upgrade` just because I wanted to update since it'd been awhile. > > We then had a situation where we had to adopt a dog for re-homing, so I didn't spend long with these changes. A few days later, I've finally been able to settle down and use my computer again, but I'm noticing that SO MUCH of my UI is being ridiculously slow to respond. Mostly my Application Launcher and the password prompt to login. But it's pervasive through most apps except Firefox (thankfully, so I can post this). > > If I load the generation from the 8th, everything behaves just as expected. But unfortunately, I do not have the configuration.nix from that day or any day prior to now. But I have a decent recollection of what I've changed in the configuration file since. Regardless, nothing I do seems to resolve it. I'm not sure if the channel and package upgrades did something that isn't under the configuration.nix file's control. > > Any help is appreciated. I will post my sanitized configuration.nix below. Any other feedback for optimizations is more than welcome. Thanks. > > > > ``` > # Edit this configuration file to define what should be installed on > # your system. Help is available in the configuration.nix(5) man page > # and in the NixOS manual (accessible by running ‘nixos-help’). > > { config, pkgs, ... }: > > { > imports = > [ # Include the results of the hardware scan. > ./hardware-configuration.nix > ]; > > # ==================== > # User > # ==================== > > # Define a user account. Don't forget to set a password with ‘passwd’. > users.users.userguy = { > isNormalUser = true; > description = "userguy"; > extraGroups = [ "networkmanager" "wheel" ]; > packages = with pkgs; [ > unzip > git > dotnet-sdk > rustup > go > brave > vivaldi > librewolf > firefox > kate > neovim > vscodium > obs-studio > krita > discord > element-desktop > spotify > spectacle > ]; > }; > > # Enable automatic login for the user. > services.xserver.displayManager.autoLogin.enable = true; > services.xserver.displayManager.autoLogin.user = "userguy"; > > # ==================== > # System Packages > # ==================== > > # Allow unfree packages > nixpkgs.config.allowUnfree = true; > > # List packages installed in system profile. To search, run: > # $ nix search wget > environment.systemPackages = with pkgs; [ > # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. > wget > ntfs3g > exfat > gcc > ncurses > gnumake > direnv > steam > steam-run > protontricks > # support both 32- and 64-bit applications > wineWowPackages.stable > # support 32-bit only > wine > # support 64-bit only > (wine.override { wineBuild = "wine64"; }) > # wine-staging (version with experimental features) > wineWowPackages.staging > # winetricks (all versions) > winetricks > # native wayland support (unstable) > wineWowPackages.waylandFull > lutris > (lutris.override { > extraLibraries = pkgs: [ > # List library dependencies here > ]; > extraPkgs = pkgs: [ > # List package dependencies here > ]; > }) > ]; > > # ==================== > # Games > # ==================== > > programs.steam = { > enable = true; > remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play > dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server > }; > > # ==================== > # Display > # ==================== > > # Enable the X11 windowing system. > services.xserver.enable = true; > > # Enable the KDE Plasma Desktop Environment. > services.xserver.displayManager.sddm.enable = true; > services.xserver.desktopManager.plasma5.enable = true; > > # Configure keymap in X11 > services.xserver = { > layout = "us"; > xkbVariant = ""; > }; > > # ==================== > # Nvidia > # ==================== > > # nvidia setup > # Make sure opengl is enabled > hardware.opengl = { > enable = true; > driSupport = true; > driSupport32Bit = true; > }; > # Tell Xorg to use the nvidia driver > services.xserver.videoDrivers = ["nvidia"]; > hardware.nvidia = { > # Modesetting is needed for most wayland compositors > modesetting.enable = true; > # Use the open source version of the kernel module > # Only available on driver 515.43.04+ > open = true; > # Enable the nvidia settings menu > nvidiaSettings = true; > # Optionally, you may need to select the appropriate driver version for your specific GPU. > package = config.boot.kernelPackages.nvidiaPackages.stable; > }; > > # ==================== > # Fonts > # ==================== > > fonts.fonts = with pkgs; [ > noto-fonts > noto-fonts-cjk > noto-fonts-emoji > liberation_ttf > fira-code > fira-code-symbols > mplus-outline-fonts.githubRelease > dina-font > proggyfonts > source-code-pro > roboto > roboto-mono > ]; > > # ==================== > # Sound > # ==================== > > # Enable sound with pipewire. > sound.enable = true; > hardware.pulseaudio.enable = true; > security.rtkit.enable = true; > services.pipewire = { > enable = false; > alsa.enable = true; > alsa.support32Bit = true; > pulse.enable = true; > # If you want to use JACK applications, uncomment this > #jack.enable = true; > > # use the example session manager (no others are packaged yet so this is enabled by default, > # no need to redefine it in your config for now) > #media-session.enable = true; > }; > > # Enable touchpad support (enabled default in most desktopManager). > # services.xserver.libinput.enable = true; > > # ==================== > # Bootloader > # ==================== > > boot.loader.systemd-boot.enable = true; > boot.loader.efi.canTouchEfiVariables = true; > > # ==================== > # Networking > # ==================== > > networking.hostName = "nixos"; # Define your hostname. > # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. > > # Configure network proxy if necessary > # networking.proxy.default = "http://user:password@proxy:port/"; > # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; > > # Enable networking > networking.networkmanager.enable = true; > networking.nameservers = ["94.140.14.140" "94.140.14.141"]; > > # ==================== > # System > # ==================== > > # Set your time zone. > time.timeZone = "America/Los_Angeles"; > > # Use local time to keep windows and nixos in sync > time.hardwareClockInLocalTime = true; > > # Select internationalisation properties. > i18n.defaultLocale = "en_US.UTF-8"; > > i18n.extraLocaleSettings = { > LC_ADDRESS = "en_US.UTF-8"; > LC_IDENTIFICATION = "en_US.UTF-8"; > LC_MEASUREMENT = "en_US.UTF-8"; > LC_MONETARY = "en_US.UTF-8"; > LC_NAME = "en_US.UTF-8"; > LC_NUMERIC = "en_US.UTF-8"; > LC_PAPER = "en_US.UTF-8"; > LC_TELEPHONE = "en_US.UTF-8"; > LC_TIME = "en_US.UTF-8"; > }; > > # ==================== > # Printing > # ==================== > > # Enable CUPS to print documents. > services.printing.enable = true; > > # Some programs need SUID wrappers, can be configured further or are > # started in user sessions. > # programs.mtr.enable = true; > # programs.gnupg.agent = { > # enable = true; > # enableSSHSupport = true; > # }; > > # List services that you want to enable: > > # Enable the OpenSSH daemon. > # services.openssh.enable = true; > > # Open ports in the firewall. > # networking.firewall.allowedTCPPorts = [ ... ]; > # networking.firewall.allowedUDPPorts = [ ... ]; > # Or disable the firewall altogether. > # networking.firewall.enable = false; > > # This value determines the NixOS release from which the default > # settings for stateful data, like file locations and database versions > # on your system were taken. It‘s perfectly fine and recommended to leave > # this value at the release version of the first install of this system. > # Before changing this value read the documentation for this option > # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). > system.stateVersion = "23.05"; # Did you read the comment? > } > > ```

4
0
nix
Nix rglullis 1 year ago 75%
Constantly getting this prompt when display wants to go blank. What is missing?

I guess that my user needs to be part of some group, but I am not sure which.

2
3