Jafner.net/nixos/hosts/xps13_9350/configuration.nix
2024-09-12 14:17:06 -07:00

101 lines
2.4 KiB
Nix

{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
environment.etc."current-system-packages".text =
let
packages = builtins.map (p: "${ p.name }") config.environment.systemPackages;
sortedUnique = builtins.sort builtins.lessThan (pkgs.lib.lists.unique packages);
formatted = builtins.concatStringsSep "\n" sortedUnique;
in
formatted;
security.sudo = {
enable = true;
extraRules = [{
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
groups = [ "wheel" ];
}];
};
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "joey-laptop";
networking.networkmanager.enable = true;
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
services.xserver.enable = true;
#services.displayManager.sddm.enable = true;
#services.desktopManager.plasma6.enable = true;
services.xserver.xkb = {
layout = "us";
variant = "";
};
services.printing.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
users.users.joey = {
isNormalUser = true;
description = "joey";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
];
};
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = "joey";
systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;
programs.firefox.enable = true;
programs.hyprland.enable = true;
programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
git
];
system.stateVersion = "24.05";
}