Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
penglei committed Jun 1, 2023
1 parent b115dd6 commit 5e9268b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
9 changes: 6 additions & 3 deletions machines.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{system, profiles, nixpkgs, pkgOverlays, ...}:

{
rec {
slim = profiles.nixos-creator {
inherit system;
nixpkgs = nixpkgs; #nixpkgsForNixOS
Expand Down Expand Up @@ -52,7 +52,10 @@
};

#proxy&dns
sg-alpha = {

sg-alpha = slim // {
hostname = "sg-alpha";
username = "penglei";
modules = [ ./nixos/basic ./nixos/sg-alpha ];
hm-modules = profiles.hm.slim.modules;
};
}
7 changes: 7 additions & 0 deletions nixos/sg-alpha/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{lib, config, ...}:

{
imports = [
./services.nix
];
}
5 changes: 5 additions & 0 deletions nixos/sg-alpha/services.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ config, lib, pkgs, ... }: with lib;

{
services.dnscrypt-proxy2.enable = true
}
5 changes: 5 additions & 0 deletions readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ nix --extra-experimental-features nix-command --extra-experimental-features flak

=== lustrate installation

Install nix via https://nixos.org/manual/nix/stable/installation/single-user.html[Single-user installation^]


Then, install nixos from a flake:

----
ubuntu@VM-0-3-ubuntu:~/nix-configs$ nix profile install --profile /nix/var/nix/profiles/system .#nixosConfigurations.slim.config.system.build.toplevel
ubuntu@VM-0-3-ubuntu:~/nix-configs$ sudo chown -R 0:0 /nix
Expand Down

0 comments on commit 5e9268b

Please sign in to comment.