dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

default.nix (597B)


      1 {
      2   lib,
      3   ...
      4 }:
      5 {
      6   imports = lib.mapAttrsToList (path: _: ./. + "/${path}") (
      7     lib.filterAttrs (path: type: type == "directory") (builtins.readDir ./.)
      8   );
      9 
     10   system.stateVersion = lib.mkDefault "26.05";
     11 
     12   nixpkgs = {
     13     hostPlatform = lib.mkDefault "x86_64-linux";
     14     config.allowUnfree = true;
     15   };
     16 
     17   nix.settings = {
     18     experimental-features = [
     19       "nix-command"
     20       "flakes"
     21     ];
     22     trusted-users = [ "@wheel" ];
     23   };
     24 
     25   users.mutableUsers = false;
     26 
     27   security.sudo.extraConfig = ''
     28     Defaults lecture = never
     29   '';
     30 
     31   boot.loader.systemd-boot.configurationLimit = 20;
     32 }