Compare commits
No commits in common. "a010c256c711656462fd3449980d63afbb4b22c8" and "08396bb47913ed6658815ac1d9dd43c72fb1fcfe" have entirely different histories.
a010c256c7
...
08396bb479
@ -5,14 +5,11 @@
|
|||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
nixos-hardware,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [./hardware-configuration.nix];
|
imports = [./hardware-configuration.nix];
|
||||||
hardware.steam-hardware.enable = true;
|
hardware.steam-hardware.enable = true;
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "desktop";
|
hostName = "desktop";
|
||||||
@ -40,7 +37,6 @@
|
|||||||
wivrn = {
|
wivrn = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultRuntime = true;
|
defaultRuntime = true;
|
||||||
autoStart = true;
|
|
||||||
};
|
};
|
||||||
xserver.enable = true;
|
xserver.enable = true;
|
||||||
displayManager.sddm.enable = true;
|
displayManager.sddm.enable = true;
|
||||||
@ -51,7 +47,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
autoEnable = true;
|
autoEnable = true;
|
||||||
polarity = "dark";
|
polarity = "dark";
|
||||||
image = ../laptop/wallpaper.png;
|
image = ./wallpaper.png;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/everforest.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/everforest.yaml";
|
||||||
opacity = {
|
opacity = {
|
||||||
terminal = 0.85;
|
terminal = 0.85;
|
||||||
@ -102,24 +98,11 @@
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
|
wivrn.enable = true;
|
||||||
|
opencomposite.enable = true;
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
gamescope.enable = true;
|
gamescope.enable = true;
|
||||||
envision.enable = true;
|
}
|
||||||
corectrl.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.k = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "k";
|
|
||||||
extraGroups = ["networkmanager" "wheel"];
|
|
||||||
packages = with pkgs; [zsh];
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
backupFileExtension = "bk";
|
|
||||||
users = {"k" = import ./home.nix;};
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|||||||
@ -1,38 +1 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
##TODO
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-uuid/aace1ae9-2a8f-4a90-9e0b-cb21779636d2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/8D75-F095";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
||||||
|
|||||||
@ -5,43 +5,5 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [../home/home_common.nix];
|
imports = [../home/home_common.nix];
|
||||||
nixpkgs.config.allowUnfree = true;
|
home = {packages = with pkgs; [steam wivrn opencomposite neovim];};
|
||||||
home = {
|
|
||||||
packages = with pkgs; [
|
|
||||||
steam
|
|
||||||
neovim
|
|
||||||
firefox
|
|
||||||
wivrn
|
|
||||||
opencomposite
|
|
||||||
wlx-overlay-s
|
|
||||||
glslang
|
|
||||||
gst_all_1.gstreamer
|
|
||||||
libdrm
|
|
||||||
openxr-loader
|
|
||||||
khronos-ocl-icd-loader
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# For WiVRn:
|
|
||||||
xdg.configFile."openxr/1/active_runtime.json".source = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json";
|
|
||||||
|
|
||||||
xdg.configFile."openvr/openvrpaths.vrpath".text = ''
|
|
||||||
{
|
|
||||||
"config" :
|
|
||||||
[
|
|
||||||
"${config.xdg.dataHome}/Steam/config"
|
|
||||||
],
|
|
||||||
"external_drivers" : null,
|
|
||||||
"jsonid" : "vrpathreg",
|
|
||||||
"log" :
|
|
||||||
[
|
|
||||||
"${config.xdg.dataHome}/Steam/logs"
|
|
||||||
],
|
|
||||||
"runtime" :
|
|
||||||
[
|
|
||||||
"${pkgs.opencomposite}/lib/opencomposite"
|
|
||||||
],
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user