Update for legiondary.
This commit is contained in:
parent
6338821f64
commit
2a76eef477
6 changed files with 116 additions and 51 deletions
|
@ -30,6 +30,12 @@ with lib.hm.gvariant; {
|
||||||
"org/gnome/nautilus/icon-view" = {
|
"org/gnome/nautilus/icon-view" = {
|
||||||
default-zoom-level = "small";
|
default-zoom-level = "small";
|
||||||
};
|
};
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
color-scheme = "prefer-dark";
|
||||||
|
};
|
||||||
|
"org/gnome/desktop/peripherals/touchpad" = {
|
||||||
|
tap-to-click = false;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,12 +17,28 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
local wez = require('wezterm')
|
local wez = require('wezterm')
|
||||||
|
local xcursor_size = nil
|
||||||
|
local xcursor_theme = nil
|
||||||
|
|
||||||
|
local success, stdout, stderr = wezterm.run_child_process({"gsettings", "get", "org.gnome.desktop.interface", "cursor-theme"})
|
||||||
|
if success then
|
||||||
|
xcursor_theme = stdout:gsub("'(.+)'\n", "%1")
|
||||||
|
end
|
||||||
|
|
||||||
|
local success, stdout, stderr = wezterm.run_child_process({"gsettings", "get", "org.gnome.desktop.interface", "cursor-size"})
|
||||||
|
if success then
|
||||||
|
xcursor_size = tonumber(stdout)
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- issue relating to nvidia drivers
|
-- issue relating to nvidia drivers
|
||||||
-- https://github.com/wez/wezterm/issues/2011
|
-- https://github.com/wez/wezterm/issues/2011
|
||||||
-- had to build out 550.67 manually to 'fix'
|
-- had to build out 550.67 manually to 'fix'
|
||||||
enable_wayland = true,
|
enable_wayland = true,
|
||||||
|
|
||||||
|
xcursor_theme = xcursor_theme,
|
||||||
|
xcursor_size = xcursor_size,
|
||||||
|
|
||||||
color_scheme = "Dracula (Official)",
|
color_scheme = "Dracula (Official)",
|
||||||
check_for_updates = false,
|
check_for_updates = false,
|
||||||
window_background_opacity = .90,
|
window_background_opacity = .90,
|
||||||
|
|
33
nixos/hosts/legiondary/default-old.nix
Normal file
33
nixos/hosts/legiondary/default-old.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ ... }: {
|
||||||
|
config = {
|
||||||
|
|
||||||
|
# hardware-configuration.nix - half of the hardware-configuration.nix file
|
||||||
|
|
||||||
|
networking.hostId = "ad4380db";
|
||||||
|
networking.hostName = "durincore";
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "rpool/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" =
|
||||||
|
{ device = "rpool/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/F1B9-CA7C";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# System settings and services.
|
||||||
|
mySystem = {
|
||||||
|
system.motd.networkInterfaces = [ "enp0s31f6" "wlp4s0" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,33 +1,51 @@
|
||||||
{ ... }: {
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
config = {
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
# hardware-configuration.nix - half of the hardware-configuration.nix file
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
networking.hostId = "ad4380db";
|
networking.hostId = "2132e3bf";
|
||||||
networking.hostName = "durincore";
|
networking.hostName = "legiondary";
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "rpool/root";
|
{ device = "zpool/root";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "rpool/home";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/F1B9-CA7C";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# System settings and services.
|
|
||||||
mySystem = {
|
|
||||||
system.motd.networkInterfaces = [ "enp0s31f6" "wlp4s0" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" =
|
||||||
|
{ device = "zpool/nix";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var" =
|
||||||
|
{ device = "zpool/var";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" =
|
||||||
|
{ device = "zpool/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/E532-B74A";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
mySystem = {
|
||||||
|
system.motd.networkInterfaces = [ "eno1" "wlp4s0" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +1,26 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
# Support windows partition
|
||||||
|
mySystem.system.packages = with pkgs; [
|
||||||
|
ntfs3g
|
||||||
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
# for managing/mounting ntfs
|
||||||
|
supportedFilesystems = [ "ntfs" ];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot = {
|
grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
zfsSupport = true;
|
||||||
efi = {
|
efiSupport = true;
|
||||||
canTouchEfiVariables = true;
|
efiInstallAsRemovable = true;
|
||||||
|
mirroredBoots = [
|
||||||
|
{ devices = ["nodev"]; path = "/boot";}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Kernel mods
|
|
||||||
initrd = {
|
|
||||||
availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
|
||||||
kernelModules = [ ];
|
|
||||||
};
|
|
||||||
kernelModules = [ "kvm-intel" ];
|
|
||||||
extraModulePackages = [ ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
@ -26,5 +30,4 @@
|
||||||
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,17 +3,6 @@
|
||||||
# Enable module for NVIDIA graphics
|
# Enable module for NVIDIA graphics
|
||||||
mySystem.hardware.nvidia.enable = true;
|
mySystem.hardware.nvidia.enable = true;
|
||||||
|
|
||||||
boot = {
|
# set xserver videodrivers for NVIDIA gpu
|
||||||
# for managing/mounting ntfs
|
|
||||||
supportedFilesystems = [ "ntfs" ];
|
|
||||||
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
grub.memtest86.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# set xserver videodrivers for NVIDIA 4080 gpu
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue