Files
laptop-config/configuration.nix
T

173 lines
4.2 KiB
Nix
Raw Normal View History

2025-06-06 11:12:31 -05:00
{ config, lib, pkgs, ... }:
{
2025-06-06 11:55:59 -05:00
imports = [ ];
2025-06-06 11:12:31 -05:00
# Use the systemd-boot EFI boot loader.
# boot.loader.systemd-boot.enable = true;
# boot.loader.efi.canTouchEfiVariables = true;
# Grub Boot Loader Setup
boot.loader.grub = {
enable = true;
zfsSupport = true;
efiSupport = true;
efiInstallAsRemovable = true;
mirroredBoots = [
2025-06-07 15:31:09 -05:00
{
devices = [ "nodev" ];
path = "/boot";
}
2025-06-06 11:12:31 -05:00
];
};
2025-06-07 15:31:09 -05:00
# needed to allowOther in home.nix
programs.fuse.userAllowOther = true;
2025-06-06 11:12:31 -05:00
networking.hostName = "nixos";
networking.hostId = "4cb9fc76";
networking.wireless = {
enable = true;
networks."flooper".pskRaw = "***REMOVED***";
networks."NU-Guest" = {
priority = -1;
};
};
networking.wireless.userControlled.enable = true; # Enable user to edit wpa_supplicant.
networking.networkmanager.enable = false; # Easiest to use and most distros use this by default.
# Set your time zone.
time.timeZone = "America/Chicago";
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# useXkbConfig = true; # use xkb.options in tty.
# };
# Enable the X11 windowing system.
# services.xserver.enable = true;
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
services.printing = {
enable = true;
browsed.enable = true;
browsing = true;
};
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
# Enable sound.
# hardware.pulseaudio.enable = true;
# OR
# services.pipewire = {
# enable = true;
# pulse.enable = true;
# };
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.roy = {
isNormalUser = true;
2025-06-07 15:32:52 -05:00
hashedPassword = "$y$j9T$4yOAv6R7Xtn23XmhSSC8g.$T1CckfWgxjEyZshjBzcaMO9WidP.q..OG7LwtXFTw12";
2025-06-06 11:12:31 -05:00
extraGroups = [ "wheel" ];
};
users.users.net = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
packages = with pkgs; [
tree
git
];
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
gimp
kitty
rose-pine-hyprcursor
vim
wget
];
fonts.packages = with pkgs; [
nerd-fonts.mononoki
];
# 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:
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
programs.waybar.enable = true;
programs.firefox = {
enable = true;
policies = {
ExtensionSettings = {
"*".installation_mode = "blocked";
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
};
};
};
environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.variables = {
EDITOR = "nvim";
};
# 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 = true;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# INITIAL system version
# CURRENT nixpkgs version = 25.05
system.stateVersion = "24.11";
}