OSAuto, sane nix defaults
This commit is contained in:
parent
d833f04aa3
commit
d02533517f
1 changed files with 16 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
|
||||
{
|
||||
options.system = {
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
"Enable if you are running a non-EFI system";
|
||||
users.bigWheels = lib.mkOption { default = []; };
|
||||
};
|
||||
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.system.isNonEFI {
|
||||
boot.loader.grub.enable = false;
|
||||
|
|
@ -29,15 +29,26 @@
|
|||
|
||||
# Packages & Default Packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix = {
|
||||
registry.nixpkgs.flake = inputs.nixpkgs;
|
||||
gc = { automatic = true; options = "--delete-older-than 5d"; };
|
||||
channel.enable = false;
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
keep-going = true;
|
||||
use-xdg-base-directories = true;
|
||||
experimental-features = [
|
||||
"flakes"
|
||||
"nix-command"
|
||||
];
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
neovim
|
||||
xdg-user-dirs
|
||||
] ++ config.system.extraPkgs;
|
||||
|
||||
# XDG Compliance
|
||||
nix.settings.use-xdg-base-directories = true;
|
||||
|
||||
users = {
|
||||
users = builtins.listToAttrs (map (
|
||||
user: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue