forked from extern/zaneyos
removed unecessary host var
This commit is contained in:
parent
c9c7ceb3ce
commit
7877d6c4d6
@ -21,7 +21,6 @@
|
||||
outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
host = "hyprnix";
|
||||
inherit (import ./hosts/${host}/options.nix) username hostname;
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
@ -32,7 +31,7 @@
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
"${host}" = nixpkgs.lib.nixosSystem {
|
||||
"${hostname}" = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit system; inherit inputs;
|
||||
inherit username; inherit hostname;
|
||||
|
@ -13,7 +13,7 @@ if command -v git &> /dev/null; then
|
||||
else
|
||||
echo "Git is not installed. Please install Git and try again."
|
||||
echo "Example: nix-shell -p git"
|
||||
exit 1
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "-----"
|
||||
@ -56,7 +56,6 @@ cd zaneyos
|
||||
mkdir hosts/$hostName
|
||||
cp hosts/default/*.nix hosts/$hostName
|
||||
git add .
|
||||
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
|
||||
sed -i "/^\s*setHostname[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./hosts/$hostName/options.nix
|
||||
|
||||
echo "-----"
|
||||
|
Loading…
Reference in New Issue
Block a user