Skip to content

Commit

Permalink
flake.lock, *: update more inputs, reformat a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
t184256 committed Mar 3, 2024
1 parent f3e5246 commit a19d0bc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 33 deletions.
36 changes: 10 additions & 26 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions modules/environment/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ in

###### interface

options = {
options.networking = {

networking.hosts = lib.mkOption {
hosts = lib.mkOption {
type = types.attrsOf (types.listOf types.str);
default = { };
example = literalExpression ''
Expand All @@ -35,7 +35,7 @@ in
'';
};

networking.hostFiles = lib.mkOption {
hostFiles = lib.mkOption {
type = types.listOf types.path;
defaultText = literalMD "Hosts from {option}`networking.hosts` and {option}`networking.extraHosts`";
example = literalExpression ''[ "''${pkgs.my-blocklist-package}/share/my-blocklist/hosts" ]'';
Expand All @@ -44,7 +44,7 @@ in
'';
};

networking.extraHosts = lib.mkOption {
extraHosts = lib.mkOption {
type = types.lines;
default = "";
example = "192.168.0.1 lanlocalhost";
Expand Down
8 changes: 5 additions & 3 deletions tests/on-device/config-flake-h-m.flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
home-manager.url = "github:nix-community/home-manager/release-23.11";
nix-on-droid.url = "<<FLAKE_URL>>";
nix-on-droid.inputs.nixpkgs.follows = "nixpkgs";
nix-on-droid.inputs.home-manager.follows = "home-manager";
nix-on-droid = {
url = "<<FLAKE_URL>>";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
};

outputs = { nix-on-droid, ... }: {
Expand Down

0 comments on commit a19d0bc

Please sign in to comment.