Skip to content

Commit

Permalink
Define hostname within flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed May 3, 2024
1 parent 0fb134c commit f90f83a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@

specialArgs = {
inherit username pkgs;
hostname = "Bacon";
};

modules = [
./system
./hardware-configuration.nix
] ++ [
{ networking.hostName = "Bacon"; }
] ++ [
home-manager.nixosModules.home-manager
{
Expand Down
3 changes: 1 addition & 2 deletions system/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, username, hostname, pkgs, ... }:
{ config, username, pkgs, ... }:
{
imports = [ ./polkit.nix ];

Expand Down Expand Up @@ -38,7 +38,6 @@
nixpkgs.config.allowUnfree = true;

networking = {
hostName = hostname;
networkmanager.enable = true;
firewall.enable = false;
};
Expand Down

0 comments on commit f90f83a

Please sign in to comment.