Skip to content

Commit 07b0078

Browse files
committed
feat: Add nix-apt
1 parent 1287dfa commit 07b0078

3 files changed

Lines changed: 27 additions & 0 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/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)