149 lines
2.8 KiB
Nix
Executable File
149 lines
2.8 KiB
Nix
Executable File
{ pkgs, inputs, secrets, ... }:
|
|
{
|
|
imports = [ ./backup.nix ];
|
|
|
|
networking.hostName = "marauder";
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/648c6539-892c-40d7-8b07-23fe760df02a";
|
|
fsType = "ext4";
|
|
};
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/1D62-C30E";
|
|
fsType = "vfat";
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
};
|
|
|
|
boot = {
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
initrd = {
|
|
systemd.enable = true;
|
|
availableKernelModules = [
|
|
"nvme"
|
|
"xhci_pci"
|
|
"usbhid"
|
|
"usb_storage"
|
|
"sd_mod"
|
|
];
|
|
};
|
|
kernelModules = ["kvm-amd"];
|
|
kernelParams = [ "amd_pstate=active" ];
|
|
};
|
|
|
|
hardware = {
|
|
enableRedistributableFirmware = true;
|
|
cpu.amd.updateMicrocode = true;
|
|
opengl = {
|
|
enable = true;
|
|
driSupport32Bit = true;
|
|
extraPackages = [pkgs.vaapiVdpau];
|
|
};
|
|
nvidia.prime = {
|
|
offload = {
|
|
enable = true;
|
|
enableOffloadCmd = true;
|
|
};
|
|
amdgpuBusId = "PCI:05:00:0";
|
|
nvidiaBusId = "PCI:01:00:0";
|
|
};
|
|
};
|
|
|
|
users.users = {
|
|
nettika = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "networkmanager" ];
|
|
};
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
tools.secrets = {
|
|
enable = true;
|
|
};
|
|
|
|
tools.coding = {
|
|
enable = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
# Chat clients
|
|
discord
|
|
element-desktop
|
|
telegram-desktop
|
|
|
|
# Browsers
|
|
firefox
|
|
|
|
# Coding
|
|
vscode
|
|
|
|
# Art and 3D
|
|
inkscape
|
|
openscad-unstable
|
|
bambu-studio
|
|
|
|
# Multimedia
|
|
vlc
|
|
|
|
# Productivity
|
|
obsidian
|
|
];
|
|
|
|
programs.bash = {
|
|
promptInit = ''
|
|
PS1="\[\e]0;\u@\h: \w\a\]" # window title
|
|
PS1+="\n"
|
|
PS1+="\$(printf \"%*s\" \$((\$COLUMNS + 9)) \"\[\e[1;33m\]\$(git branch --show-current 2>/dev/null)\")" # git branch
|
|
PS1+="\[\e[1G\]" # move cursor to beginning of line
|
|
PS1+="💜" # prompt symbol
|
|
PS1+="\[\033[1;$((UID ? 32 : 31))m\]" # prompt color
|
|
PS1+="[\u@\h:\w]\\$"
|
|
PS1+="\[\033[0m\] " # reset color
|
|
'';
|
|
};
|
|
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
};
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
videoDrivers = ["nvidia"];
|
|
desktopManager = {
|
|
cinnamon.enable = true;
|
|
xterm.enable = false;
|
|
};
|
|
};
|
|
|
|
services.displayManager = {
|
|
defaultSession = "cinnamon";
|
|
};
|
|
|
|
services.tlp = {
|
|
enable = true;
|
|
};
|
|
|
|
services.fstrim = {
|
|
enable = true;
|
|
};
|
|
|
|
services.zerotierone = {
|
|
enable = true;
|
|
joinNetworks = secrets.zerotier.networks;
|
|
};
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|
|
|