diff --git a/capibara.nix b/capibara.nix index 9048fce..cd4e3ed 100644 --- a/capibara.nix +++ b/capibara.nix @@ -87,6 +87,8 @@ in { ]; }; + environment.variables.NIXOS_CONFIG = "/home/rilla/configs/nix-config/capibara.nix"; + networking.networkmanager.wifi.macAddress = "CC:AF:78:75:29:32"; nixpkgs.config.allowUnfree = true; diff --git a/home/default.nix b/home/default.nix index 60ef4cf..0d6f99a 100644 --- a/home/default.nix +++ b/home/default.nix @@ -35,7 +35,6 @@ in { ./neovim ./pass ./rss - ./scripts ./snapcast ./sound ./ssh diff --git a/home/scripts/default.nix b/home/scripts/default.nix deleted file mode 100644 index 2c29f79..0000000 --- a/home/scripts/default.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, ... }: - -{ - home.packages = [ - (pkgs.callPackage ./nixos-rebuild.nix { inherit config pkgs; }) - ]; -} diff --git a/home/scripts/nixos-rebuild.nix b/home/scripts/nixos-rebuild.nix deleted file mode 100644 index e9c9530..0000000 --- a/home/scripts/nixos-rebuild.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ config, pkgs, ... }: - -let - config-dir="configs/nix-config"; -in - pkgs.writeScriptBin "nixos-rebuild" '' - #!${pkgs.dash}/bin/dash - HOSTNAME="''${HOSTNAME:-''$(hostname)}" - export NIXOS_CONFIG="${config.home.homeDirectory}/${config-dir}/''${HOSTNAME}.nix" - ${pkgs.nixos-rebuild}/bin/nixos-rebuild "$@" - ''