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

149 lines
3.9 KiB
Nix
Raw Normal View History

2025-01-01 15:59:45 -05:00
{ pkgs, inputs, ... }:
2024-12-17 15:50:18 -05:00
{
imports = [
2024-12-20 14:01:15 -05:00
../packages.nix
2024-12-17 15:50:18 -05:00
];
nix.settings.experimental-features = ["nix-command" "flakes"];
2025-01-01 15:52:39 -05:00
nixpkgs = {
config.allowUnfree = true;
overlays = [
inputs.nur.overlays.default
inputs.fenix.overlays.default
(final: prev: {
2025-01-01 15:59:45 -05:00
unstable = import inputs.nixpkgs-unstable {
2025-01-01 15:52:39 -05:00
system = prev.system;
};
})
];
};
2024-12-17 15:50:18 -05:00
networking.networkmanager.enable = true;
programs = {
dconf.enable = true;
firefox.enable = true;
fish.enable = true;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
2024-12-30 18:46:51 -05:00
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
2024-12-17 15:50:18 -05:00
};
services = {
2024-12-30 16:43:58 -05:00
# Xorg
2024-12-17 15:50:18 -05:00
xserver = {
enable = true;
xkb.layout = "us";
windowManager = {
2024-12-30 01:01:33 -05:00
cwm.enable = true;
2024-12-17 15:50:18 -05:00
openbox.enable = true;
twm.enable = true;
};
};
displayManager = {
sddm = {
enable = true;
settings = {
Autologin = {
User = "rae";
Session = "none+openbox";
};
};
2024-12-30 00:03:52 -05:00
theme = "catppuccin-mocha";
2024-12-17 15:50:18 -05:00
};
};
# Touchpad support
libinput.enable = true;
2024-12-30 18:07:45 -05:00
# Sound
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
# CUPS printing
printing.enable = true;
# misc
flatpak.enable = true;
blueman.enable = true;
2024-12-23 15:20:48 -05: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 16:43:58 -05:00
};
hardware = {
bluetooth = {
enable = true;
powerOnBoot = true;
};
2024-12-17 15:50:18 -05:00
};
2024-12-31 00:51:54 -05: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 05:11:58 -05:00
#?rm
2024-12-31 05:01:52 -05:00
# https://github.com/NixOS/nixpkgs/issues/102547#issuecomment-1016671189
2024-12-31 05:11:58 -05:00
# mpd.environment = {
# XDG_RUNTIME_DIR = "/run/user/1000";
# };
2024-12-31 00:51:54 -05:00
};
2024-12-30 01:16:04 -05:00
xdg.portal = {
enable = true;
config = {
common = {
default = [ "gtk "];
};
};
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
};
2024-12-30 01:10:11 -05:00
2024-12-17 15:50:18 -05:00
fonts = {
enableDefaultPackages = true;
2024-12-29 23:25:46 -05:00
fontconfig = {
enable = true;
defaultFonts = {
2024-12-29 23:30:49 -05:00
emoji = [ "Twitter Color Emoji" "Noto Color Emoji" ];
2024-12-29 23:25:46 -05:00
monospace = [ "Fira Code Light" ];
};
};
2024-12-17 15:50:18 -05:00
packages = with pkgs; [
2024-12-29 23:25:46 -05:00
fira-code
gohufont
2024-12-17 15:50:18 -05:00
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
2024-12-29 23:25:46 -05:00
twemoji-color-font
2024-12-17 15:50:18 -05:00
];
};
users.users.rae = {
isNormalUser = true;
extraGroups = [ "wheel" ];
hashedPassword = "$y$j9T$YPq.Kl8rss1JmJ5Vg6cHE/$2kdfzCkkhaO.I4u714EQnS/ZFert5byisiRVxtC.9G2";
shell = pkgs.fish;
};
}