Compare commits
No commits in common. "685ff000d75ff3bdda2fd001d72a877e501882e0" and "229d6b9e1a0fec3f992c0de468f1e477dc4e5608" have entirely different histories.
685ff000d7
...
229d6b9e1a
@ -1,16 +1,8 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let hostname = "gAluminum";
|
||||||
hostname = "gAluminum";
|
|
||||||
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
|
|
||||||
export __NV_PRIME_RENDER_OFFLOAD=1
|
|
||||||
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
|
||||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
|
||||||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
|
||||||
exec -a "$0" "$@"
|
|
||||||
'';
|
|
||||||
in {
|
in {
|
||||||
imports = [ ./hardware.nix ./wireguard.nix ./sound.nix ];
|
imports = [ ./hardware.nix ./wireguard.nix ];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
supportedFilesystems = [ "ntfs" ];
|
supportedFilesystems = [ "ntfs" ];
|
||||||
@ -20,8 +12,6 @@ in {
|
|||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
initrd.luks.devices = {
|
initrd.luks.devices = {
|
||||||
root = {
|
root = {
|
||||||
device = "/dev/disk/by-uuid/c2bac3a6-0999-4e1d-a676-bf4bcafee2d4";
|
device = "/dev/disk/by-uuid/c2bac3a6-0999-4e1d-a676-bf4bcafee2d4";
|
||||||
@ -40,35 +30,20 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/London";
|
time.timeZone = "Europe/London";
|
||||||
virtualisation.virtualbox.host = {
|
virtualisation.virtualbox.host.enable = true;
|
||||||
enable = true;
|
virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||||
enableExtensionPack = true;
|
users.extraGroups.vboxusers.members = [ "giulio" ];
|
||||||
};
|
|
||||||
|
|
||||||
users.extraGroups = {
|
services.printing.enable = true;
|
||||||
vboxusers.members = [ "giulio" ];
|
sound.enable = true;
|
||||||
video.members = [ "giulio" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
printing.enable = true;
|
|
||||||
xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
teamviewer.enable = true;
|
|
||||||
davfs2.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
pulseaudio.enable = true;
|
||||||
ledger.enable = true;
|
ledger.enable = true;
|
||||||
nvidia = {
|
|
||||||
prime = {
|
|
||||||
offload.enable = true;
|
|
||||||
intelBusId = "PCI:0:2:0";
|
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.teamviewer.enable = true;
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
environment.systemPackages = with pkgs; [ efibootmgr nvidia-offload ];
|
environment.systemPackages = with pkgs; [ efibootmgr ];
|
||||||
system.stateVersion = "21.05"; # Did you read the comment?
|
system.stateVersion = "21.05"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
@ -23,4 +23,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
}
|
}
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
{
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
media-session.config.bluez-monitor.rules = [
|
|
||||||
{
|
|
||||||
# Matches all cards
|
|
||||||
matches = [{ "device.name" = "~bluez_card.*"; }];
|
|
||||||
actions = {
|
|
||||||
"update-props" = {
|
|
||||||
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
|
|
||||||
# mSBC is not expected to work on all headset + adapter combinations.
|
|
||||||
"bluez5.msbc-support" = true;
|
|
||||||
# SBC-XQ is not expected to work on all headset + adapter combinations.
|
|
||||||
"bluez5.sbc-xq-support" = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
matches = [
|
|
||||||
# Matches all sources
|
|
||||||
{
|
|
||||||
"node.name" = "~bluez_input.*";
|
|
||||||
}
|
|
||||||
# Matches all outputs
|
|
||||||
{ "node.name" = "~bluez_output.*"; }
|
|
||||||
];
|
|
||||||
actions = { "node.pause-on-idle" = false; };
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
}
|
|
@ -26,8 +26,7 @@
|
|||||||
|
|
||||||
nixpkgs = { config = { allowUnfree = true; }; };
|
nixpkgs = { config = { allowUnfree = true; }; };
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fonts = with pkgs; [ cascadia-code ];
|
||||||
fonts.fonts = with pkgs; [ cascadia-code victor-mono ];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
file
|
file
|
||||||
|
@ -4,10 +4,7 @@
|
|||||||
services = {
|
services = {
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager.gdm = {
|
displayManager.gdm.enable = true;
|
||||||
enable = true;
|
|
||||||
wayland = false;
|
|
||||||
};
|
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
libinput.enable = true;
|
libinput.enable = true;
|
||||||
layout = "us";
|
layout = "us";
|
||||||
@ -16,13 +13,8 @@
|
|||||||
|
|
||||||
dbus.packages = with pkgs; [ gnome3.dconf ];
|
dbus.packages = with pkgs; [ gnome3.dconf ];
|
||||||
udev.packages = with pkgs; [ gnome3.gnome-settings-daemon ];
|
udev.packages = with pkgs; [ gnome3.gnome-settings-daemon ];
|
||||||
gvfs.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ gnomeExtensions.appindicator ];
|
||||||
gnomeExtensions.appindicator
|
|
||||||
gnomeExtensions.sound-output-device-chooser
|
|
||||||
pkgs.unstable.gnomeExtensions.pop-shell
|
|
||||||
];
|
|
||||||
security.pam.services.gdm.enableGnomeKeyring = true;
|
security.pam.services.gdm.enableGnomeKeyring = true;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
VISUAL = "nvim";
|
VISUAL = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = with pkgs; [ rizin sshfs nixfmt victor-mono ];
|
packages = with pkgs; [ rizin sshfs nixfmt ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user