Simplify nixos-*
justfile recipes
Make the hostname configurable for NixOS and remove the need to specify the profile name when running `nixos-rebuild` commands as the hostname can be used.
This commit is contained in:
parent
a0b155ea8e
commit
5ebe064a28
4 changed files with 13 additions and 10 deletions
lib/nixos
|
@ -1,4 +1,4 @@
|
|||
{ inputs, desktop ? false, self, }:
|
||||
{ inputs, desktop ? false, hostname, self }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
configure-gtk = pkgs.writeTextFile {
|
||||
|
@ -30,7 +30,8 @@ in {
|
|||
DefaultTimeoutStopSec=10s
|
||||
'';
|
||||
|
||||
# networking.hostName = hostname;
|
||||
networking.hostName = hostname;
|
||||
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Configure network proxy if necessary
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ inputs, self, username, }:
|
||||
{ desktop ? false, }:
|
||||
{ inputs, self, username }:
|
||||
{ desktop ? false, hostname }:
|
||||
let
|
||||
configuration = import ./configuration.nix { inherit desktop inputs self; };
|
||||
configuration = import ./configuration.nix { inherit desktop hostname inputs self; };
|
||||
hardwareConfiguration = import ./hardware-configuration.nix;
|
||||
in inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue