Group nix/nixpkgs config & enable autoOptimiseStore
This commit is contained in:
parent
cfb6d890c6
commit
221df3df30
11
default.nix
11
default.nix
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue