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

100 lines
2.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;
};
};
services = {
# X11
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;
# OpenSSH
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-17 20:50:18 +00:00
# Sound
pipewire = {
enable = true;
pulse.enable = true;
};
# CUPS printing
printing.enable = true;
2024-12-19 18:15:32 +00:00
# Flatpak
2024-12-19 18:15:09 +00:00
flatpak.enable = true;
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" ];
};
subpixel.rgba = "rgb";
};
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;
};
}