This commit is contained in:
Tao Tien 2024-04-20 18:47:52 -07:00
parent 635600ace2
commit 342673154d
5 changed files with 52 additions and 37 deletions

View file

@ -1,4 +1,13 @@
{pkgs, ...}: { {
pkgs,
lib,
...
}: let
if_desktop =
if lib.strings.hasPrefix "NOcomputer" (builtins.readFile /etc/hostname)
then true
else false;
in {
# aagl.url = "github:ezKEa/aagl-gtk-on-nix"; # aagl.url = "github:ezKEa/aagl-gtk-on-nix";
# aagl.inputs.nixpkgs.follows = "nixpkgs"; # aagl.inputs.nixpkgs.follows = "nixpkgs";
@ -43,9 +52,9 @@
]; ];
# THE FINALS audio borked # THE FINALS audio borked
# services.pipewire.enable = false; services.pipewire.enable = !if_desktop;
# hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = if_desktop;
# hardware.pulseaudio.support32Bit = true; hardware.pulseaudio.support32Bit = if_desktop;
services.pipewire.extraConfig = { services.pipewire.extraConfig = {
pipewire."99-low-latency" = { pipewire."99-low-latency" = {
context.properties = { context.properties = {

36
flake.lock generated
View file

@ -145,11 +145,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713479476, "lastModified": 1713566308,
"narHash": "sha256-kTww3Hd+R95AB6J+Y1zvXrhUScgMzf0vV5hN6+wFPXE=", "narHash": "sha256-7Y91t8pheIzjJveUMAPyeh5NOq5F49Nq4Hl2532QpJs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "ffc3600f4009ca39b6cb63b24127ca4f93792854", "rev": "057117a401a34259c9615ce62218aea7afdee4d3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -189,11 +189,11 @@
"rust-overlay": "rust-overlay_2" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1713499612, "lastModified": 1713647546,
"narHash": "sha256-IpvUlRDZkBXstPGwB1HDQWHwsUCUGybViAqD6G6siLc=", "narHash": "sha256-oiLxCGkICL2LXHZV6hhm3858JC/+6oANV5guVaRM6Wg=",
"owner": "martinvonz", "owner": "martinvonz",
"repo": "jj", "repo": "jj",
"rev": "449fc423b864e5b83043b93f80114a793b05a9f2", "rev": "77eaf67f96c6ea438e2dd1a5636f34b6a321e6be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -210,11 +210,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713505400, "lastModified": 1713622239,
"narHash": "sha256-TsDy77lqN18hIWWeXbfHmdgyJS5U2Kx1t7iwVnLuJLc=", "narHash": "sha256-iDJSzi//RKkVwJ/VaQA04qkP0riC9WMdhfGBfL87H3E=",
"owner": "lilyinstarlight", "owner": "lilyinstarlight",
"repo": "nixos-cosmic", "repo": "nixos-cosmic",
"rev": "19e47d2c132cd733f80fa6adc37011a01811447f", "rev": "23289df6d107b9e7610980977eff5316dbad9ecb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -225,11 +225,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1713441075, "lastModified": 1713521961,
"narHash": "sha256-3GGeFsEO8ivD+TcDEqe4s/d0VLvMYGNDGtx0ZnBxkUs=", "narHash": "sha256-EwR8wW9AqJhSIY+0oxWRybUZ32BVKuZ9bjlRh8SJvQ8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "6f976e53752e5b9ab08f9a3b1b0b9c67815c9754", "rev": "5d48925b815fd202781bfae8fb6f45c07112fdb2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -255,11 +255,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1713297878, "lastModified": 1713537308,
"narHash": "sha256-hOkzkhLT59wR8VaMbh1ESjtZLbGi+XNaBN6h49SPqEc=", "narHash": "sha256-XtTSSIB2DA6tOv+l0FhvfDMiyCmhoRbNB+0SeInZkbk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "66adc1e47f8784803f2deb6cacd5e07264ec2d5c", "rev": "5c24cf2f0a12ad855f444c30b2421d044120c66f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -276,11 +276,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1713460214, "lastModified": 1713552700,
"narHash": "sha256-WvX42uScdEN5yDJ13ZWQczYyUpPawgvt4JHvAaK5c44=", "narHash": "sha256-R2+GRjHFEapDa08FnuJjweAiE+5W7VKnBxNo3tC/Yzo=",
"owner": "pjones", "owner": "pjones",
"repo": "plasma-manager", "repo": "plasma-manager",
"rev": "ef0c106a2104f841a54fe4b9ec60a79775e2fe1e", "rev": "bd743369ef402d269885225af93064f22b640990",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -7,17 +7,17 @@
enable = true; enable = true;
algorithm = "zstd"; algorithm = "zstd";
}; };
nixpkgs.overlays = [ # nixpkgs.overlays = [
(final: prev: { # (final: prev: {
libinput = prev.libinput.overrideAttrs (old: { # libinput = prev.libinput.overrideAttrs (old: {
patches = # patches =
(old.patches or []) # (old.patches or [])
++ [ # ++ [
../extras/libinput-delay.patch # ../extras/libinput-delay.patch
]; # ];
}); # });
}) # })
]; # ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# fw-ectool # fw-ectool
@ -28,7 +28,7 @@
nix.buildMachines = [ nix.buildMachines = [
{ {
hostName = "nocomputer"; hostName = "nocomputer";
systems = ["x86_64-linux"]; systems = ["x86_64-linux" "i686-linux"];
supportedFeatures = ["big-parallel"]; supportedFeatures = ["big-parallel"];
} }
]; ];

View file

@ -21,7 +21,7 @@
aspellDicts.en aspellDicts.en
bottles bottles
boxxy boxxy
calibre # calibre
darktable darktable
deluge deluge
discord discord

View file

@ -1,12 +1,18 @@
source ~/.cache/starship/init.nu source ~/.cache/starship/init.nu
source ~/.zoxide.nu source ~/.zoxide.nu
def bump [] { def bump [] {
cd /home/tao/projects/NOflake/; cd /home/tao/projects/NOflake/;
jj new -m "bump"; jj new -m "bump";
nix flake update; nix flake update;
rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix; # rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
sudo nixos-rebuild --flake /home/tao/projects/NOflake/ boot --impure --verbose; sudo nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose;
}; };
def tse [exit_node] {
tailscale set --exit-node="$exit_node"
}
alias b = btm; alias b = btm;
alias cringe = sudo bootctl set-oneshot auto-windows alias cringe = sudo bootctl set-oneshot auto-windows
alias fetch = neofetch alias fetch = neofetch