Compare commits
6 Commits
8b13a2995f
...
0520961390
| Author | SHA1 | Date | |
|---|---|---|---|
|
0520961390
|
|||
|
576f141889
|
|||
|
f4f9d0b790
|
|||
|
60f8f6ae78
|
|||
|
8822d5ea5d
|
|||
|
ccec538346
|
24
README.md
24
README.md
@@ -14,26 +14,18 @@ I'd recommend getting the GNOME version as it's easier to setup and you can sele
|
||||
|
||||
### 1. Clone dotfiles to home directory
|
||||
|
||||
Clone the repository to your home directory, you can do this by opening a shell with git installed.
|
||||
|
||||
```bash
|
||||
nix-shell -p git
|
||||
git clone https://git.mvl.sh/vleeuwenmenno/dotfiles.git ~/dotfiles
|
||||
```
|
||||
|
||||
### 2. Run `setup.sh`
|
||||
|
||||
You can run the setup.sh in the dotfiles folder to setup the system.
|
||||
Open a nix-shell with git and begin the setup process.
|
||||
This will prompt you to give a hostname for the system. For things to properly work you should ensure this repository contains the relevant assets for the hostname you provide.
|
||||
|
||||
In case you're setting up a new system you could use any of the existing hostnames in the `nconfig/nixos/hardware/` folder.
|
||||
Afterwards you should adopt the pre-generated configuration under `/etc/nixos/hardware-configuration.nix` to the repository and change the hostname to anything you like.
|
||||
|
||||
```bash
|
||||
cd ~/dotfiles && ./setup.sh
|
||||
nix-shell -p git
|
||||
curl -L https://df.mvl.sh | bash
|
||||
```
|
||||
|
||||
### 3. Reboot
|
||||
### 2. Reboot
|
||||
|
||||
It's probably a good idea that you either reboot or log out and log back in to make sure all the changes are applied.
|
||||
|
||||
@@ -41,7 +33,7 @@ It's probably a good idea that you either reboot or log out and log back in to m
|
||||
# sudo reboot
|
||||
```
|
||||
|
||||
### 4. Run `dotf update`
|
||||
### 3. Run `dotf update`
|
||||
|
||||
Run the `dotf update` command, although nixos-rebuild and home-manager already ran the dotf cli didn't yet place proper symlinks for everything.
|
||||
|
||||
@@ -49,11 +41,11 @@ Run the `dotf update` command, although nixos-rebuild and home-manager already r
|
||||
dotf update
|
||||
```
|
||||
|
||||
### 5. Setup 1Password (Optional)
|
||||
### 4. Setup 1Password (Optional)
|
||||
|
||||
1Password is installed but you need to login and enable the SSH agent and CLI components under the settings before continuing.
|
||||
|
||||
### 6. Decrypt secrets
|
||||
### 5. Decrypt secrets
|
||||
|
||||
Either using 1Password or by manualling providing the decryption key you should decrypt the secrets.
|
||||
Various configurations depend on the secrets to be decrypted such as the SSH keys, yubikey pam configuration and more.
|
||||
@@ -62,7 +54,7 @@ Various configurations depend on the secrets to be decrypted such as the SSH key
|
||||
dotf secrets decrypt
|
||||
```
|
||||
|
||||
### 7. Profit
|
||||
### 6. Profit
|
||||
|
||||
You should now have a fully setup system with all the configurations applied.
|
||||
|
||||
|
||||
@@ -93,6 +93,7 @@ symlinks() {
|
||||
}
|
||||
|
||||
sys_packages_upgrade() {
|
||||
sudo nix-channel --update
|
||||
cd $HOME/dotfiles/config/nixos && sudo nixos-rebuild switch --upgrade --flake .#$DOTF_HOSTNAME --impure
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
trayscale # Tray icon for Tailscale
|
||||
spacedrive # Virtual filesystem manager
|
||||
smile # Emoji picker
|
||||
gnome-frog # OCR tool
|
||||
gnome.gnome-boxes # Virtual machine manager
|
||||
|
||||
## Chat Apps
|
||||
telegram-desktop
|
||||
@@ -37,6 +39,7 @@
|
||||
### Games launchers
|
||||
lutris
|
||||
heroic
|
||||
dosbox
|
||||
|
||||
### Game utilities
|
||||
protonup-qt
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
"spotify.desktop"
|
||||
"vesktop.desktop"
|
||||
"org.gnome.Geary.desktop"
|
||||
"org.gnome.Console.desktop"
|
||||
"org.gnome.Nautilus.desktop"
|
||||
"org.gnome.Console.desktop"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
battery-health-charging
|
||||
just-perfection
|
||||
smile-complementary-extension
|
||||
vitals
|
||||
]);
|
||||
|
||||
# Copy burn-my-windows profile to user config
|
||||
@@ -43,6 +44,13 @@
|
||||
|
||||
dconf = {
|
||||
settings = {
|
||||
# vitals settings
|
||||
"org/gnome/shell/extensions/vitals" = {
|
||||
position-in-panel = 0;
|
||||
use-higher-precision = true;
|
||||
icon-style = 1;
|
||||
};
|
||||
|
||||
# To get an ID of an extension, run `gnome-extensions list`
|
||||
"org/gnome/shell" = {
|
||||
disable-user-extensions = false;
|
||||
@@ -68,6 +76,7 @@
|
||||
"just-perfection-desktop@just-perfection"
|
||||
"native-window-placement@gnome-shell-extensions.gcampax.github.com"
|
||||
"smile-extension@mijorus.it"
|
||||
"Vitals@CoreCoding.com"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/missioncenter/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/terminal/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/emotes/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/frog/"
|
||||
];
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/1password-quick-access" = {
|
||||
@@ -36,5 +37,10 @@
|
||||
command = "smile";
|
||||
name = "emotes";
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/frog" = {
|
||||
binding = "<Shift><Alt>3";
|
||||
command = "frog";
|
||||
name = "frog-ocr";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
9
setup.sh
9
setup.sh
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
NIXOS_RELEASE=24.05
|
||||
GIT_REPO=https://git.mvl.sh/vleeuwenmenno/dotfiles.git
|
||||
|
||||
# Check if $HOME/.dotfiles-setup exists, if so exit because setup has already been run
|
||||
if [ -f $HOME/.dotfiles-setup ]; then
|
||||
@@ -8,6 +9,14 @@ if [ -f $HOME/.dotfiles-setup ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Check if $HOME/dotfiles exists, if not clone the dotfiles repo
|
||||
if [ ! -d $HOME/dotfiles ]; then
|
||||
tput setaf 3
|
||||
echo "Cloning dotfiles repo..."
|
||||
tput sgr0
|
||||
git clone $GIT_REPO $HOME/dotfiles
|
||||
fi
|
||||
|
||||
install_nix() {
|
||||
if [ -x "$(command -v nixos-version)" ]; then
|
||||
tput setaf 2
|
||||
|
||||
Reference in New Issue
Block a user