|
| 1 | +{unixpkgs, ...} @ inputs: { |
| 2 | + config, |
| 3 | + pkgs, |
| 4 | + lib, |
| 5 | + ... |
| 6 | +}: { |
| 7 | + imports = [ |
| 8 | + ]; |
| 9 | + |
| 10 | + # Linux kernel |
| 11 | + boot = { |
| 12 | + # kernelPackages = pkgs.linuxKernel.packages.linux_6_0; |
| 13 | + kernelPackages = pkgs.linuxKernel.packages.linux_latest; |
| 14 | + supportedFilesystems = ["zfs" "ext4"]; |
| 15 | + zfs.enableUnstable = true; |
| 16 | + }; |
| 17 | + |
| 18 | + # Enable networking |
| 19 | + networking.networkmanager.enable = true; |
| 20 | + |
| 21 | + # Set your time zone. |
| 22 | + time.timeZone = "America/Chicago"; |
| 23 | + |
| 24 | + # Select internationalisation properties. |
| 25 | + i18n = { |
| 26 | + defaultLocale = "en_US.UTF-8"; |
| 27 | + }; |
| 28 | + |
| 29 | + # Enable the X11 windowing system. |
| 30 | + services.xserver.enable = true; |
| 31 | + |
| 32 | + # personal modules |
| 33 | + justinrubek = { |
| 34 | + development.containers = { |
| 35 | + enable = true; |
| 36 | + }; |
| 37 | + }; |
| 38 | + |
| 39 | + # Define a user account. Don't forget to set a password with ‘passwd’. |
| 40 | + users.users = { |
| 41 | + justin = { |
| 42 | + isNormalUser = true; |
| 43 | + description = "Justin"; |
| 44 | + extraGroups = ["networkmanager" "wheel" "docker"]; |
| 45 | + shell = pkgs.zsh; |
| 46 | + }; |
| 47 | + }; |
| 48 | + |
| 49 | + # Allow unfree packages |
| 50 | + nixpkgs.config.allowUnfree = true; |
| 51 | + |
| 52 | + # List packages installed in system profile. To search, run: |
| 53 | + # $ nix search wget |
| 54 | + environment.systemPackages = with pkgs; [ |
| 55 | + ]; |
| 56 | + |
| 57 | + services.openssh = { |
| 58 | + enable = true; |
| 59 | + permitRootLogin = "no"; |
| 60 | + }; |
| 61 | + |
| 62 | + # Open ports in the firewall. |
| 63 | + # networking.firewall.allowedTCPPorts = [ ... ]; |
| 64 | + # networking.firewall.allowedUDPPorts = [ ... ]; |
| 65 | + # Or disable the firewall altogether. |
| 66 | + # networking.firewall.enable = false; |
| 67 | + |
| 68 | + # This value determines the NixOS release from which the default |
| 69 | + # settings for stateful data, like file locations and database versions |
| 70 | + # on your system were taken. It‘s perfectly fine and recommended to leavecatenate(variables, "bootdev", bootdev) |
| 71 | + # this value at the release version of the first install of this system. |
| 72 | + # Before changing this value read the documentation for this option |
| 73 | + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
| 74 | + system.stateVersion = "22.11"; # Did you read the comment? |
| 75 | + |
| 76 | + nix = { |
| 77 | + extraOptions = '' |
| 78 | + experimental-features = nix-command flakes |
| 79 | + ''; |
| 80 | + }; |
| 81 | +} |
0 commit comments