Update NixOS config.
This commit is contained in:
parent
32acb2dfd7
commit
2c27de6e90
1 changed files with 32 additions and 22 deletions
54
README.md
54
README.md
|
@ -1,9 +1,8 @@
|
||||||
# My NixOS Flake Config
|
# My NixOS Flake Config
|
||||||
My NixOS repo with that has the configs for 2 of my NixOS machines.
|
My NixOS repo with that has the configs for 2 of my NixOS machines.
|
||||||
|
|
||||||
**Note to self:**
|
NOTE: Archived. I don't use this anymore. It got too complicated with multiple machines.
|
||||||
I have no files in /etc/nixos now. I wonder if I should `ln` them there. Hmm.
|
|
||||||
Thoughts?
|
|
||||||
|
|
||||||
## How to use this:
|
## How to use this:
|
||||||
1. Change hostnames in the flake
|
1. Change hostnames in the flake
|
||||||
|
@ -15,24 +14,35 @@ git push origin main #put updated files in git repo
|
||||||
```
|
```
|
||||||
3. In the `./nixos-config` directory, deploy with the command `sudo nixos-rebuild switch --flake .#HOSTNAME`
|
3. In the `./nixos-config` directory, deploy with the command `sudo nixos-rebuild switch --flake .#HOSTNAME`
|
||||||
|
|
||||||
## Deploy to new system:
|
|
||||||
*not tested yet*
|
|
||||||
1. git clone ?
|
|
||||||
2. nixos-rebuild switch --flake .#HOSTNAME
|
|
||||||
|
|
||||||
# Structure of NixOS Config
|
# Structure of NixOS Config
|
||||||
```
|
|
||||||
└── nixos-config
|
```.
|
||||||
├── base.nix
|
├── flake.lock
|
||||||
├── bluenix
|
├── flake.nix
|
||||||
│ ├── configuration.nix
|
├── flatpak-install.sh
|
||||||
│ └── hardware-configuration.nix
|
├── home.nix
|
||||||
├── flake.nix
|
├── hosts
|
||||||
├── fonts.nix
|
│ ├── aspirenix
|
||||||
├── gnome.nix
|
│ │ ├── configuration.nix
|
||||||
├── greynix
|
│ │ └── hardware-configuration.nix
|
||||||
│ ├── configuration.nix
|
│ ├── bluenix
|
||||||
│ └── hardware-configuration.nix
|
│ │ ├── configuration.nix
|
||||||
├── home.nix
|
│ │ └── hardware-configuration.nix
|
||||||
└── systemd.nix
|
│ └── greynix
|
||||||
|
│ ├── configuration.nix
|
||||||
|
│ └── hardware-configuration.nix
|
||||||
|
├── nixosModules
|
||||||
|
│ ├── base.nix
|
||||||
|
│ ├── docker.nix
|
||||||
|
│ ├── fonts.nix
|
||||||
|
│ ├── gnome.nix
|
||||||
|
│ ├── module-docker.nix
|
||||||
|
│ ├── module-modules.nix
|
||||||
|
│ └── systemd.nix
|
||||||
|
├── nix-upgrade.sh
|
||||||
|
├── pull.sh
|
||||||
|
├── README.md
|
||||||
|
├── rebuild.sh
|
||||||
|
├── temp-non-declarative-stuff.txt
|
||||||
|
└── update.sh
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue