fix errors

This commit is contained in:
Tao Tien 2024-10-15 19:21:20 -07:00
parent 22ca61fa17
commit 0ab65ae59d
3 changed files with 6 additions and 9 deletions

View file

@ -103,6 +103,7 @@
else throw "Have you forgotten to run nixos-anywhere with `--generate-hardware-config nixos-facter ./facter.json`?"; else throw "Have you forgotten to run nixos-anywhere with `--generate-hardware-config nixos-facter ./facter.json`?";
} }
agenix.nixosModules.default agenix.nixosModules.default
determinate.nixosModules.default
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
./systems/BASED.nix ./systems/BASED.nix
./systems/NOlaptop.nix ./systems/NOlaptop.nix
@ -110,10 +111,9 @@
./extras/uwuraid.nix ./extras/uwuraid.nix
./extras/dev.nix ./extras/dev.nix
./extras/gaming.nix ./extras/gaming.nix
nixos-cosmic.nixosModules.default # nixos-cosmic.nixosModules.default
./extras/cosmic.nix # ./extras/cosmic.nix
# ./extras/ssrov-laptop.nix # ./extras/ssrov-laptop.nix
determinate.nixosModules.default
]; ];
}; };
NOmom = nixpkgs.lib.nixosSystem { NOmom = nixpkgs.lib.nixosSystem {

View file

@ -167,6 +167,7 @@
experimental-features = "nix-command flakes"; experimental-features = "nix-command flakes";
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = ["root" "@wheel"]; trusted-users = ["root" "@wheel"];
nix-path = "nixpkgs=flake:nixpkgs";
system-features = [ system-features = [
"benchmark" "benchmark"
"big-parallel" "big-parallel"

View file

@ -63,12 +63,8 @@ def ns [package] {
def nr [package] { def nr [package] {
nix search nixpkgs $package nix search nixpkgs $package
} }
def rebuild [--no-builders (-n), subcommand] { def rebuild --wrapped [subcommand, ...rest] {
if $no_builders { sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest
sudo nice -n19 nixos-rebuild $subcommand --builders "" --flake /home/tao/projects/NOflake/ --impure --verbose
} else {
sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose
}
} }
# def post-rebuild [] { # def post-rebuild [] {
# # rm -r ~/.config/helix/runtime/grammars/ # # rm -r ~/.config/helix/runtime/grammars/