mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-25 22:41:54 +02:00
Add fix for new hosts
This commit is contained in:
parent
76bc11360d
commit
e4f39191b5
@ -18,23 +18,23 @@
|
|||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."luks-cdf913d6-7149-4a8f-9461-61c394b2f5af".device = "/dev/disk/by-uuid/cdf913d6-7149-4a8f-9461-61c394b2f5af";
|
||||||
|
|
||||||
fileSystems."/home/zaney/Documents" =
|
fileSystems."/home/zaney/Documents" =
|
||||||
{ device = "/dev/disk/by-uuid/35f6d96f-0837-4868-8ce5-8e1df5e3b2f3";
|
{ device = "/dev/disk/by-uuid/35f6d96f-0837-4868-8ce5-8e1df5e3b2f3";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home/zaney/Videos" =
|
|
||||||
{ device = "/dev/disk/by-uuid/cbe1beaf-6c7f-4251-ad5c-2897aecc367d";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-cdf913d6-7149-4a8f-9461-61c394b2f5af".device = "/dev/disk/by-uuid/cdf913d6-7149-4a8f-9461-61c394b2f5af";
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/C598-AF28";
|
{ device = "/dev/disk/by-uuid/C598-AF28";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/home/zaney/Videos" =
|
||||||
|
{ device = "/dev/disk/by-uuid/cbe1beaf-6c7f-4251-ad5c-2897aecc367d";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/8160cef0-c5eb-4caa-9ef5-56a5b4eb51b8"; }
|
[ { device = "/dev/disk/by-uuid/8160cef0-c5eb-4caa-9ef5-56a5b4eb51b8"; }
|
||||||
];
|
];
|
||||||
@ -45,6 +45,7 @@
|
|||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlp6s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
@ -73,12 +73,12 @@ in {
|
|||||||
distrobox = false;
|
distrobox = false;
|
||||||
flatpak = false;
|
flatpak = false;
|
||||||
kdenlive = true;
|
kdenlive = true;
|
||||||
blender = false;
|
blender = true;
|
||||||
enableZeroAD = true;
|
enableZeroAD = true;
|
||||||
|
|
||||||
# Enable Support For
|
# Enable Support For
|
||||||
# Logitech Devices
|
# Logitech Devices
|
||||||
logitech = true;
|
logitech = false;
|
||||||
|
|
||||||
# Enable Terminals ( If You Disable All You Get Kitty )
|
# Enable Terminals ( If You Disable All You Get Kitty )
|
||||||
wezterm = false;
|
wezterm = false;
|
||||||
@ -86,7 +86,7 @@ in {
|
|||||||
kitty = true;
|
kitty = true;
|
||||||
|
|
||||||
# Enable Python & PyCharm
|
# Enable Python & PyCharm
|
||||||
python = false;
|
python = true;
|
||||||
|
|
||||||
# Enable SyncThing
|
# Enable SyncThing
|
||||||
syncthing = false;
|
syncthing = false;
|
||||||
|
@ -55,6 +55,7 @@ git clone https://gitlab.com/zaney/zaneyos.git
|
|||||||
cd zaneyos
|
cd zaneyos
|
||||||
mkdir hosts/$hostName
|
mkdir hosts/$hostName
|
||||||
cp hosts/default/*.nix hosts/$hostName
|
cp hosts/default/*.nix hosts/$hostName
|
||||||
|
git add .
|
||||||
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
|
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
|
||||||
|
|
||||||
@ -340,6 +341,7 @@ sudo nixos-generate-config --show-hardware-config > ./hosts/$hostName/hardware.n
|
|||||||
echo "-----"
|
echo "-----"
|
||||||
|
|
||||||
echo "Now Going To Build ZaneyOS, 🤞"
|
echo "Now Going To Build ZaneyOS, 🤞"
|
||||||
|
git commit -am "Add new hosts folder and all the new settings"
|
||||||
NIX_CONFIG="experimental-features = nix-command flakes"
|
NIX_CONFIG="experimental-features = nix-command flakes"
|
||||||
sudo nixos-rebuild switch --flake .#$hostName
|
sudo nixos-rebuild switch --flake .#$hostName
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user