cleaunup alsna
This commit is contained in:
parent
4e8b13ed79
commit
1e50e835f7
4 changed files with 14 additions and 20 deletions
15
flake.nix
15
flake.nix
|
|
@ -2,9 +2,11 @@
|
||||||
description = "we say NO to shitty OSes";
|
description = "we say NO to shitty OSes";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
nixos.url = "nixpkgs/nixos-24.05";
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
||||||
nixos-hardware.url = "nixos-hardware/master";
|
nixos-hardware.url = "nixos-hardware/master";
|
||||||
|
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1";
|
||||||
agenix = {
|
agenix = {
|
||||||
url = "github:ryantm/agenix";
|
url = "github:ryantm/agenix";
|
||||||
inputs.darwin.follows = "";
|
inputs.darwin.follows = "";
|
||||||
|
|
@ -17,10 +19,6 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
# plasma-manager = {
|
|
||||||
# url = "github:pjones/plasma-manager";
|
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
# };
|
|
||||||
# helix = {
|
# helix = {
|
||||||
# url = "github:mattwparas/helix/steel-event-system";
|
# url = "github:mattwparas/helix/steel-event-system";
|
||||||
# inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -29,14 +27,10 @@
|
||||||
url = "github:lilyinstarlight/nixos-cosmic";
|
url = "github:lilyinstarlight/nixos-cosmic";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
# prescurve.url = "github:taotien/prescurve";
|
|
||||||
# prescurve.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
zen-browser = {
|
zen-browser = {
|
||||||
url = "github:0xc000022070/zen-browser-flake";
|
url = "github:0xc000022070/zen-browser-flake";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1";
|
|
||||||
nixos.url = "nixpkgs/nixos-24.05";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
|
|
@ -53,18 +47,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
nixos,
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nixos-facter-modules,
|
nixos-facter-modules,
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
|
determinate,
|
||||||
agenix,
|
agenix,
|
||||||
disko,
|
disko,
|
||||||
home-manager,
|
home-manager,
|
||||||
# plasma-manager,
|
|
||||||
nixos-cosmic,
|
nixos-cosmic,
|
||||||
zen-browser,
|
zen-browser,
|
||||||
determinate,
|
|
||||||
nixos,
|
|
||||||
...
|
...
|
||||||
} @ inputs: {
|
} @ inputs: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
ouch
|
ouch
|
||||||
pueue
|
pueue
|
||||||
ripgrep
|
ripgrep
|
||||||
rustdesk
|
# rustdesk
|
||||||
sendme
|
sendme
|
||||||
skim
|
skim
|
||||||
tree
|
tree
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ alias la = ls -a
|
||||||
|
|
||||||
alias quiet = sudo ectool fanduty 42
|
alias quiet = sudo ectool fanduty 42
|
||||||
alias loud = sudo ectool autofanctrl
|
alias loud = sudo ectool autofanctrl
|
||||||
|
alias louder = sude ectool fanduty 100
|
||||||
|
|
||||||
alias cp-full = cp
|
alias cp-full = cp
|
||||||
alias cp = cp -prv
|
alias cp = cp -prv
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ def ns [package] {
|
||||||
nix shell $"nixpkgs#($package)"
|
nix shell $"nixpkgs#($package)"
|
||||||
}
|
}
|
||||||
|
|
||||||
def nr [package] {
|
# def nr [package] {
|
||||||
nix search nixpkgs $package
|
# nix search nixpkgs $package
|
||||||
}
|
# }
|
||||||
|
|
||||||
def rebuild --wrapped [subcommand, --builders: string, ...rest] {
|
def rebuild [subcommand, --builders: string] {
|
||||||
mut builders = $builders;
|
mut builders = $builders;
|
||||||
if (open /etc/hostname --raw) == "NOlaptop\n" and ($builders != "") {
|
if (open /etc/hostname --raw) == "NOlaptop\n" and ($builders != "") {
|
||||||
if (ping -c1 -W1 nocomputer | complete | $in.exit_code == 0) {
|
if (ping -c1 -W1 nocomputer | complete | $in.exit_code == 0) {
|
||||||
|
|
@ -18,9 +18,9 @@ def rebuild --wrapped [subcommand, --builders: string, ...rest] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($builders == "") {
|
if ($builders == "") {
|
||||||
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose --builders ""
|
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose --builders "" --log-format internal-json o+e>| nom --json
|
||||||
} else {
|
} else {
|
||||||
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose ...$rest
|
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose --log-format internal-json o+e>| nom --json
|
||||||
}
|
}
|
||||||
toastify send rebuild done!
|
toastify send rebuild done!
|
||||||
}
|
}
|
||||||
|
|
@ -31,13 +31,13 @@ def post-rebuild [] {
|
||||||
rustup update
|
rustup update
|
||||||
}
|
}
|
||||||
|
|
||||||
def bump --wrapped [...rest] {
|
def bump [...rest] {
|
||||||
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 nix store ping --store ssh://nocomputer
|
# sudo nix store ping --store ssh://nocomputer
|
||||||
rebuild boot ...$rest
|
rebuild boot
|
||||||
jj new
|
jj new
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue