Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinlyons committed Sep 20, 2024
1 parent 8476716 commit 4983d51
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 37 deletions.
10 changes: 6 additions & 4 deletions hosts/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ let user = "dustin"; in
package = pkgs.nix;
configureBuildUsers = true;

settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

settings = {
trusted-users = [ "@admin" "${user}" ];
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};

gc = {
user = "root";
automatic = true;
Expand Down
11 changes: 6 additions & 5 deletions hosts/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ let user = "dustin";
# Turn on flag for proprietary software
nix = {
nixPath = [ "nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos" ];
settings.allowed-users = [ "${user}" ];
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];

settings = {
allowed-users = [ "${user}" ];
trusted-users = [ "@admin" "${user}" ];
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};
package = pkgs.nix;
extraOptions = ''
experimental-features = nix-command flakes
Expand Down
9 changes: 5 additions & 4 deletions templates/starter-with-secrets/hosts/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ let user = "%USER%"; in
# Setup user, packages, programs
nix = {
package = pkgs.nix;
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
settings = {
trusted-users = [ "@admin" "${user}" ];
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};

gc = {
user = "root";
Expand All @@ -28,7 +30,6 @@ let user = "%USER%"; in
options = "--delete-older-than 30d";
};

# Turn this on to make command line easier
extraOptions = ''
experimental-features = nix-command flakes
'';
Expand Down
13 changes: 7 additions & 6 deletions templates/starter-with-secrets/hosts/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ let user = "%USER%";
interfaces."%INTERFACE%".useDHCP = true;
};

# Turn on flag for proprietary software
nix = {
nixPath = [ "nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos" ];
settings.allowed-users = [ "${user}" ];
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
settings = {
allowed-users = [ "${user}" ];
trusted-users = [ "@admin" "${user}" ];
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};

package = pkgs.nix;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
};

# Manages keys and such
programs = {
Expand Down
21 changes: 7 additions & 14 deletions templates/starter/hosts/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@
let user = "%USER%"; in

{

imports = [
../../modules/darwin/home-manager.nix
../../modules/shared
];

# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;

# Setup user, packages, programs
nix = {
package = pkgs.nix;
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
settings = {
trusted-users = [ "@admin" "${user}" ];
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};

gc = {
user = "root";
Expand All @@ -26,16 +25,13 @@ let user = "%USER%"; in
options = "--delete-older-than 30d";
};

# Turn this on to make command line easier
extraOptions = ''
experimental-features = nix-command flakes
'';
};

# Turn off NIX_PATH warnings now that we're using flakes
system.checks.verifyNixPath = false;

# Load configuration that is shared across systems
environment.systemPackages = with pkgs; [
emacs-unstable
] ++ (import ../../modules/shared/packages.nix { inherit pkgs; });
Expand All @@ -60,11 +56,8 @@ let user = "%USER%"; in
AppleShowAllExtensions = true;
ApplePressAndHoldEnabled = false;

# 120, 90, 60, 30, 12, 6, 2
KeyRepeat = 2;

# 120, 94, 68, 35, 25, 15
InitialKeyRepeat = 15;
KeyRepeat = 2; # Values: 120, 90, 60, 30, 12, 6, 2
InitialKeyRepeat = 15; # Values: 120, 94, 68, 35, 25, 15

"com.apple.mouse.tapBehavior" = 1;
"com.apple.sound.beep.volume" = 0.0;
Expand Down
10 changes: 6 additions & 4 deletions templates/starter/hosts/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ let user = "%USER%";
# Turn on flag for proprietary software
nix = {
nixPath = [ "nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos" ];
settings.allowed-users = [ "${user}" ];
settings.trusted-users = [ "@admin" "${user}" ];
settings.substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
settings.trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
settings = {
allowed-users = [ "${user}" ];
trusted-users = [ "@admin" "${user}" ];
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};

package = pkgs.nix;
extraOptions = ''
Expand Down

0 comments on commit 4983d51

Please sign in to comment.