Skip to content

Instantly share code, notes, and snippets.

@jcpsimmons
Created May 13, 2023 17:46
Show Gist options
  • Save jcpsimmons/c8701d6b540e3289aea2433d499a9138 to your computer and use it in GitHub Desktop.
Save jcpsimmons/c8701d6b540e3289aea2433d499a9138 to your computer and use it in GitHub Desktop.
whatever.nix
{ config, pkgs, lib, modulesPath, ... }: rec {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; # actually idk what this does
nixpkgs.overlays = [ (import self.inputs.emacs-overlay) ];
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
users.users.jeff = {
uid = 1000;
shell = pkgs.fish;
isNormalUser = true;
home = "/home/jeff";
extraGroups = [ "wheel" ];
};
system = {
configurationRevision = lib.mkIf (self ? rev) self.rev;
stateVersion = "22.05";
autoUpgrade = {
enable = false;
allowReboot = false;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment