1
0
Fork 0
dotfiles/nix/hosts/framework/sys.nix
Lucas Sta Maria 66917ab4d4
fix(nix): specify fish shell in sys.nix
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
2024-11-11 19:43:44 -05:00

182 lines
4.3 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ inputs, config, pkgs, lib, ... }: {
imports = [ ./hw.nix ];
networking.hostName = "framework";
time.timeZone = "America/New_York";
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Network Manager
networking.networkmanager.enable = true;
# Fonts
fonts = {
fontDir.enable = true;
enableDefaultPackages = true;
fontconfig = {
enable = true;
defaultFonts = { monospace = [ "Roboto Mono" ]; };
};
packages = with pkgs; [
noto-fonts
fira-code
open-sans
inter
roboto-mono
jetbrains-mono
noto-fonts-cjk-sans
libertine
roboto
];
};
# Select internationalisation properties.
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";
};
# Bluetooth
hardware.bluetooth.enable = true;
services.blueman.enable = true;
# Audio
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
pulse.enable = true;
};
# AMD
hardware.cpu.amd.updateMicrocode = true;
hardware.graphics.enable = true;
# Power
powerManagement = {
enable = true;
powertop.enable = true;
};
# Autologin
services.displayManager.autoLogin.user = "priime";
# Mouse
services.libinput.mouse = { middleEmulation = false; };
# Notification Server
systemd.user.services.deadd-notification-center = {
description = "deadd notification center";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
serviceConfig = {
ExecStart =
"${pkgs.deadd-notification-center}/bin/deadd-notification-center";
Restart = "always";
RestartSec = 3;
};
};
virtualisation.docker.enable = true;
users.users.priime = {
isNormalUser = true;
description = "Lucas";
extraGroups = [ "networkmanager" "wheel" "docker" ];
packages = with pkgs; [ ];
shell = pkgs.fish;
};
documentation.dev.enable = true;
environment.variables = {
EDITOR = "emacsclient";
CC = "gcc";
LSP_USE_PLISTS = "true";
MOZ_USE_XINPUT2 = "1";
};
### Services
# xserver and i3
services.xserver = {
enable = true;
windowManager.i3.enable = true;
displayManager.lightdm.enable = true;
xkb.layout = "us";
xkb.variant = "dvp";
autoRepeatDelay = 350;
autoRepeatInterval = 17;
};
services.tailscale = {
enable = true;
useRoutingFeatures = "client";
};
services.syncthing = {
enable = true;
user = "priime";
dataDir = "/home/priime/syncthing";
configDir = "/home/priime/.config/syncthing";
overrideDevices = true;
overrideFolders = false;
settings = {
gui = { user = "priime"; };
};
};
# Programs
programs.kdeconnect.enable = true;
programs.steam.enable = true;
programs.dconf.enable = true;
programs.fish = {
enable = true;
shellAliases = {
psax = "ps -ax | grep -i";
ls = "eza";
ll = "eza --all --long";
e = "emacs";
ed = "emacs --daemon";
ec = ''emacsclient -n -c -a ""'';
};
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryPackage = lib.mkForce pkgs.pinentry-gtk2;
};
programs.msmtp = {
enable = true;
accounts = {
default = {
auth = true;
host = "smtp.fastmail.com";
passwordeval =
"gpg --decrypt --no-tty -q ~/backupcodes/emacsframeworkfastmail.asc";
user = "lucas@priime.dev";
};
};
};
# 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. Its 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 = "23.11"; # Did you read the comment?
home-manager.users.priime = { pkgs, ... }: { imports = [ ./home.nix ]; };
}