configs
This commit is contained in:
parent
2e0c42df8f
commit
43a3c2df5b
7 changed files with 59 additions and 63 deletions
|
|
@ -75,7 +75,7 @@
|
|||
services.xserver.xkb.layout = "us";
|
||||
systemd.services.display-manager.restartIfChanged = false;
|
||||
services.xserver.displayManager.sddm.enable = lib.mkDefault true;
|
||||
services.xserver.desktopManager.plasma6.enable = lib.mkDefault true;
|
||||
services.desktopManager.plasma6.enable = lib.mkDefault true;
|
||||
environment.plasma6.excludePackages = with pkgs; [
|
||||
elisa
|
||||
konsole
|
||||
|
|
|
|||
|
|
@ -101,7 +101,6 @@
|
|||
# options: production, beta, vulkan_beta, latest
|
||||
# package = pkgs.linuxPackages_latest.nvidiaPackages.latest;
|
||||
package = pkgs.linuxPackages_zen.nvidiaPackages.latest;
|
||||
open = true;
|
||||
# open = true;
|
||||
};
|
||||
# enable core and mem freq sliders for nvidia
|
||||
|
|
|
|||
|
|
@ -100,12 +100,12 @@
|
|||
# '';
|
||||
|
||||
# obs virtual camera
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback
|
||||
];
|
||||
boot.extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
# boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
# v4l2loopback
|
||||
# ];
|
||||
# boot.extraModprobeConfig = ''
|
||||
# options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
# '';
|
||||
|
||||
# stylix.autoEnable = false;
|
||||
# stylix.image = /home/tao/Pictures/Wallpapers/DJI_0121.JPG;
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@
|
|||
}: {
|
||||
imports = [
|
||||
(import ./helix.nix {inherit pkgs inputs;})
|
||||
./cargo.nix
|
||||
];
|
||||
|
||||
home.file.".cargo/config.toml".text = builtins.readFile ./cargo.toml;
|
||||
|
||||
programs = {
|
||||
jujutsu = {
|
||||
enable = true;
|
||||
|
|
@ -42,9 +43,9 @@
|
|||
settings = builtins.fromTOML (builtins.readFile ./starship.toml);
|
||||
};
|
||||
|
||||
# taskwarrior = {
|
||||
# enable = true;
|
||||
# };
|
||||
taskwarrior = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
wezterm = {
|
||||
enable = true;
|
||||
|
|
@ -62,12 +63,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
# services = {
|
||||
# pueue = {
|
||||
# enable = true;
|
||||
# settings = {};
|
||||
# };
|
||||
# };
|
||||
services = {
|
||||
pueue = {
|
||||
enable = true;
|
||||
settings = {};
|
||||
};
|
||||
};
|
||||
|
||||
home.username = "tao";
|
||||
home.homeDirectory = "/home/tao";
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
{pkgs, ...}: {
|
||||
home.file.".cargo/config.toml".text = ''
|
||||
[alias]
|
||||
rr = "run --release"
|
||||
|
||||
[build]
|
||||
target = "x86_64-unknown-linux-gnu"
|
||||
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
||||
rustflags = ["-Z", "threads=8"]
|
||||
|
||||
[unstable]
|
||||
codegen-backend = true
|
||||
|
||||
[provile.dev]
|
||||
debug = 0
|
||||
strip = "debuginfo"
|
||||
opt-level = 1
|
||||
lto = "off"
|
||||
codegen-backend = "cranelift"
|
||||
|
||||
[profile.dev.package."*"]
|
||||
# slow clean build for faster incrementals
|
||||
opt-level = 3
|
||||
|
||||
[profile.release]
|
||||
incremental = true
|
||||
codegen-units = 1
|
||||
lto = "fat"
|
||||
|
||||
# [target.x86-unknown-linux-musl]
|
||||
# # linker = "musl-gcc"
|
||||
# linker = "clang"
|
||||
# rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
||||
|
||||
[target.x86-unknown-linux-gnu]
|
||||
# linker = "musl-gcc"
|
||||
linker = "clang"
|
||||
rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
||||
|
||||
# https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent
|
||||
# jonhoo
|
||||
'';
|
||||
}
|
||||
39
users/tao/cargo.toml
Normal file
39
users/tao/cargo.toml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
[alias]
|
||||
rr = "run --release"
|
||||
|
||||
[build]
|
||||
target = "x86_64-unknown-linux-gnu"
|
||||
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
||||
rustflags = ["-Z", "threads=8"]
|
||||
|
||||
[unstable]
|
||||
codegen-backend = true
|
||||
|
||||
[provile.dev]
|
||||
debug = 0
|
||||
strip = "debuginfo"
|
||||
opt-level = 1
|
||||
lto = "off"
|
||||
codegen-backend = "cranelift"
|
||||
|
||||
[profile.dev.package."*"]
|
||||
# slow clean build for faster incrementals
|
||||
opt-level = 3
|
||||
|
||||
[profile.release]
|
||||
incremental = true
|
||||
codegen-units = 1
|
||||
lto = "fat"
|
||||
|
||||
# [target.x86-unknown-linux-musl]
|
||||
# # linker = "musl-gcc"
|
||||
# linker = "clang"
|
||||
# rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
||||
|
||||
[target.x86-unknown-linux-gnu]
|
||||
# linker = "musl-gcc"
|
||||
linker = "clang"
|
||||
rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
||||
|
||||
# https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent
|
||||
# jonhoo
|
||||
|
|
@ -7,8 +7,8 @@ alias gc = sudo nix-collect-garbage -d
|
|||
alias js = jj status
|
||||
alias jd = jj diff
|
||||
alias pu = pueue
|
||||
alias rb = sudo nixos-rebuild boot --flake ~/Projects/NOflake/
|
||||
alias rs = sudo nixos-rebuild switch --flake ~/Projects/NOflake/
|
||||
alias rb = sudo nice -n19 nixos-rebuild boot --flake ~/Projects/NOflake/
|
||||
alias rs = sudo nice -n19 nixos-rebuild switch --flake ~/Projects/NOflake/
|
||||
alias t = task
|
||||
alias ts = tailscale
|
||||
alias tss = tailscale status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue