1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-31 15:03:37 +00:00
.dotfiles/nixos/hosts/base.nix

139 lines
3.6 KiB
Nix
Raw Normal View History

2024-12-18 21:38:29 +00:00
{ pkgs, ... }:
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"];
2024-12-18 06:14:25 +00:00
nixpkgs.config.allowUnfree = true;
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;
};
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;
};
2025-01-01 04:10:34 +00:00
mpd.enable = true; # Configured with home-manager
2024-12-30 23:07:45 +00:00
# CUPS printing
printing.enable = true;
# misc
flatpak.enable = true;
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-31 05:51:54 +00:00
systemd.services = {
flatpak-repo = {
wantedBy = [ "multi-user.target" ];
path = [ pkgs.flatpak ];
script = ''
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
'';
};
2024-12-31 10:11:58 +00:00
#?rm
2024-12-31 10:01:52 +00:00
# https://github.com/NixOS/nixpkgs/issues/102547#issuecomment-1016671189
2024-12-31 10:11:58 +00:00
# mpd.environment = {
# XDG_RUNTIME_DIR = "/run/user/1000";
# };
2024-12-31 05:51:54 +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
];
};
users.users.rae = {
isNormalUser = true;
extraGroups = [ "wheel" ];
hashedPassword = "$y$j9T$YPq.Kl8rss1JmJ5Vg6cHE/$2kdfzCkkhaO.I4u714EQnS/ZFert5byisiRVxtC.9G2";
shell = pkgs.fish;
};
}