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