1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-02-07 09:52:50 +00:00
.dotfiles/nixos/hosts/base.nix

141 lines
3.7 KiB
Nix
Raw Normal View History

2025-01-01 20:59:45 +00:00
{ pkgs, inputs, ... }:
2024-12-17 20:50:18 +00:00
{
imports = [
2024-12-20 19:01:15 +00:00
../packages.nix
2024-12-17 20:50:18 +00:00
];
nix.settings.experimental-features = ["nix-command" "flakes"];
2025-01-01 20:52:39 +00:00
nixpkgs = {
config.allowUnfree = true;
2025-01-01 22:36:49 +00:00
overlays = import ../overlays.nix inputs;
2025-01-01 20:52:39 +00:00
};
2024-12-17 20:50:18 +00:00
networking.networkmanager.enable = true;
programs = {
dconf.enable = true;
firefox.enable = true;
fish.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
2025-01-14 23:14:29 +00:00
nix-ld.enable = true;
2024-12-30 23:46:51 +00:00
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
2024-12-17 20:50:18 +00:00
};
services = {
2024-12-30 21:43:58 +00:00
# Xorg
2024-12-17 20:50:18 +00:00
xserver = {
enable = true;
xkb.layout = "us";
windowManager = {
2024-12-30 06:01:33 +00:00
cwm.enable = true;
2024-12-17 20:50:18 +00:00
openbox.enable = true;
twm.enable = true;
};
};
displayManager = {
sddm = {
enable = true;
settings = {
Autologin = {
User = "rae";
Session = "none+openbox";
};
};
2024-12-30 05:03:52 +00:00
theme = "catppuccin-mocha";
2024-12-17 20:50:18 +00:00
};
};
# Touchpad support
libinput.enable = true;
2024-12-30 23:07:45 +00:00
# Sound
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
# CUPS printing
printing.enable = true;
# misc
2025-01-18 20:01:56 +00:00
flatpak = {
enable = true;
packages = [
"com.github.tchx84.Flatseal"
{ flatpakref = "https://sober.vinegarhq.org/sober.flatpakref"; sha256 = "1pj8y1xhiwgbnhrr3yr3ybpfis9slrl73i0b1lc9q89vhip6ym2l"; }
];
};
2024-12-30 23:07:45 +00:00
blueman.enable = true;
2024-12-23 20:20:48 +00:00
openssh = {
enable = true;
knownHosts = {
"git.sr.ht" = {
hostNames = [ "git.sr.ht" ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZvRd4EtM7R+IHVMWmDkVU3VLQTSwQDSAvW0t2Tkj60";
};
"github.com" = {
hostNames = [ "github.com" ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl";
};
};
};
2024-12-30 21:43:58 +00:00
};
hardware = {
bluetooth = {
enable = true;
powerOnBoot = true;
};
2024-12-17 20:50:18 +00:00
};
2024-12-30 06:16:04 +00:00
xdg.portal = {
enable = true;
config = {
common = {
default = [ "gtk "];
};
};
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
};
2024-12-30 06:10:11 +00:00
2024-12-17 20:50:18 +00:00
fonts = {
enableDefaultPackages = true;
2024-12-30 04:25:46 +00:00
fontconfig = {
enable = true;
defaultFonts = {
2024-12-30 04:30:49 +00:00
emoji = [ "Twitter Color Emoji" "Noto Color Emoji" ];
2024-12-30 04:25:46 +00:00
monospace = [ "Fira Code Light" ];
};
};
2024-12-17 20:50:18 +00:00
packages = with pkgs; [
2024-12-30 04:25:46 +00:00
fira-code
gohufont
2024-12-17 20:50:18 +00:00
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
2024-12-30 04:25:46 +00:00
twemoji-color-font
2024-12-17 20:50:18 +00:00
];
};
2025-01-20 04:45:00 +00:00
i18n.defaultLocale = "en_US.UTF-8";
console = {
2025-01-20 04:45:41 +00:00
font = "gr928-8x16-thin"; # https://adeverteuil.github.io/linux-console-fonts-screenshots/
2025-01-20 04:45:00 +00:00
keyMap = "us";
};
2025-01-18 15:19:07 +00:00
virtualisation.docker.enable = true;
2024-12-17 20:50:18 +00:00
users.users.rae = {
isNormalUser = true;
2025-01-18 15:19:07 +00:00
extraGroups = [ "wheel" "docker" ];
2024-12-17 20:50:18 +00:00
hashedPassword = "$y$j9T$YPq.Kl8rss1JmJ5Vg6cHE/$2kdfzCkkhaO.I4u714EQnS/ZFert5byisiRVxtC.9G2";
shell = pkgs.fish;
};
}