dotfiles-mirror/etc/nixos/compose.nix

72 lines
1.7 KiB
Nix
Raw Normal View History

2025-10-05 05:22:41 +03:30
{ pkgs, pkgsUnstable, ... }:
let
unstable = pkgsUnstable;
in
{
2025-10-25 16:16:41 +03:30
imports = [ ./hardware-configuration.nix ];
2025-10-05 04:25:14 +03:30
boot = {
readOnlyNixStore = true;
initrd.compressor = "zstd";
loader.systemd-boot.enable = true;
loader.systemd-boot.editor = false;
loader.systemd-boot.configurationLimit = 25;
2025-10-05 04:30:33 +03:30
loader.efi.canTouchEfiVariables = true;
2025-10-05 05:22:41 +03:30
kernelParams = [ "nvidia_drm" "nvidia_modeset" "nvidia_uvm" "nvidia-drm.fbdev=1" "nvidia" ];
2025-10-05 04:25:14 +03:30
};
networking.hostName = "core";
networking.enableIPv6 = false;
2025-10-26 23:13:27 +03:30
networking.networkmanager.enable = true;
2025-10-05 04:25:14 +03:30
time.timeZone = "Asia/Tehran";
hardware = {
2025-10-26 23:13:27 +03:30
graphics.enable = true;
nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = false;
nvidiaSettings = true;
package = pkgs.linuxPackages.nvidiaPackages.beta;
prime.offload = {
enable = true;
enableOffloadCmd = true;
};
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
2025-10-05 04:25:14 +03:30
bluetooth.enable = true;
bluetooth.powerOnBoot = true;
};
security = {
sudo.enable = false;
2025-10-23 23:20:27 +03:30
sudo-rs.enable = true;
2025-10-05 04:25:14 +03:30
};
2025-10-05 05:22:41 +03:30
environment.systemPackages = with pkgs; [
(lib.hiPrio unstable.uutils-coreutils-noprefix)
2025-10-06 04:02:59 +03:30
(lib.hiPrio unstable.uutils-findutils)
(lib.hiPrio unstable.uutils-diffutils)
2025-10-05 05:22:41 +03:30
(pkgs.runCommand "vim-wrapper" { } ''
mkdir -p $out/bin
ln -s ${pkgs.neovim}/bin/nvim $out/bin/vim
'')
unstable.firefox
unstable.git
unstable.adwaita-icon-theme
unstable.nil
2025-10-06 04:02:59 +03:30
jmtpfs
simple-mtpfs
android-tools
unstable.qbittorrent
2025-10-26 23:13:27 +03:30
unstable.zathura
unstable.kew
2025-10-05 05:22:41 +03:30
];
2025-10-05 04:25:14 +03:30
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}