updated nixos
This commit is contained in:
+38
-50
@@ -5,65 +5,53 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [ (final: prev: {
|
||||
inherit (prev.lixPackageSets.stable)
|
||||
nixpkgs-review
|
||||
nix-eval-jobs
|
||||
nix-fast-build
|
||||
colmena;
|
||||
}) ];
|
||||
nix.package = pkgs.lixPackageSets.stable.lix;
|
||||
|
||||
imports =
|
||||
[
|
||||
imports = [ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./pkg.nix
|
||||
./services.nix
|
||||
];
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
fontconfig
|
||||
wayland
|
||||
libx11
|
||||
libxcursor
|
||||
libxext
|
||||
libxi
|
||||
|
||||
|
||||
];
|
||||
|
||||
./pkg/dev.nix
|
||||
./pkg/core.nix
|
||||
./pkg/userland.nix
|
||||
];
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
||||
networking.hostName = "f1ndm3";
|
||||
networking.networkmanager.enable = true;
|
||||
time.timeZone = "America/Chicago";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
# Use latest kernel.
|
||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_7_1;
|
||||
|
||||
users.users.supa = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "libvirtd" ];
|
||||
networking.hostName = "fzfound"; # Define your hostname.
|
||||
|
||||
# Configure network connections interactively with nmcli or nmtui.
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Chicago";
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
users.defaultUserShell = pkgs.bash;
|
||||
programs.neovim.defaultEditor = true;
|
||||
|
||||
# graphics
|
||||
|
||||
hardware.graphics.enable = true;
|
||||
hardware.nvidia.open = true;
|
||||
|
||||
|
||||
# firewall
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ ];
|
||||
networking.firewall.allowedUDPPorts = [ ];
|
||||
networking.firewall.enable = true;
|
||||
|
||||
# virtualisation
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.esse = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "docker" "disk" ]; # Enable ‘sudo’ for the user.
|
||||
};
|
||||
users.groups.libvirtd.members = ["esse"];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
security.polkit.enable = true;
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
# :(
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ "*" ];
|
||||
# networking.firewall.allowedUDPPorts = [ "*" ];
|
||||
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# Copy the NixOS configuration file and link it from the resulting system
|
||||
# (/run/current-system/configuration.nix). This is useful in case you
|
||||
|
||||
Reference in New Issue
Block a user