mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 16:58:34 -05:00
192 lines
4.5 KiB
Nix
192 lines
4.5 KiB
Nix
{
|
||
inputs,
|
||
outputs,
|
||
pkgs,
|
||
...
|
||
}: {
|
||
imports = [
|
||
# Include the results of the hardware scan.
|
||
./hardware-configuration.nix
|
||
|
||
../../modules/nixos/boot.nix
|
||
|
||
# Desktop environment
|
||
../../modules/nixos/niri.nix
|
||
|
||
# ../../modules/nixos/gnome.nix
|
||
../../modules/nixos/android-studio.nix
|
||
# ../../modules/nixos/docker.nix
|
||
../../modules/nixos/podman.nix
|
||
|
||
inputs.fw-fanctrl.nixosModules.default
|
||
];
|
||
|
||
nixpkgs = {
|
||
overlays = builtins.attrValues outputs.overlays;
|
||
|
||
config = {
|
||
allowUnfree = true;
|
||
permittedInsecurePackages = [
|
||
];
|
||
};
|
||
};
|
||
|
||
# Nix options
|
||
nix.optimise.automatic = true;
|
||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||
nix.settings.trusted-users = ["tyler" "@wheel"];
|
||
nix.settings = {
|
||
substituters = ["https://cosmic.cachix.org/"];
|
||
trusted-public-keys = ["cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="];
|
||
};
|
||
|
||
programs.fw-fanctrl.enable = true;
|
||
|
||
# Enable networking
|
||
networking.hostName = "wash";
|
||
|
||
networking.networkmanager.enable = true;
|
||
systemd.services.NetworkManager-wait-online.enable = false;
|
||
|
||
services.udisks2.enable = true;
|
||
|
||
hardware.bluetooth = {
|
||
enable = true;
|
||
powerOnBoot = true;
|
||
settings = {
|
||
General = {
|
||
# Shows battery charge of connected devices on supported
|
||
# Bluetooth adapters. Defaults to 'false'.
|
||
Experimental = true;
|
||
# When enabled other devices can connect faster to us, however
|
||
# the tradeoff is increased power consumption. Defaults to
|
||
# 'false'.
|
||
FastConnectable = true;
|
||
};
|
||
Policy = {
|
||
# Enable all controllers when they are found. This includes
|
||
# adapters present on start as well as adapters that are plugged
|
||
# in later on. Defaults to 'true'.
|
||
AutoEnable = true;
|
||
};
|
||
};
|
||
};
|
||
|
||
services.blueman.enable = true;
|
||
|
||
services.clamav = {
|
||
daemon.enable = true;
|
||
updater.enable = true;
|
||
};
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "America/New_York";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_CA.UTF-8";
|
||
|
||
i18n.extraLocaleSettings = {
|
||
LC_ADDRESS = "en_CA.UTF-8";
|
||
LC_IDENTIFICATION = "en_CA.UTF-8";
|
||
LC_MEASUREMENT = "en_CA.UTF-8";
|
||
LC_MONETARY = "en_CA.UTF-8";
|
||
LC_NAME = "en_CA.UTF-8";
|
||
LC_NUMERIC = "en_CA.UTF-8";
|
||
LC_PAPER = "en_CA.UTF-8";
|
||
LC_TELEPHONE = "en_CA.UTF-8";
|
||
LC_TIME = "en_CA.UTF-8";
|
||
LC_ALL = "en_CA.UTF-8";
|
||
};
|
||
|
||
# Configure keymap in X11
|
||
services.xserver.xkb = {
|
||
layout = "us";
|
||
variant = "";
|
||
};
|
||
|
||
systemd.oomd.enable = true;
|
||
|
||
# Fingerprint reader
|
||
services.fprintd.enable = true;
|
||
|
||
# Enable sound with pipewire.
|
||
services.pulseaudio.enable = false;
|
||
security.rtkit.enable = true;
|
||
services.pipewire = {
|
||
enable = true;
|
||
alsa.enable = true;
|
||
alsa.support32Bit = true;
|
||
pulse.enable = true;
|
||
};
|
||
|
||
services.avahi = {
|
||
enable = true;
|
||
nssmdns4 = true;
|
||
};
|
||
|
||
services.geoclue2 = {
|
||
enable = true;
|
||
enableWifi = true;
|
||
geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
|
||
};
|
||
|
||
services.flatpak.enable = true;
|
||
|
||
services.power-profiles-daemon.enable = true;
|
||
services.logind.lidSwitch = "suspend-then-hibernate";
|
||
systemd.sleep.extraConfig = ''
|
||
HibernateDelaySec=30m
|
||
SuspendState=mem
|
||
'';
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.tyler = {
|
||
isNormalUser = true;
|
||
description = "tyler";
|
||
extraGroups = ["networkmanager" "wheel"];
|
||
shell = pkgs.fish;
|
||
};
|
||
|
||
environment.systemPackages = with pkgs; [
|
||
bitwarden-desktop
|
||
sqlite
|
||
vscode.fhs
|
||
lm_sensors
|
||
|
||
# unstable.android-studio
|
||
# jetbrains.rust-rover
|
||
# jetbrains.rider
|
||
|
||
pre-commit
|
||
|
||
unstable.jujutsu
|
||
|
||
nbfc-linux
|
||
];
|
||
|
||
fonts.packages = with pkgs; [
|
||
nerd-fonts.jetbrains-mono
|
||
noto-fonts
|
||
];
|
||
|
||
programs.nix-ld.enable = true;
|
||
|
||
programs.fish.enable = true;
|
||
|
||
programs.steam.enable = true;
|
||
|
||
programs.thunderbird.enable = true;
|
||
|
||
programs.appimage = {
|
||
enable = true;
|
||
binfmt = true;
|
||
};
|
||
|
||
# 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 = "24.11"; # Did you read the comment?
|
||
}
|