2023-03-31 18:15:58 -04:00
|
|
|
{
|
2023-04-09 18:01:28 -04:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
2023-03-31 18:15:58 -04:00
|
|
|
}: {
|
2023-01-31 12:18:27 -05:00
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
2023-03-07 16:03:15 -05:00
|
|
|
../../home/wayland
|
2023-03-26 06:12:19 -04:00
|
|
|
../../modules
|
2023-04-02 06:11:29 -04:00
|
|
|
../../modules/fonts.nix
|
2023-01-31 12:18:27 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
# bootloader
|
|
|
|
boot.loader = {
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
2023-03-19 19:31:50 -04:00
|
|
|
configurationLimit = 8;
|
2023-01-31 12:18:27 -05:00
|
|
|
};
|
|
|
|
efi = {
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
efiSysMountPoint = "/boot/efi";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
2023-03-26 06:12:19 -04:00
|
|
|
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback.out ];
|
2023-01-31 12:18:27 -05:00
|
|
|
boot.kernelModules = [ "v4l2loopback" "kvm-intel" ];
|
|
|
|
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
|
2023-03-31 18:15:58 -04:00
|
|
|
networking = {
|
|
|
|
hostName = "tsuki";
|
2023-01-31 12:18:27 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "en_US.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
|
|
LC_MEASUREMENT = "en_US.UTF-8";
|
|
|
|
LC_MONETARY = "en_US.UTF-8";
|
|
|
|
LC_NAME = "en_US.UTF-8";
|
|
|
|
LC_NUMERIC = "en_US.UTF-8";
|
|
|
|
LC_PAPER = "en_US.UTF-8";
|
|
|
|
LC_TELEPHONE = "en_US.UTF-8";
|
|
|
|
LC_TIME = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
fstrim = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
videoDrivers = [ "nvidia" ];
|
2023-02-05 09:06:16 -05:00
|
|
|
layout = "us";
|
|
|
|
xkbVariant = "";
|
2023-01-31 12:18:27 -05:00
|
|
|
};
|
2023-03-06 05:36:50 -05:00
|
|
|
};
|
2023-01-31 12:18:27 -05:00
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
pinentryFlavor = "gtk2";
|
|
|
|
};
|
2023-02-03 09:58:36 -05:00
|
|
|
|
2023-01-31 12:18:27 -05:00
|
|
|
services.pcscd.enable = true;
|
|
|
|
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
wireplumber.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
security.polkit.enable = true;
|
|
|
|
security.pam.services.swaylock = {
|
|
|
|
text = ''
|
|
|
|
auth include login
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
nvidia = {
|
|
|
|
powerManagement.enable = true;
|
|
|
|
modesetting.enable = true;
|
|
|
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
|
|
};
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
nvidia-vaapi-driver
|
|
|
|
];
|
|
|
|
};
|
2023-03-19 15:20:13 -04:00
|
|
|
opentabletdriver = {
|
|
|
|
enable = true;
|
|
|
|
daemon.enable = true;
|
|
|
|
};
|
2023-02-27 05:10:58 -05:00
|
|
|
};
|
2023-01-31 12:18:27 -05:00
|
|
|
users = {
|
|
|
|
defaultUserShell = pkgs.nushell;
|
|
|
|
users.notoh = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "notoh";
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "disk" "video" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wget
|
2023-02-05 11:37:03 -05:00
|
|
|
dconf
|
2023-02-14 22:06:02 -05:00
|
|
|
rustc
|
2023-01-31 12:18:27 -05:00
|
|
|
rustup
|
2023-02-14 22:06:02 -05:00
|
|
|
rustfmt
|
|
|
|
go
|
2023-01-31 12:18:27 -05:00
|
|
|
cargo
|
|
|
|
nodejs
|
|
|
|
polkit_gnome
|
|
|
|
libvirt
|
|
|
|
qemu_kvm
|
|
|
|
gtk-engine-murrine
|
|
|
|
pinentry-gtk2
|
2023-02-17 00:54:22 -05:00
|
|
|
nfs-utils
|
2023-01-31 12:18:27 -05:00
|
|
|
nil
|
|
|
|
rust-analyzer
|
|
|
|
gopls
|
|
|
|
sumneko-lua-language-server
|
|
|
|
marksman
|
2023-03-11 10:33:13 -05:00
|
|
|
texlab
|
2023-03-26 06:12:19 -04:00
|
|
|
jre8
|
|
|
|
jdk17
|
|
|
|
jdk8
|
2023-01-31 12:18:27 -05:00
|
|
|
nodePackages_latest.yaml-language-server
|
2023-02-07 20:06:07 -05:00
|
|
|
python310Packages.python-lsp-server
|
2023-01-31 12:18:27 -05:00
|
|
|
];
|
|
|
|
|
2023-03-31 18:15:58 -04:00
|
|
|
nix = {
|
2023-01-31 12:18:27 -05:00
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
warn-dirty = false
|
2023-03-19 19:31:50 -04:00
|
|
|
'';
|
|
|
|
gc = {
|
2023-01-31 12:18:27 -05:00
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
settings = {
|
2023-03-19 19:31:50 -04:00
|
|
|
auto-optimise-store = true;
|
2023-03-06 05:36:50 -05:00
|
|
|
builders-use-substitutes = true;
|
2023-01-31 12:18:27 -05:00
|
|
|
substituters = [
|
|
|
|
"https://hyprland.cachix.org"
|
2023-03-06 05:36:50 -05:00
|
|
|
"https://cache.nixos.org"
|
2023-01-31 12:18:27 -05:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-03-06 05:36:50 -05:00
|
|
|
nixpkgs.config = {
|
|
|
|
permittedInsecurePackages = [
|
2023-01-31 12:18:27 -05:00
|
|
|
"qtwebkit-5.212.0-alpha4"
|
|
|
|
"electron-12.2.3"
|
|
|
|
];
|
2023-03-06 05:36:50 -05:00
|
|
|
allowUnfree = true;
|
|
|
|
};
|
2023-03-19 19:31:50 -04:00
|
|
|
|
2023-01-31 12:18:27 -05:00
|
|
|
system.stateVersion = "23.05";
|
|
|
|
|
|
|
|
}
|