mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
159 lines
2.6 KiB
Nix
159 lines
2.6 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
system.stateVersion = "23.05";
|
|
environment.defaultPackages = [ ];
|
|
|
|
nix = {
|
|
extraOptions = "experimental-features = nix-command flakes";
|
|
settings = {
|
|
allowed-users = "bryan";
|
|
auto-optimise-store = true;
|
|
system-features = [
|
|
"kvm"
|
|
];
|
|
};
|
|
gc = {
|
|
automatics = true;
|
|
options = "weekly";
|
|
};
|
|
};
|
|
|
|
boot = {
|
|
loader = {
|
|
grub = {
|
|
enable = true;
|
|
useOSProber = true;
|
|
devices = [ "nodev" ];
|
|
efiSupport = true;
|
|
configurationLimit = 5;
|
|
};
|
|
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
# extraModprobeConfig = ''
|
|
# options vfio-pci ids=10de:1f82,10de:10fa
|
|
# '';
|
|
};
|
|
|
|
programs = {
|
|
sway = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
rofi-wayland
|
|
grim
|
|
slurp
|
|
wl-clipboard
|
|
|
|
xdg-utils
|
|
|
|
fontconfig
|
|
qogir-icon-theme
|
|
emote
|
|
|
|
virt-manager
|
|
pavucontrol
|
|
];
|
|
};
|
|
|
|
bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
enableLsColors = true;
|
|
blesh.enable = true;
|
|
|
|
shellInit = ''
|
|
|
|
'';
|
|
};
|
|
|
|
gnupg = {
|
|
agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
};
|
|
|
|
xwayland = {
|
|
enable = true;
|
|
};
|
|
|
|
git.enable = true;
|
|
};
|
|
|
|
fonts = {
|
|
fonts = with pkgs; [
|
|
terminus_font
|
|
nerdfonts
|
|
|
|
noto-fonts
|
|
noto-fonts-cjk
|
|
|
|
emojione
|
|
];
|
|
};
|
|
|
|
xdg.portal.wlr.enable = true;
|
|
|
|
services.pipewire = {
|
|
enable = true;
|
|
audio.enable = true;
|
|
|
|
wireplumber.enable = true;
|
|
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
};
|
|
|
|
services = {
|
|
trezord.enable = true;
|
|
|
|
cron = {
|
|
enable = true;
|
|
systemCronJobs = [
|
|
"0 0 * * * bryan /home/bryan/Documents/scripts/lnbackup_script.sh"
|
|
];
|
|
};
|
|
};
|
|
|
|
console = {
|
|
font = "Lat2-Terminus16";
|
|
useXkbConfig = true;
|
|
};
|
|
|
|
time = {
|
|
timeZone = "America/New_York";
|
|
};
|
|
|
|
services.timesyncd = {
|
|
enable = true;
|
|
servers = [
|
|
"0.pool.ntp.org"
|
|
"1.pool.ntp.org"
|
|
"2.pool.ntp.org"
|
|
"3.pool.ntp.org"
|
|
];
|
|
};
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
# Networking
|
|
networking = {
|
|
hostName = "socrates";
|
|
useDHCP = lib.mkDefault true;
|
|
networkmanager.enable = true;
|
|
firewall.enable = true;
|
|
};
|
|
|
|
virtualisation.libvirtd = {
|
|
enable = true;
|
|
qemu = {
|
|
package = pkgs.qemu_kvm;
|
|
runAsRoot = true;
|
|
ovmf.enable = true;
|
|
};
|
|
};
|
|
}
|