current
This commit is contained in:
parent
24aa0a58e4
commit
76c91fc817
9 changed files with 232 additions and 64 deletions
|
|
@ -1,23 +1,68 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
elf2uf2-rs
|
# alsa-lib
|
||||||
|
# alsa-oss
|
||||||
|
# clang
|
||||||
|
# cmake
|
||||||
|
# libclang
|
||||||
|
# libopus
|
||||||
|
# opencv
|
||||||
|
# openssl
|
||||||
|
# pkg-config
|
||||||
|
# pkgconfig
|
||||||
|
# rustup
|
||||||
|
# udev
|
||||||
|
expat
|
||||||
|
fontconfig
|
||||||
|
freetype
|
||||||
|
freetype.dev
|
||||||
|
libGL
|
||||||
|
pkgconfig
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXcursor
|
||||||
|
xorg.libXi
|
||||||
|
xorg.libXrandr
|
||||||
|
bacon
|
||||||
|
unstable.cargo
|
||||||
|
unstable.cargo-feature
|
||||||
|
unstable.cargo-rr
|
||||||
|
clang-tools
|
||||||
|
unstable.clippy
|
||||||
|
unstable.elf2uf2-rs
|
||||||
|
etcher
|
||||||
gcc
|
gcc
|
||||||
gdb
|
gdb
|
||||||
lldb
|
lldb
|
||||||
rustup
|
unstable.rust-analyzer
|
||||||
|
unstable.rustfmt
|
||||||
unstable.cargo-edit
|
unstable.cargo-edit
|
||||||
bacon
|
unstable.rustc
|
||||||
cargo-feature
|
unstable.sccache
|
||||||
# cmake
|
vulkan-loader
|
||||||
# clang
|
|
||||||
# pkg-config
|
|
||||||
# udev
|
|
||||||
# libclang
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# environment.variables = {
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
# LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.libclang.lib ];
|
"electron-12.2.3"
|
||||||
# };
|
];
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
# LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.libclang.lib ];
|
||||||
|
# LD_LIBRARY_PATH =
|
||||||
|
# builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" pkgs;
|
||||||
|
LD_LIBRARY_PATH = builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" [
|
||||||
|
pkgs.expat
|
||||||
|
pkgs.fontconfig
|
||||||
|
pkgs.freetype
|
||||||
|
pkgs.freetype.dev
|
||||||
|
pkgs.libGL
|
||||||
|
pkgs.pkgconfig
|
||||||
|
pkgs.xorg.libX11
|
||||||
|
pkgs.xorg.libXcursor
|
||||||
|
pkgs.xorg.libXi
|
||||||
|
pkgs.xorg.libXrandr
|
||||||
|
pkgs.vulkan-loader
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic GDB Server", SYMLINK+="ttyBmpGdb"
|
SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic GDB Server", SYMLINK+="ttyBmpGdb"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
lutris
|
unstable.lutris
|
||||||
mangohud
|
unstable.mangohud
|
||||||
prismlauncher
|
unstable.prismlauncher
|
||||||
wine
|
wine
|
||||||
|
unstable.heroic
|
||||||
|
# unstable.parsec-bin
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,37 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
services.rpcbind.enable = true;
|
services.rpcbind.enable = true;
|
||||||
systemd.mounts = let commonMountOptions = { type = "nfs"; mountConfig = { Options = "noatime"; }; }; in
|
systemd.mounts =
|
||||||
|
let
|
||||||
|
opts = {
|
||||||
|
type = "cifs";
|
||||||
|
mountConfig = { Options = "credentials=/etc/nixos/smb-secrets,noatime,uid=1000,gid=100"; };
|
||||||
|
};
|
||||||
|
in
|
||||||
[
|
[
|
||||||
(commonMountOptions // { what = "100.86.160.104:/mnt/user/anime"; where = "/mnt/uwuraid/anime"; })
|
(opts // { what = "//100.86.160.104/anime"; where = "/mnt/uwuraid/anime"; })
|
||||||
(commonMountOptions // { what = "100.86.160.104:/mnt/user/backup"; where = "/mnt/uwuraid/backup"; })
|
(opts // { what = "//100.86.160.104/backup"; where = "/mnt/uwuraid/backup"; })
|
||||||
(commonMountOptions // { what = "100.86.160.104:/mnt/user/everything"; where = "/mnt/uwuraid/everything"; })
|
(opts // { what = "//100.86.160.104/everything"; where = "/mnt/uwuraid/everything"; })
|
||||||
(commonMountOptions // { what = "100.86.160.104:/mnt/user/movies"; where = "/mnt/uwuraid/movies"; })
|
(opts // { what = "//100.86.160.104/movies"; where = "/mnt/uwuraid/movies"; })
|
||||||
(commonMountOptions // { what = "100.86.160.104:/mnt/user/photos"; where = "/mnt/uwuraid/photos"; })
|
(opts // { what = "//100.86.160.104/music"; where = "/mnt/uwuraid/music"; })
|
||||||
(commonMountOptions // { what = "100.86.160.104:/mnt/user/syncthing"; where = "/mnt/uwuraid/syncthing"; })
|
(opts // { what = "//100.86.160.104/photos"; where = "/mnt/uwuraid/photos"; })
|
||||||
(commonMountOptions // { what = "100.86.160.104:/mnt/user/television"; where = "/mnt/uwuraid/television"; })
|
(opts // { what = "//100.86.160.104/syncthing"; where = "/mnt/uwuraid/syncthing"; })
|
||||||
|
(opts // { what = "//100.86.160.104/television"; where = "/mnt/uwuraid/television"; })
|
||||||
];
|
];
|
||||||
systemd.automounts = let commonAutoMountOptions = { wantedBy = [ "multi-user.target" ]; automountConfig = { TimeoutIdleSec = "60"; }; }; in
|
systemd.automounts =
|
||||||
|
let
|
||||||
|
opts = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
automountConfig = { TimeoutIdleSec = "60"; };
|
||||||
|
};
|
||||||
|
in
|
||||||
[
|
[
|
||||||
(commonAutoMountOptions // { where = "/mnt/uwuraid/anime"; })
|
(opts // { where = "/mnt/uwuraid/anime"; })
|
||||||
(commonAutoMountOptions // { where = "/mnt/uwuraid/backup"; })
|
(opts // { where = "/mnt/uwuraid/backup"; })
|
||||||
(commonAutoMountOptions // { where = "/mnt/uwuraid/everything"; })
|
(opts // { where = "/mnt/uwuraid/everything"; })
|
||||||
(commonAutoMountOptions // { where = "/mnt/uwuraid/movies"; })
|
(opts // { where = "/mnt/uwuraid/movies"; })
|
||||||
(commonAutoMountOptions // { where = "/mnt/uwuraid/photos"; })
|
(opts // { where = "/mnt/uwuraid/music"; })
|
||||||
(commonAutoMountOptions // { where = "/mnt/uwuraid/syncthing"; })
|
(opts // { where = "/mnt/uwuraid/photos"; })
|
||||||
(commonAutoMountOptions // { where = "/mnt/uwuraid/television"; })
|
(opts // { where = "/mnt/uwuraid/syncthing"; })
|
||||||
|
(opts // { where = "/mnt/uwuraid/television"; })
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
flake.lock
generated
18
flake.lock
generated
|
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692373088,
|
"lastModified": 1695541019,
|
||||||
"narHash": "sha256-EPgCecdc9I8aTdmDNoO1l7R72r2WPhZRcesV4nzxBj8=",
|
"narHash": "sha256-rs++zfk41K9ArWkDAlmBDlGlKO8qeRIRzdjo+9SmNFI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "7f1836531b126cfcf584e7d7d71bf8758bb58969",
|
"rev": "61283b30d11f27d5b76439d43f20d0c0c8ff5296",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -16,11 +16,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692339729,
|
"lastModified": 1695559356,
|
||||||
"narHash": "sha256-TUK76/Pqm9qIDjEGd27Lz9EiBIvn5F70JWDmEQ4Y5DQ=",
|
"narHash": "sha256-kXZ1pUoImD9OEbPCwpTz4tHsNTr4CIyIfXb3ocuR8sI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ae521bd4e460b076a455dca8b13f4151489a725c",
|
"rev": "261abe8a44a7e8392598d038d2e01f7b33cf26d0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -31,11 +31,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692356644,
|
"lastModified": 1695644571,
|
||||||
"narHash": "sha256-AYkPFT+CbCVSBmh0WwIzPpwhEJ4Yy3A7JZvUkGJIg5o=",
|
"narHash": "sha256-asS9dCCdlt1lPq0DLwkVBbVoEKuEuz+Zi3DG7pR/RxA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8ecc900b2f695d74dea35a92f8a9f9b32c8ea33d",
|
"rev": "6500b4580c2a1f3d0f980d32d285739d8e156d92",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
overlay-unstable = final: prev: {
|
overlay-unstable = final: prev: {
|
||||||
# unstable = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
|
||||||
unstable = import nixpkgs-unstable {
|
unstable = import nixpkgs-unstable {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
|
@ -44,6 +43,12 @@
|
||||||
./extras/dev.nix
|
./extras/dev.nix
|
||||||
./extras/gaming.nix
|
./extras/gaming.nix
|
||||||
];
|
];
|
||||||
|
NObangers = nixosSystem [
|
||||||
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
|
./systems/BASED.nix
|
||||||
|
./systems/NObangers.nix
|
||||||
|
./extras/uwuraid.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,17 @@
|
||||||
{ lib, pkgs, modulesPath, ... }: {
|
{ lib, pkgs, modulesPath, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# exfatprogs
|
# exfatprogs
|
||||||
|
# rustup
|
||||||
appimage-run
|
appimage-run
|
||||||
bat
|
bat
|
||||||
bottom
|
bottom
|
||||||
cifs-utils
|
cifs-utils
|
||||||
du-dust
|
du-dust
|
||||||
|
ffmpeg
|
||||||
firefox
|
firefox
|
||||||
git
|
git
|
||||||
helix
|
helix
|
||||||
|
mesa
|
||||||
mpv
|
mpv
|
||||||
nfs-utils
|
nfs-utils
|
||||||
nil
|
nil
|
||||||
|
|
@ -16,14 +19,17 @@
|
||||||
onlyoffice-bin
|
onlyoffice-bin
|
||||||
ouch
|
ouch
|
||||||
ripgrep-all
|
ripgrep-all
|
||||||
# rustup
|
|
||||||
skim
|
skim
|
||||||
|
snapper
|
||||||
tree
|
tree
|
||||||
|
unstable.yazi
|
||||||
|
unstable.joshuto
|
||||||
|
unstable.oculante
|
||||||
wezterm
|
wezterm
|
||||||
wget
|
wget
|
||||||
zstd
|
|
||||||
yt-dlp
|
yt-dlp
|
||||||
ffmpeg
|
zathura
|
||||||
|
zstd
|
||||||
];
|
];
|
||||||
programs.partition-manager.enable = true;
|
programs.partition-manager.enable = true;
|
||||||
|
|
||||||
|
|
@ -31,6 +37,7 @@
|
||||||
services.openssh.enable = lib.mkDefault true;
|
services.openssh.enable = lib.mkDefault true;
|
||||||
services.flatpak.enable = lib.mkDefault true;
|
services.flatpak.enable = lib.mkDefault true;
|
||||||
services.printing.enable = lib.mkDefault true;
|
services.printing.enable = lib.mkDefault true;
|
||||||
|
services.btrfs.autoScrub.enable = true;
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
EDITOR = "hx";
|
EDITOR = "hx";
|
||||||
|
|
@ -57,7 +64,23 @@
|
||||||
boot.loader.timeout = 0;
|
boot.loader.timeout = 0;
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
# dispatcherScripts = [{
|
||||||
|
# source = pkgs.writeText "upHook" ''
|
||||||
|
# logger "event $2"
|
||||||
|
# if [ "$2" == "vpn-up" ]; then
|
||||||
|
# iptables -A OUTPUT -o tun0 -j ACCEPT
|
||||||
|
# iptables -A OUTPUT ! -o tun0 -j DROP
|
||||||
|
# fi
|
||||||
|
# if [ "$2" == "vpn-down" ]; then
|
||||||
|
# iptables -D OUTPUT -o tun0 -j ACCEPT
|
||||||
|
# iptables -D OUTPUT ! -o tun0 -j DROP
|
||||||
|
# fi
|
||||||
|
# '';
|
||||||
|
# type = "basic";
|
||||||
|
# }];
|
||||||
|
};
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
@ -68,6 +91,7 @@
|
||||||
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
|
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
|
||||||
elisa
|
elisa
|
||||||
konsole
|
konsole
|
||||||
|
gwenview
|
||||||
];
|
];
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
|
|
@ -89,6 +113,7 @@
|
||||||
|
|
||||||
time.timeZone = "US/Pacific";
|
time.timeZone = "US/Pacific";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
i18n.supportedLocales = [ "all" ];
|
||||||
|
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }: {
|
||||||
{
|
services.xserver.displayManager = {
|
||||||
|
autoLogin.enable = true;
|
||||||
|
autoLogin.user = "tao";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs;
|
environment.systemPackages = with pkgs;
|
||||||
[
|
[
|
||||||
# mesa
|
# mesa
|
||||||
|
|
@ -10,16 +15,23 @@
|
||||||
# nvidia-vaapi-driver
|
# nvidia-vaapi-driver
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
# wayland chromium workaround
|
# wayland chromium workaround
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
fileSystems."/home" = {
|
fileSystems."/home" = {
|
||||||
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
|
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=home_snaps/0/snapshot" "noatime" "compress-force=zstd:3" ];
|
options = [ "subvol=home_snaps/0/snapshot" "noatime" "compress-force=zstd:3" ];
|
||||||
};
|
};
|
||||||
|
fileSystems."/home/.snapshots" = {
|
||||||
|
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=home_snaps/" "noatime" "compress-force=zstd:3" ];
|
||||||
|
};
|
||||||
fileSystems."/home/tao/Games" = {
|
fileSystems."/home/tao/Games" = {
|
||||||
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
|
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
@ -45,9 +57,23 @@
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=nixos/tmp" ];
|
options = [ "subvol=nixos/tmp" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [{ device = "/dev/disk/by-uuid/ca0ed3d7-8758-4ac7-b016-8b4cd9608ded"; }];
|
swapDevices = [{ device = "/dev/disk/by-uuid/ca0ed3d7-8758-4ac7-b016-8b4cd9608ded"; }];
|
||||||
|
|
||||||
|
|
||||||
|
services.snapper.configs =
|
||||||
|
{
|
||||||
|
home = {
|
||||||
|
SUBVOLUME = "/home";
|
||||||
|
ALLOW_USERS = [ "tao" ];
|
||||||
|
TIMELINE_CREATE = true;
|
||||||
|
TIMELINE_CLEANUP = true;
|
||||||
|
TIMELINE_LIMIT_HOURLY = "5";
|
||||||
|
TIMELINE_LIMIT_DAILY = "7";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.snapper.snapshotInterval = "*:0/5";
|
||||||
|
|
||||||
|
|
||||||
# systemd.user.services.fans = {
|
# systemd.user.services.fans = {
|
||||||
# description = "NZXT fans to 69% using liquidctl";
|
# description = "NZXT fans to 69% using liquidctl";
|
||||||
# script = ''
|
# script = ''
|
||||||
|
|
@ -56,10 +82,13 @@
|
||||||
# wantedBy = [ "default.target" ];
|
# wantedBy = [ "default.target" ];
|
||||||
# };
|
# };
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
boot.kernelPackages = pkgs.unstable.linuxPackages_latest;
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.kernelModules = [ "i2c-dev" "kvm-amd" ];
|
boot.kernelModules = [ "i2c-dev" "kvm-amd" ];
|
||||||
|
|
||||||
|
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
|
|
@ -67,8 +96,9 @@
|
||||||
};
|
};
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = true;
|
||||||
# package = config.boot.kernelPackages.nvidiaPackages.beta;
|
# package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
# package = pkgs.unstable.linuxPackages_latest.nvidiaPackages.production;
|
package = pkgs.unstable.linuxPackages_latest.nvidiaPackages.production;
|
||||||
};
|
};
|
||||||
# enable core and mem freq sliders for nvidia
|
# enable core and mem freq sliders for nvidia
|
||||||
services.xserver.deviceSection = ''
|
services.xserver.deviceSection = ''
|
||||||
|
|
@ -80,10 +110,13 @@
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.udev.packages = [ pkgs.openrgb ];
|
services.udev.packages = [ pkgs.openrgb ];
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
KERNEL=="hidraw*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a3c5", MODE="0666"
|
KERNEL=="hidraw*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a3c5", MODE="0666"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
time.hardwareClockInLocalTime = true;
|
||||||
networking.hostName = "NOcomputer";
|
networking.hostName = "NOcomputer";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
intel-gpu-tools
|
intel-gpu-tools
|
||||||
|
# libsForQt5.skanpage
|
||||||
|
powertop
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/home" = {
|
fileSystems."/home" = {
|
||||||
|
|
@ -26,10 +28,10 @@
|
||||||
powerManagement.powertop.enable = true;
|
powerManagement.powertop.enable = true;
|
||||||
hardware.sensor.iio.enable = true;
|
hardware.sensor.iio.enable = true;
|
||||||
|
|
||||||
hardware.sane = {
|
# hardware.sane = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
extraBackends = [ pkgs.epkowa ];
|
# extraBackends = [ pkgs.epkowa ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
|
|
@ -41,10 +43,28 @@
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"mem_sleep_default=deep"
|
"mem_sleep_default=deep"
|
||||||
"nvme.noacpi=1"
|
"nvme.noacpi=1"
|
||||||
|
"i915.eanble_psr=1"
|
||||||
];
|
];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
powerManagement.cpuFreqGovernor = "powersave";
|
powerManagement.cpuFreqGovernor = "powersave";
|
||||||
systemd.sleep.extraConfig = "HibernateDelaySec=60m";
|
systemd.sleep.extraConfig = "HibernateDelaySec=60m";
|
||||||
|
|
||||||
|
services.pipewire.wireplumber.enable = true;
|
||||||
|
environment.etc = {
|
||||||
|
"wireplumber/main.lua.d/51-fix-static.lua".text = ''
|
||||||
|
rule = {
|
||||||
|
matches = {
|
||||||
|
{
|
||||||
|
{ "node.name", "equals", "alsa_output.pci-0000_00_1f.3.analog-stereo.3" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
apply_properties = {
|
||||||
|
[ "audio.format" ] = "S24LE" ,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
table.insert(alsa_monitor.rules, rule)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostName = "NOlaptop";
|
networking.hostName = "NOlaptop";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,48 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
users.users.tao.packages = with pkgs; [
|
users.users.tao.packages = with pkgs; [
|
||||||
|
# expressvpn
|
||||||
|
# fractal
|
||||||
|
# gnumake
|
||||||
|
# libftdi
|
||||||
|
# libusb
|
||||||
|
# nix-prefetch-scripts
|
||||||
|
# pkg-config
|
||||||
|
aspell
|
||||||
|
aspellDicts.en
|
||||||
|
# enchant
|
||||||
|
# nuspell
|
||||||
|
# hunspellDicts.en-us-large
|
||||||
|
rustdesk
|
||||||
bottles
|
bottles
|
||||||
|
cider
|
||||||
darktable
|
darktable
|
||||||
deluge
|
deluge
|
||||||
discord
|
discord
|
||||||
# expressvpn
|
|
||||||
# fractal
|
|
||||||
gh
|
gh
|
||||||
# gnumake
|
|
||||||
# pkg-config
|
|
||||||
# libftdi
|
|
||||||
# libusb
|
|
||||||
keepassxc
|
keepassxc
|
||||||
|
libsForQt5.kcharselect
|
||||||
libsForQt5.kdeconnect-kde
|
libsForQt5.kdeconnect-kde
|
||||||
# nix-prefetch-scripts
|
mdbook
|
||||||
unstable.starship
|
|
||||||
rustdesk
|
|
||||||
tio
|
|
||||||
partition-manager
|
partition-manager
|
||||||
|
slack
|
||||||
|
tectonic
|
||||||
|
texlab
|
||||||
|
tio
|
||||||
|
unstable.typst
|
||||||
|
ocs-url
|
||||||
|
typst-lsp
|
||||||
unstable.nushell
|
unstable.nushell
|
||||||
unstable.prusa-slicer
|
unstable.prusa-slicer
|
||||||
|
unstable.starship
|
||||||
unstable.wezterm
|
unstable.wezterm
|
||||||
virt-manager
|
virt-manager
|
||||||
|
zoom-us
|
||||||
zoxide
|
zoxide
|
||||||
|
obs-studio
|
||||||
];
|
];
|
||||||
|
# programs.nushell.enable = true;
|
||||||
|
environment.shells = with pkgs; [ unstable.nushell ];
|
||||||
|
|
||||||
# services.expressvpn.enable = true;
|
# services.expressvpn.enable = true;
|
||||||
|
|
||||||
|
|
@ -47,5 +65,11 @@
|
||||||
users.users.tao = {
|
users.users.tao = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "libvirtd" "dialout" "scanner" "lp" ];
|
extraGroups = [ "wheel" "libvirtd" "dialout" "scanner" "lp" ];
|
||||||
|
shell = pkgs.unstable.nushell;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# i18n.inputMethod = {
|
||||||
|
# enabled = "fcitx5";
|
||||||
|
# fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-chewing fcitx5-chinese-addons fcitx5-rime ];
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue