mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Rework in progress
This commit is contained in:
parent
fe512e2175
commit
e2ca654681
11 changed files with 153 additions and 193 deletions
|
|
@ -1,19 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
audio.enable = true;
|
||||
|
||||
wireplumber.enable = true;
|
||||
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
pavucontrol
|
||||
];
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
boot = {
|
||||
loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
useOSProber = true;
|
||||
devices = [ "nodev" ];
|
||||
efiSupport = true;
|
||||
configurationLimit = 5;
|
||||
};
|
||||
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Nix requires default.nix to build the system properly.
|
||||
|
||||
# Add or remove imports based on the modules in sysConfig/.
|
||||
imports = [
|
||||
./audio.nix
|
||||
./boot.nix
|
||||
./gui.nix
|
||||
./hardware.nix
|
||||
./locale.nix
|
||||
./network.nix
|
||||
./users.nix
|
||||
./virt.nix
|
||||
];
|
||||
|
||||
# Enable nix commands and flakes
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = "experimental-features = nix-command flakes";
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11"; # Do not edit this variable.
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
#TBD
|
||||
|
|
@ -1,76 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
# DESKTOP
|
||||
|
||||
programs.sway.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
rofi-wayland
|
||||
grim
|
||||
jq
|
||||
slurp
|
||||
wl-clipboard
|
||||
|
||||
xdg-desktop-portal
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-utils
|
||||
|
||||
fontconfig
|
||||
qogir-icon-theme
|
||||
emote
|
||||
|
||||
xwayland
|
||||
];
|
||||
|
||||
services = {
|
||||
trezord = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
cron = {
|
||||
enable = true;
|
||||
systemCronJobs = [
|
||||
"0 0 * * * bryan /home/bryan/Documents/scripts/lnbackup_script.sh"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# CONSOLE
|
||||
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
useXkbConfig = true;
|
||||
};
|
||||
|
||||
# FONTS
|
||||
|
||||
fonts = {
|
||||
fonts = with pkgs; [
|
||||
terminus_font
|
||||
nerdfonts
|
||||
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
|
||||
emojione
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
# GPU DRIVERS
|
||||
|
||||
# boot.initrd.kernelModules = [ "amdgpu" ]; #Uncomment for AMD
|
||||
|
||||
hardware.nvidia.open = true; # Uncomment for nvidia open-source nouveau drivers
|
||||
|
||||
# services.xserver.videoDrivers = [ "nvidia" ]; # Uncomment
|
||||
# hardware = { # this
|
||||
# opengl.enable = true; # codeblock
|
||||
# nvidia = { # for
|
||||
# package = config.boot.kernelPackages.nvidiaPackages.stable; # NVIDIA
|
||||
# modesetting.enable = true; # proprietary
|
||||
# }; # driver
|
||||
# }; # support
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
users.users.bryan = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" "home-manager" "input" "video" "audio" "kvm" "libvirtd" "docker" ];
|
||||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
networking = {
|
||||
hostName = "socrates";
|
||||
useDHCP = lib.mkDefault true;
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
programs.gnupg = {
|
||||
agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
boot = {
|
||||
kernelParams = [ "intel_iommu=on" ];
|
||||
kernelModules = [ "kvm-intel" "virtio" "vfio-pci" ];
|
||||
|
||||
# TODO: (bryan) - Fix GPU passthrough
|
||||
# extraModprobeConfig = ''
|
||||
# options vfio-pci ids=10de:1f82,10de:10fa
|
||||
# '';
|
||||
};
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
qemu_kvm
|
||||
libvirt
|
||||
virt-manager
|
||||
OVMF
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue