mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-05-03 20:23:08 +00:00
~
This commit is contained in:
parent
f4ce86af2a
commit
e30250fd23
8 changed files with 125 additions and 196 deletions
|
@ -1,12 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ inputs, config, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.nix-flatpak.nixosModules.nix-flatpak
|
||||
./hardware-configuration.nix
|
||||
../desktop.nix
|
||||
./packages.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
loader = {
|
||||
efi = {
|
||||
canTouchEfiVariables = false;
|
||||
|
@ -19,6 +24,7 @@
|
|||
devices = [ "nodev" ];
|
||||
};
|
||||
};
|
||||
supportedFilesystems = [ "ntfs" ];
|
||||
};
|
||||
|
||||
# Music pendrive
|
||||
|
@ -39,12 +45,14 @@
|
|||
hosts = {
|
||||
"10.0.0.2" = [ "near" "near.local" ];
|
||||
};
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver.videoDrivers = [ "nvidia" ];
|
||||
};
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
|
@ -61,11 +69,117 @@
|
|||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
opentabletdriver.enable = true;
|
||||
};
|
||||
fonts.fontconfig.subpixel.rgba = "rgb";
|
||||
|
||||
fonts = {
|
||||
enableDefaultPackages = true;
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
emoji = [ "Twitter Color Emoji" "Noto Color Emoji" ];
|
||||
monospace = [ "Fira Code Light" ];
|
||||
};
|
||||
subpixel.rgba = "rgb";
|
||||
};
|
||||
packages = with pkgs; [
|
||||
fira-code
|
||||
gohufont
|
||||
nasin-nanpa
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
twemoji-color-font
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
firefox.enable = true;
|
||||
fish.enable = true;
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
nix-ld.enable = true;
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
};
|
||||
thunderbird = {
|
||||
enable = true;
|
||||
policies.DisableTelemetry = true;
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
# Xorg
|
||||
xserver = {
|
||||
enable = true;
|
||||
xkb.layout = "us";
|
||||
videoDrivers = [ "nvidia" ];
|
||||
windowManager = {
|
||||
cwm.enable = true;
|
||||
openbox.enable = true;
|
||||
twm.enable = true;
|
||||
};
|
||||
};
|
||||
displayManager = {
|
||||
sddm = {
|
||||
enable = true;
|
||||
settings = {
|
||||
Autologin = {
|
||||
User = "rae";
|
||||
Session = "none+openbox";
|
||||
};
|
||||
};
|
||||
theme = "catppuccin-mocha";
|
||||
};
|
||||
};
|
||||
|
||||
# Touchpad support
|
||||
libinput.enable = true;
|
||||
# Sound
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
# CUPS printing
|
||||
# Can be configured at http://127.0.0.1:631/
|
||||
# Local printers are host-specific (see `hardware.printers`)
|
||||
# Avahi enables IPP Everywhere
|
||||
printing.enable = true;
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
# misc
|
||||
blueman.enable = true;
|
||||
flatpak.enable = true;
|
||||
};
|
||||
|
||||
security.polkit.enable = true;
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config = {
|
||||
common = {
|
||||
default = [ "gtk" ];
|
||||
};
|
||||
};
|
||||
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
||||
};
|
||||
|
||||
users.users.rae.shell = pkgs.fish;
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue