nixOS

image

i have switched to nixos from artix, because I Love Partial Updates!

havent fully made myself at home (after a very wonky installation) but it SEEMS to be working, other than wine...

heres the config

{ config, lib, pkgs, ... }:

{
  imports = [
    ./hardware-configuration.nix
  ];

  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  boot.kernelPackages = pkgs.linuxPackages_6_8;

  networking.hostName = "serrano";
  networking.networkmanager.enable = true;

  time.timeZone = "Europe/Berlin";

  i18n.defaultLocale = "en_US.UTF-8";

  i18n.extraLocaleSettings = {
    LC_TIME = "de_DE.UTF-8";
  };

  services.xserver = {
    enable = true;
    layout = "de";
    xkbVariant = "";
    displayManager.lightdm.enable = true;
    desktopManager.xfce.enable = true;
  };

  console.keyMap = "de";

  sound.enable = true;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
  };

  environment.systemPackages = with pkgs; [
    vim
    wget
    htop
    hyfetch
    tigervnc
    gcc
    gnumake
    flameshot
    wineWowPackages.stable
    vscode.fhs
    git
    xfce.xfce4-pulseaudio-plugin
    xfce.xfce4-clipman-plugin
    xfce.xfce4-whiskermenu-plugin
    python3
    qemu
    dos2unix
  ];

  users.users.adam = {
    isNormalUser = true;
    extraGroups = [ "networkmanager" "wheel" ];
  };
  security.sudo.wheelNeedsPassword = false;

  programs.firefox = {
    enable = true;
    package = pkgs.firefox-devedition-bin;
  };

  nixpkgs.config.allowUnfree = true;

  services.openssh.enable = true;
  services.tlp.enable = true;

  networking.firewall.enable = false;

  zramSwap.enable = true;
  swapDevices = [ {
    device = "/var/lib/swapfile";
    size = 8 * 1024;
  } ];

  system.stateVersion = "23.11";
}