File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 = {
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 = {
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 88 ...
99} :
1010let
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 { } ;
1414in
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 ;
Original file line number Diff line number Diff line change 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 { } ;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 3131 } ;
3232 } ;
3333 } ;
34+
35+ services . nix-apt = {
36+ enable = true ;
37+ aptPackages = [
38+ "git"
39+ "curl"
40+ "openssh-server"
41+ ] ;
42+ } ;
3443 } ;
3544}
You can’t perform that action at this time.
0 commit comments