mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2025-11-04 14:47:38 +01:00
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{ pkgs, pkgsUnstable, ... }:
|
|
|
|
let
|
|
unstable = pkgsUnstable;
|
|
in
|
|
{
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
boot = {
|
|
readOnlyNixStore = true;
|
|
initrd.compressor = "zstd";
|
|
loader.systemd-boot.enable = true;
|
|
loader.systemd-boot.editor = false;
|
|
loader.systemd-boot.configurationLimit = 25;
|
|
loader.efi.canTouchEfiVariables = true;
|
|
kernelParams = [ "nvidia_drm" "nvidia_modeset" "nvidia_uvm" "nvidia-drm.fbdev=1" "nvidia" ];
|
|
};
|
|
|
|
networking.hostName = "core";
|
|
networking.enableIPv6 = false;
|
|
time.timeZone = "Asia/Tehran";
|
|
|
|
hardware = {
|
|
graphics.enable = true;
|
|
nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
open = false;
|
|
nvidiaSettings = true;
|
|
package = pkgs.linuxPackages.nvidiaPackages.beta;
|
|
};
|
|
bluetooth.enable = true;
|
|
bluetooth.powerOnBoot = true;
|
|
};
|
|
|
|
security = {
|
|
sudo.enable = false;
|
|
doas = {
|
|
enable = true;
|
|
extraRules = [{ users = [ "coast" ]; keepEnv = true; persist = true; }];
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
(lib.hiPrio unstable.uutils-coreutils-noprefix)
|
|
(lib.hiPrio unstable.uutils-findutils)
|
|
(lib.hiPrio unstable.uutils-diffutils)
|
|
(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
|
|
jmtpfs
|
|
simple-mtpfs
|
|
android-tools
|
|
unstable.qbittorrent
|
|
];
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
}
|