pinwheel: Cleanup configuration.nix

This commit is contained in:
Alexander Heldt
2023-09-28 10:45:19 +02:00
parent 7d54370900
commit c06b5a8b93

View File

@@ -1,9 +1,4 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ inputs, system, pkgs, ... }: { inputs, system, pkgs, ... }:
{ {
imports = imports =
[ [
@@ -41,26 +36,34 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
boot.kernelPackages = pkgs.linuxPackages_latest; # Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Bootloader. boot = {
boot.loader.systemd-boot.enable = true; kernelPackages = pkgs.linuxPackages_latest;
boot.loader.efi.canTouchEfiVariables = true;
# Setup keyfile loader = {
boot.initrd.secrets = { systemd-boot.enable = true;
"/crypto_keyfile.bin" = null; efi.canTouchEfiVariables = true;
};
initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
}; };
networking.hostName = "pinwheel"; # Define your hostname. networking = {
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. hostName = "pinwheel";
# Configure network proxy if necessary wireless.enable = false; # Wireless is managed by networkmanager
# networking.proxy.default = "http://user:password@proxy:port/"; networkmanager.enable = true;
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; };
# Enable networking # Open ports in the firewall.
networking.networkmanager.enable = true; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Stockholm"; time.timeZone = "Europe/Stockholm";
@@ -94,13 +97,8 @@
packages = []; packages = [];
}; };
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
inputs.agenix.packages."${system}".default inputs.agenix.packages."${system}".default
coreutils coreutils
gnumake gnumake
bash bash
@@ -114,16 +112,6 @@
liberation_ttf liberation_ttf
]; ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh = { services.openssh = {
enable = true; enable = true;
@@ -134,12 +122,6 @@
}]; }];
}; };
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave
@@ -147,5 +129,4 @@
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment? system.stateVersion = "23.05"; # Did you read the comment?
} }