2024-03-27 23:45:23 +01:00
|
|
|
|
{ config, pkgs, lib, inputs, outputs, system, helperLib, ... }: {
|
2024-03-25 12:37:10 +01:00
|
|
|
|
imports =
|
|
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
|
|
./hardware-configuration.nix
|
2024-03-27 23:45:23 +01:00
|
|
|
|
outputs.nixosModules.default
|
2024-03-25 12:37:10 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
|
|
|
|
|
|
# Bootloader.
|
2024-03-27 23:45:23 +01:00
|
|
|
|
boot.loader = {
|
|
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
2024-03-25 12:37:10 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
2024-03-27 23:45:23 +01:00
|
|
|
|
networking = {
|
|
|
|
|
|
hostName = "remus";
|
|
|
|
|
|
networkmanager.enable = true;
|
|
|
|
|
|
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
2024-03-25 12:37:10 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
2024-03-27 23:45:23 +01:00
|
|
|
|
myNixOS = {
|
|
|
|
|
|
bundles.general-desktop.enable = true;
|
2024-03-25 12:37:10 +01:00
|
|
|
|
|
2024-03-27 23:45:23 +01:00
|
|
|
|
home-users = {
|
|
|
|
|
|
"prunebutt" = {
|
|
|
|
|
|
userConfig = ./home.nix;
|
|
|
|
|
|
userSettings = {
|
|
|
|
|
|
extraGroups = ["networkmanager" "wheel" "libvirtd" "docker"];
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
2024-03-25 12:37:10 +01:00
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
|
|
|
|
wget
|
|
|
|
|
|
git
|
2024-03-27 23:45:23 +01:00
|
|
|
|
libgcc
|
2024-03-25 12:37:10 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
# 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.
|
2024-03-27 23:45:23 +01:00
|
|
|
|
services.openssh.enable = true;
|
2024-03-25 12:37:10 +01:00
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
|
|
}
|