mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2025-11-04 14:47:38 +01:00
58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{ config, lib, inputs, pkgs, settings, ... }: let
|
|
unstable = import inputs.nixpkgs-unstable { inherit (pkgs) system; };
|
|
in {
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
boot.readOnlyNixStore = true;
|
|
boot.initrd.compressor = "zstd";
|
|
boot = {
|
|
readOnlyNixStore = true;
|
|
initrd.compressor = "zstd";
|
|
loader.systemd-boot.enable = true;
|
|
loader.systemd-boot.editor = false;
|
|
loader.systemd-boot.configurationLimit = 25;
|
|
loader.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 = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
};
|
|
|
|
bluetooth.enable = true;
|
|
bluetooth.powerOnBoot = true;
|
|
};
|
|
|
|
security = {
|
|
sudo.enable = false;
|
|
security.doas = {
|
|
enable = true;
|
|
extraRules = [{ users = [ "coast" ]; keepEnv = true; persist = true; }];
|
|
};
|
|
};
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.coast = import ./home.nix;
|
|
home-manager.backupFileExtension = "home-backup";
|
|
};
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
}
|