Update
Updated config updated scripts to work with nixos
This commit is contained in:
@@ -4,8 +4,8 @@ Configurations for all of my workstations in NixOS
|
|||||||
|
|
||||||
## To Setup ##
|
## To Setup ##
|
||||||
|
|
||||||
Just run the following command to install
|
Just run the following command to install and then use the bash files in the directory.
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo bash -c "$(wget --auth-no-challenge --user=kurtis --password=02eb4348683346fc736eca38bc297c47b52af5d6 -q -O - https://git.tcmeta.net/kurtis/vargix-os/raw/branch/main/setup.sh)"
|
git clone https://70781d52eb90ab251c6bf11e531b26820e30072c@git.tcmeta.net/kurtis/dotfiles.git ~/.vargix-os
|
||||||
```
|
```
|
||||||
@@ -75,6 +75,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
programs.thefuck.enable = true;
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
|||||||
19
rebuild-nix.sh
Executable file
19
rebuild-nix.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Okay need to get the hostname and see if this exists in our list of items.
|
||||||
|
|
||||||
|
hostname=$(hostname -f)
|
||||||
|
|
||||||
|
if [ $hostname == "nixos" ]
|
||||||
|
then
|
||||||
|
echo "This distro has not been initialised"
|
||||||
|
else
|
||||||
|
# Need to check if the nix file exists
|
||||||
|
if [[ ! -f "$hostname.nix" ]]
|
||||||
|
then
|
||||||
|
echo "Your host does not have a config"
|
||||||
|
else
|
||||||
|
echo "Performing Build"
|
||||||
|
sudo nixos-rebuild dry-build -I nixos-config=./$hostname.nix
|
||||||
|
fi
|
||||||
|
fi
|
||||||
5
setup.sh
5
setup.sh
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
USER=kurtis
|
|
||||||
PASS=02eb4348683346fc736eca38bc297c47b52af5d6
|
|
||||||
|
|
||||||
# Need to add more to this later once we have the configurations setup
|
|
||||||
9
update-nix.sh
Executable file
9
update-nix.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# This will update the repo
|
||||||
|
|
||||||
|
echo "Updating Configs"
|
||||||
|
|
||||||
|
git pull
|
||||||
|
|
||||||
|
echo "Done"
|
||||||
Reference in New Issue
Block a user