Commit Graph

13 Commits

Author SHA1 Message Date
Alex Davies 18d2a55b93 Enable zerotier, fixup firewall 2024-05-11 17:25:12 -03:00
Alex Davies 854f7a0eb6 Added my home-assistant conf 2024-05-11 15:17:01 -03:00
Alex Davies 3213050cae Timezones! 2024-05-11 13:12:04 -03:00
Alex Davies 22205740b8 Added in zerotier support 2024-05-11 15:53:09 +00:00
Alex Davies 2cc2aea61f Added CAD tool settings 2024-05-11 12:40:43 +00:00
Alex Davies 58c421383c Hardware configuration 2024-05-11 10:47:11 +00:00
Alex Davies fc86ce846a Forgot to commit over the weekend 2024-04-29 15:15:49 -03:00
Alex Davies b7438f913f Add in kde config 2024-04-25 12:28:13 -03:00
Alex Davies 892009fb9d Remove hostname assignment for nixos configurations. 2024-04-24 10:50:04 -03:00
Alex Davies edcc5edac4 aider: Update hostname configuration to use variables from `flake.nix` in `nixos/configuration.nix`.
# Aider chat conversation:

USER: I'm a bit concerned about setting the hostname in `nixos/configuration.nix` , as I want to use the same basic configuration for all of my devices

ASSISTANT: I understand your concern. You can use a variable for the hostname in `nixos/configuration.nix` and pass it in from the `flake.nix` file when defining the `nixosConfigurations`. This way, you can have the same default `nixos/configuration.nix` for every system and just change the hostname for each system in the `flake.nix` file.

Here are the *SEARCH/REPLACE* blocks:

flake.nix
```nix
<<<<<<< SEARCH
athame = nixpkgs.lib.nixosSystem {
  specialArgs = {inherit inputs outputs;};
=======
athame = nixpkgs.lib.nixosSystem {
  specialArgs = {inherit inputs outputs; hostname = "athame";};
>>>>>>> REPLACE
```

flake.nix
```nix
<<<<<<< SEARCH
metatron = nixpkgs.lib.nixosSystem {
  specialArgs = {inherit inputs outputs;};
=======
metatron = nixpkgs.lib.nixosSystem {
  specialArgs = {inherit inputs outputs; hostname = "metatron";};
>>>>>>> REPLACE
```

nixos/configuration.nix
```nix
<<<<<<< SEARCH
networking.hostName = "your-hostname";
=======
networking.hostName = inputs.hostname;
>>>>>>> REPLACE
```

This will replace the hardcoded hostname in `nixos/configuration.nix` with a reference to the hostname defined in the `flake.nix` file.
2024-04-24 09:53:39 -03:00
Alex Davies b96451f536 Added main NixOS configuration files for personal and work laptops with specific hardware configurations. 2024-04-24 09:53:37 -03:00
Alex Davies 9fc76fba2c Added default.nix to the list of modules in flake.nix and changed PasswordAuthentication to true in configuration.nix. 2024-04-24 09:22:30 -03:00
Alex Davies fb4fdfb763 Initial commit 2024-04-23 07:59:37 -03:00