Update folder structure

This commit is contained in:
iFargle 2023-09-23 22:32:23 +09:00
parent 6337ef3ece
commit 12ee3af03e
11 changed files with 17 additions and 56 deletions

View file

@ -6,16 +6,18 @@
``` ```
nixos-install <Hostname> [<Username>] nixos-install <Hostname> [<Username>]
``` ```
* Post install:
```
nix develop -c /etc/nixos/git/docs/setup.sh
```
![Gruv'd Hyprland](./screenshot.png "Hyprland with a Gruvboxy theme") ![Gruv'd Hyprland](./screenshot.png "Hyprland with a Gruvboxy theme")
--- ---
# To Do List # To Do List
* [ ] Look into hosting a binary cache locally - [Link](https://nixos.wiki/wiki/Binary_Cache)
* [ ] vscode / emacs * [ ] vscode / emacs
* Add the nix lsp - [Link](https://github.com/nix-community/rnix-lsp) * Add the nix lsp - [Link](https://github.com/nix-community/rnix-lsp)
* [ ] Automated ISO Creation
* Forgejo Actions
* [ ] Fix Grafana * [ ] Fix Grafana
* [x] Look into `nix develop` - [Link](https://zero-to-nix.com/concepts/nix#unified-cli)
* [ ] Build a better dashboard to monitor all my nixified devices * [ ] Build a better dashboard to monitor all my nixified devices
* [ ] Look into Remote Builds - [Link](https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html) * [ ] Look into Remote Builds - [Link](https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html)
* [ ] Find a way to remove all default search engines in Firefox (Google, Amazon, etc) * [ ] Find a way to remove all default search engines in Firefox (Google, Amazon, etc)
@ -27,8 +29,7 @@ nixos-install <Hostname> [<Username>]
* [ ] emacs * [ ] emacs
* [ ] Add bracket auto-completion * [ ] Add bracket auto-completion
* [ ] Find a way to have magit save login credentials * [ ] Find a way to have magit save login credentials
* [x] Try disko - [Link](https://github.com/nix-community/disko) * [ ] btrfs snapshots?
* [ ] btrfs snapshotsd
* [ ] vscodium and user-config.js file? * [ ] vscodium and user-config.js file?
* [ ] rofi - bitwarden-cli / bitwarden-menu ([Link](https://search.nixos.org/packages?channel=23.05&show=bitwarden-menu&from=0&size=50&sort=relevance&type=packages&query=bitwarden)) * [ ] rofi - bitwarden-cli / bitwarden-menu ([Link](https://search.nixos.org/packages?channel=23.05&show=bitwarden-menu&from=0&size=50&sort=relevance&type=packages&query=bitwarden))
@ -42,7 +43,7 @@ Completed ToDo List [here](docs/complete.md)
│   ├── common │   ├── common
│   │   ├── desktops │   │   ├── desktops
│   │   │   └── hyprland │   │   │   └── hyprland
│   │   │   ├── _default │   │   │   ├── default
│   │   │   │   └── wlogout │   │   │   │   └── wlogout
│   │   │   └── gruvbox │   │   │   └── gruvbox
│   │   └── software │   │   └── software

View file

@ -58,3 +58,5 @@
* `${hostname}-tailscale-key` * `${hostname}-tailscale-key`
* [x] Set up sops and gpg * [x] Set up sops and gpg
* [x] Configure GameMode / Gamescope * [x] Configure GameMode / Gamescope
* [x] Try disko - [Link](https://github.com/nix-community/disko)
* [x] Look into `nix develop` - [Link](https://zero-to-nix.com/concepts/nix#unified-cli)

View file

@ -1,10 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
pushd /etc/nixos/git
# Home-Manager Setup # Home-Manager Setup
echo "Setting up Home Manager..... " echo "Setting up Home Manager..... "
sudo mkdir /nix/var/nix/profiles/per-user/albert sudo mkdir /nix/var/nix/profiles/per-user/albert
pushd /etc/nixos/git
home-manager switch -b backup --flake /etc/nixos/git home-manager switch -b backup --flake /etc/nixos/git
source ~/.bashrc source ~/.bashrc

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View file

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 5 KiB

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -70,22 +70,22 @@
} }
#lock { #lock {
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/lock.png"); background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/default/wlogout/lock.png");
} }
#logout { #logout {
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/logout.png"); background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/default/wlogout/logout.png");
} }
#suspend { #suspend {
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/suspend.png"); background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/default/wlogout/suspend.png");
} }
#hibernate { #hibernate {
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/hibernate.png"); background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/default/wlogout/hibernate.png");
} }
#shutdown { #shutdown {
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/shutdown.png"); background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/default/wlogout/shutdown.png");
} }
#reboot { #reboot {
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/reboot.png"); background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/default/wlogout/reboot.png");
} }
''; '';
}; };

View file

@ -1,41 +0,0 @@
{
boot.loader.grub.device = "/dev/sda";
boot.initrd.luks.devices."sda2".device = "/dev/sda2";
disko.devices.disk.sda = {
device = "/dev/sda";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "BOOT";
start = "0%";
end = "550MiB";
bootable = true;
flags = [ "esp" ];
fs-type = "fat32";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
} # partition 1
{
name = "LUKS";
start = "550MiB";
end = "100%";
content = {
type = "luks";
name = "ROOT";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
}; # content.content
}; # content
} # partition 2
]; # partitions
}; # content
}; # disko.devices.disk.sda
} # root