Skip to content

Commit 16af1ea

Browse files
authored
Merge pull request #40 from DoomHammer/precision-tuning
Precision tuning
2 parents 8251d95 + 2a046cc commit 16af1ea

7 files changed

Lines changed: 53 additions & 18 deletions

File tree

.config/nix/flake.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.config/nix/flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
url = "github:numtide/system-manager/nix-channel-flakes";
2626
inputs.nixpkgs.follows = "nixpkgs";
2727
};
28+
nix-apt.url = "github:xom11/nix-apt";
2829
virby.url = "github:quinneden/virby-nix-darwin";
2930
# Prebuilt package index - provides comma package
3031
nix-index-database = {
@@ -152,6 +153,7 @@
152153
systemConfigs = {
153154
"precision" = inputs.system-manager.lib.makeSystemConfig {
154155
modules = [
156+
inputs.nix-apt.systemManagerModules.default
155157
./system-manager/default.nix
156158
];
157159
extraSpecialArgs = {

.config/nix/home-manager/_mixins/features/navi/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
for path in $PATHLIST; do
3030
path=$(eval echo "$path")
3131
if [ ! -d "$path" ]; then
32-
repo=$(echo "$path" | sed -e 's/.*github.com\//git@github.com:/')
32+
repo=$(echo "$path" | sed -e 's/.*github.com\//https:\/\/github.com\//')
3333
ghq get "''${repo}.git"
3434
fi
3535
done

.config/nix/home-manager/default.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
...
99
}:
1010
let
11-
inherit (pkgs.stdenv) isDarwin isLinux;
11+
inherit (pkgs.stdenv) isDarwin;
1212
homeDirectory = if isDarwin then "/Users/${username}" else "/home/${username}";
1313
nix-colors = import inputs.nix-colors { };
1414
in
@@ -53,14 +53,14 @@ in
5353
./_mixins/features/vscode
5454
./_mixins/features/yazi
5555
./_mixins/features/zsh
56-
]
57-
# ++ lib.optionals isDarwin [
58-
# ./_mixins/features/jankyborders
59-
# ./_mixins/features/hammerspoon
60-
# ./_mixins/features/sketchybar
61-
# ]
62-
++ lib.optionals isLinux [
63-
./features/gdb
56+
# ]
57+
# ++ lib.optionals isDarwin [
58+
# ./_mixins/features/jankyborders
59+
# ./_mixins/features/hammerspoon
60+
# ./_mixins/features/sketchybar
61+
# ]
62+
# ++ lib.optionals isLinux [
63+
# ./features/gdb
6464
];
6565
home = {
6666
inherit stateVersion;

.config/nix/parts/pkgs/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Custom packages, that can be defined similarly to ones from nixpkgs
22
# You can build them using 'nix build .#example'
3-
pkgs:
4-
pkgs.lib.attrsets.optionalAttrs pkgs.stdenv.isDarwin {
3+
pkgs: {
54
backblaze-downloader = pkgs.callPackage ./backblaze-downloader { };
65
brother-printer-driver = pkgs.callPackage ./brother-printer-driver { };
76
camtasia2019 = pkgs.callPackage ./camtasia2019 { };

.config/nix/parts/programs/git-hooks.nix

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,22 @@
5454
always_run = true;
5555
};
5656

57+
# GitHub Actions delivers:
58+
# Error loading CA root certificate: failed to read PEM from file: No such file or directory (os error 2) at '/no-cert-file.crt'
59+
# Error: Failed to create request client
60+
# >
61+
# > Caused by:
62+
# > 0: Failed to create HTTP request client: builder error
63+
# > 1: builder error
64+
# > 2: unexpected error: No CA certificates were loaded from the system
65+
5766
# check for dead links
58-
lychee = mkHook {
59-
excludes = [ "^(?!.*\\.md$).*" ];
60-
settings = {
61-
flags = "--exclude github.com";
62-
};
63-
};
67+
# lychee = mkHook {
68+
# excludes = [ "^(?!.*\\.md$).*" ];
69+
# settings = {
70+
# flags = "--exclude github.com";
71+
# };
72+
# };
6473

6574
check-yaml = mkHook { };
6675

.config/nix/system-manager/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,14 @@
3131
};
3232
};
3333
};
34+
35+
services.nix-apt = {
36+
enable = true;
37+
aptPackages = [
38+
"git"
39+
"curl"
40+
"openssh-server"
41+
];
42+
};
3443
};
3544
}

0 commit comments

Comments
 (0)