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";
|
||||
|
||||
inputs = {
|
||||
nixos.url = "nixpkgs/nixos-24.05";
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
||||
nixos-hardware.url = "nixos-hardware/master";
|
||||
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1";
|
||||
agenix = {
|
||||
url = "github:ryantm/agenix";
|
||||
inputs.darwin.follows = "";
|
||||
|
|
@ -17,10 +19,6 @@
|
|||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# plasma-manager = {
|
||||
# url = "github:pjones/plasma-manager";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
# };
|
||||
# helix = {
|
||||
# url = "github:mattwparas/helix/steel-event-system";
|
||||
# inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -29,14 +27,10 @@
|
|||
url = "github:lilyinstarlight/nixos-cosmic";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# prescurve.url = "github:taotien/prescurve";
|
||||
# prescurve.inputs.nixpkgs.follows = "nixpkgs";
|
||||
zen-browser = {
|
||||
url = "github:0xc000022070/zen-browser-flake";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1";
|
||||
nixos.url = "nixpkgs/nixos-24.05";
|
||||
};
|
||||
|
||||
nixConfig = {
|
||||
|
|
@ -53,18 +47,17 @@
|
|||
};
|
||||
|
||||
outputs = {
|
||||
nixos,
|
||||
self,
|
||||
nixpkgs,
|
||||
nixos-facter-modules,
|
||||
nixos-hardware,
|
||||
determinate,
|
||||
agenix,
|
||||
disko,
|
||||
home-manager,
|
||||
# plasma-manager,
|
||||
nixos-cosmic,
|
||||
zen-browser,
|
||||
determinate,
|
||||
nixos,
|
||||
...
|
||||
} @ inputs: {
|
||||
nixosConfigurations = {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
ouch
|
||||
pueue
|
||||
ripgrep
|
||||
rustdesk
|
||||
# rustdesk
|
||||
sendme
|
||||
skim
|
||||
tree
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ alias la = ls -a
|
|||
|
||||
alias quiet = sudo ectool fanduty 42
|
||||
alias loud = sudo ectool autofanctrl
|
||||
alias louder = sude ectool fanduty 100
|
||||
|
||||
alias cp-full = cp
|
||||
alias cp = cp -prv
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ def ns [package] {
|
|||
nix shell $"nixpkgs#($package)"
|
||||
}
|
||||
|
||||
def nr [package] {
|
||||
nix search nixpkgs $package
|
||||
}
|
||||
# def nr [package] {
|
||||
# nix search nixpkgs $package
|
||||
# }
|
||||
|
||||
def rebuild --wrapped [subcommand, --builders: string, ...rest] {
|
||||
def rebuild [subcommand, --builders: string] {
|
||||
mut builders = $builders;
|
||||
if (open /etc/hostname --raw) == "NOlaptop\n" and ($builders != "") {
|
||||
if (ping -c1 -W1 nocomputer | complete | $in.exit_code == 0) {
|
||||
|
|
@ -18,9 +18,9 @@ def rebuild --wrapped [subcommand, --builders: string, ...rest] {
|
|||
}
|
||||
}
|
||||
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 {
|
||||
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!
|
||||
}
|
||||
|
|
@ -31,13 +31,13 @@ def post-rebuild [] {
|
|||
rustup update
|
||||
}
|
||||
|
||||
def bump --wrapped [...rest] {
|
||||
def bump [...rest] {
|
||||
cd /home/tao/projects/NOflake/
|
||||
jj new -m "bump"
|
||||
nix flake update
|
||||
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
|
||||
# sudo nix store ping --store ssh://nocomputer
|
||||
rebuild boot ...$rest
|
||||
rebuild boot
|
||||
jj new
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue