Update NixOS config.

This commit is contained in:
Elias Gasparis 2025-01-12 19:15:32 +08:00
parent 32acb2dfd7
commit 2c27de6e90

View file

@ -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
``` ```