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