Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 172494

NixOS is a Nix-based Linux distribution. Thanks to Nix, it supports atomic upgrades, rollbacks and multi-user package management, and it has a declarative approach to system configuration management that makes it easy to reproduce a configuration on another machine.

1
vote
To create a file in /etc on NixOS, use environment.etc in configuration.nix. Here's an example: environment.etc = { # Creates /etc/nanorc nanorc = { text = '' whatever you want to put in the file goes here. ''; # The UNIX file mode bits mode = "0440"; }; }; …
answered Feb 12 by Emmanuel Rosa
4
votes
Firstly, adding the user with useradd and editing users.extraUsers is redundant. I've never bothered with useradd on NixOS. As for the sudo configuration, what you do is set the attribute to a …
answered Jul 10 '17 by Emmanuel Rosa
2
votes
The simplest way to go is to install from the LiveCD. nixos-generate-config will regenerate the hardware config, but if it finds configuration.nix already exists it will leave it alone. And nixosNixOS and just continue where you left off. Some things to be mindful of: NixOS will install systemd-boot by default on EFI systems. So you'll end up with a new EFI executable along side the ones …
answered May 29 '18 by Emmanuel Rosa
0
votes
Unlike other distros, on NixOS even if you happen to install the right libraries it won't make a difference because packages must declare their dependencies for a build to succeed. For example, if … use "nv" which is the open-source driver, or "nvidia" which is the proprietary driver. See https://nixos.org/nixos/manual/#idm140737316337280 …
answered Aug 20 '17 by Emmanuel Rosa
5
votes
The NixOS configuration does not include user configuration, only system-wide configuration. The configuration you linked to generates /etc/tmux.conf, but not ~/.tmux.conf. …
answered Jul 13 '17 by Emmanuel Rosa
1
vote
There are two similarly-named attributes in networking.firewall: allowedTCPPorts allowedTCPPortRanges The former is a list, so a value of [80 81 5900] would be acceptable. But, the latter is a set …
answered Mar 23 by Emmanuel Rosa
6
votes
There are two Java compilers available via Nixpkgs: OpenJDK and OracleJDK, named openjdk and oraclejdk, respectively. Note that the OracleJDK doesn't seem to be available in the top-level expression …
answered Nov 11 '17 by Emmanuel Rosa
2
votes
Try the configuration option: i18n.consoleKeyMap = "dvorak";
answered Jul 10 '17 by Emmanuel Rosa
1
vote
According to the NixOps manual... Keys from deployment.keys are stored under /run/ on a temporary filesystem and will not persist across a reboot...Note that all nixops commands implicitly uploa …
answered Jun 8 '17 by Emmanuel Rosa
2
votes
The NixOS configuration consists of two files (although you can break it up into more files): configuration.nix and hardware-configuration.nix. Both files are stored in /etc/nixos and they are text files. Hence, you can certainly put them in a GIT repo. …
answered May 8 by Emmanuel Rosa
0
votes
: configuration.nix { config, lib, pkgs, ... }: { # yada, yada environment.etc."configuration.nix".source = /etc/nixos/configuration.nix; }; The environment.etc option allows you to declarative-ly … create files in /etc. Nix will detect /etc/nixos/configuration.nix as a path type (paths are first-class types in Nix) and thus copy it's contents into the Nix store. The result is a symbolic link …
answered Jan 2 '18 by Emmanuel Rosa
2
votes
NixOS does not manage user-specific configuration. Full-stop. As for the browsers not being found by the configuration dialog, try installing them via /etc/nixos/configuration.nix instead of with … nix-env. Tip If you install packages declaratively and imperatively you'll end up having to manage two dependency trees. One via nixos-rebuild --upgrade boot and another by nix-channel --update && nix-env -u. Meaning that if you forget either update process you'll end up with old packages installed. …
answered Jul 20 '17 by Emmanuel Rosa
3
votes
On NixOS fonts cannot be installed via nix-env because for fonts to be found a database of sorts needs to be created. That requires side-effects, yet Nix packages are pure functions. In general, you … can think of side-effecting code as being handled by nixos-rebuild; hence you'll need to use configuration.nix: fonts.fonts = [ pkgs.cm_unicode ]; You can watch my video on NixOS fonts for a …
answered Mar 1 '18 by Emmanuel Rosa
1
vote
The file /etc/systemd/journald.conf is produced by the NixOS systemd module. There are configuration options for journald, but not one specifically for SystemMaxUse. What you can do is use the services.journald.extraConfig option to append whatever else you need to journald.conf. …
answered Aug 31 '18 by Emmanuel Rosa
2
votes
Currently, there's no NixOS configuration option to set the ngix listen port. But you can add a partial ngix configuration verbatim to configuration.nix using the appendHttpConfig option. Something …
answered May 8 '17 by Emmanuel Rosa

15 30 50 per page