Group nix/nixpkgs config & enable autoOptimiseStore

This commit is contained in:
Henrik Lissner 2019-09-07 00:28:52 -04:00
parent cfb6d890c6
commit 221df3df30
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -7,12 +7,16 @@
imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
<home-manager/nixos>
/etc/nixos/hardware-configuration.nix
];
nix.nixPath = options.nix.nixPath.default ++ [
nix = {
nixPath = options.nix.nixPath.default ++ [
"config=/etc/dotfiles/config"
];
autoOptimiseStore = true;
trustedUsers = [ "root" "@wheel" ];
};
nixpkgs.config.allowUnfree = true;
# Nothing in /tmp should survive a reboot
boot.cleanTmpDir = true;
@ -20,8 +24,6 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.config.allowUnfree = true;
environment = {
systemPackages = with pkgs; [
# Just the bear necessities~
@ -57,7 +59,6 @@
# time.timeZone = "Europe/Copenhagen";
# Set up hlissner user account
nix.trustedUsers = [ "root" "@wheel" ];
users.users.hlissner = {
isNormalUser = true;
uid = 1000;