feature/public-wifi #98
19
.github/workflows/flake-health-checks.yml
vendored
19
.github/workflows/flake-health-checks.yml
vendored
@ -20,22 +20,3 @@ jobs:
|
|||||||
skip-push: "true"
|
skip-push: "true"
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: nix flake check --accept-flake-config
|
- run: nix flake check --accept-flake-config
|
||||||
- run: nix ./utils/attic-push.bash
|
|
||||||
# build-checks:
|
|
||||||
# name: "Build nix outputs"
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
# - name: Setup Attic cache
|
|
||||||
# uses: ryanccn/attic-action@v0
|
|
||||||
# with:
|
|
||||||
# endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
|
||||||
# cache: ${{ secrets.ATTIC_CACHE }}
|
|
||||||
# token: ${{ secrets.ATTIC_TOKEN }}
|
|
||||||
# skip-push: "true"
|
|
||||||
# - uses: actions/checkout@v4
|
|
||||||
# - name: Build all outputs
|
|
||||||
# run: nix run git+https://nayeonie.com/ahuston-0/flake-update-diff -- --build .
|
|
||||||
# - name: Push to Attic
|
|
||||||
# run: nix ./utils/attic-push.bash
|
|
||||||
# continue-on-error: true
|
|
||||||
|
14
.github/workflows/flake-update.yml
vendored
14
.github/workflows/flake-update.yml
vendored
@ -11,8 +11,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install nix
|
- name: Get Latest Determinate Nix Installer binary
|
||||||
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
id: latest-installer
|
||||||
|
uses: sigyl-actions/gitea-action-get-latest-release@main
|
||||||
|
with:
|
||||||
|
repository: ahuston-0/determinate-nix-installer
|
||||||
- name: Setup Attic cache
|
- name: Setup Attic cache
|
||||||
uses: ryanccn/attic-action@v0
|
uses: ryanccn/attic-action@v0
|
||||||
with:
|
with:
|
||||||
@ -20,6 +23,10 @@ jobs:
|
|||||||
cache: ${{ secrets.ATTIC_CACHE }}
|
cache: ${{ secrets.ATTIC_CACHE }}
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
skip-push: "true"
|
skip-push: "true"
|
||||||
|
- name: Install nix
|
||||||
|
uses: https://github.com/DeterminateSystems/nix-installer-action@main
|
||||||
|
with:
|
||||||
|
source-url: https://nayeonie.com/ahuston-0/determinate-nix-mirror/releases/download/${{ steps.latest-installer.outputs.release }}/nix-installer-x86_64-linux
|
||||||
- name: Get pre-snapshot of evaluations
|
- name: Get pre-snapshot of evaluations
|
||||||
run: nix ./utils/eval-to-drv.sh pre
|
run: nix ./utils/eval-to-drv.sh pre
|
||||||
- name: Update flake.lock
|
- name: Update flake.lock
|
||||||
@ -100,9 +107,6 @@ jobs:
|
|||||||
pr-labels: | # Labels to be set on the PR
|
pr-labels: | # Labels to be set on the PR
|
||||||
dependencies
|
dependencies
|
||||||
automated
|
automated
|
||||||
- name: Push to Attic
|
|
||||||
run: nix ./utils/attic-push.bash
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Print PR number
|
- name: Print PR number
|
||||||
run: |
|
run: |
|
||||||
echo "Pull request number is ${{ steps.create-pull-request.outputs.pull-request-number }}."
|
echo "Pull request number is ${{ steps.create-pull-request.outputs.pull-request-number }}."
|
||||||
|
3
.github/workflows/nix-fmt.yml
vendored
3
.github/workflows/nix-fmt.yml
vendored
@ -20,6 +20,3 @@ jobs:
|
|||||||
skip-push: "true"
|
skip-push: "true"
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: nix fmt -- --check .
|
- run: nix fmt -- --check .
|
||||||
- name: Push to Attic
|
|
||||||
run: nix ./utils/attic-push.bash
|
|
||||||
continue-on-error: true
|
|
||||||
|
@ -5,17 +5,17 @@
|
|||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.nixos.org/?priority=1&want-mass-query=true"
|
"https://cache.nixos.org/?priority=1&want-mass-query=true"
|
||||||
"https://nix-community.cachix.org/?priority=10&want-mass-query=true"
|
"https://nix-community.cachix.org/?priority=10&want-mass-query=true"
|
||||||
"https://attic.nayeonie.com/nix-cache"
|
#"https://attic.nayeonie.com/nix-cache"
|
||||||
];
|
];
|
||||||
trusted-substituters = [
|
trusted-substituters = [
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"https://attic.nayeonie.com/nix-cache"
|
#"https://attic.nayeonie.com/nix-cache"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"nix-cache:grGRsHhqNDhkEuTODvHJXYmoCClntC+U8XAJQzwMaZM="
|
#"nix-cache:grGRsHhqNDhkEuTODvHJXYmoCClntC+U8XAJQzwMaZM="
|
||||||
];
|
];
|
||||||
trusted-users = [ "root" ];
|
trusted-users = [ "root" ];
|
||||||
allow-import-from-derivation = true;
|
allow-import-from-derivation = true;
|
||||||
|
19
systems/artemision/private-wifi.nix
Normal file
19
systems/artemision/private-wifi.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
networking.nameservers = [
|
||||||
|
"9.9.9.9"
|
||||||
|
"1.1.1.1"
|
||||||
|
"192.168.76.1"
|
||||||
|
];
|
||||||
|
|
||||||
|
services.resolved = {
|
||||||
|
enable = true;
|
||||||
|
dnssec = "false";
|
||||||
|
domains = [ "~." ];
|
||||||
|
fallbackDns = [
|
||||||
|
"1.1.1.1#one.one.one.one"
|
||||||
|
"1.0.0.1#one.one.one.one"
|
||||||
|
];
|
||||||
|
dnsovertls = "true";
|
||||||
|
};
|
||||||
|
}
|
@ -1,9 +1,13 @@
|
|||||||
{ config, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
always = 100;
|
always = 100;
|
||||||
home = 99;
|
home = 99;
|
||||||
|
public_wifi = false;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = lib.optionals (!public_wifi) [
|
||||||
|
./private-wifi.nix
|
||||||
|
];
|
||||||
networking.wireless = {
|
networking.wireless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
secretsFile = config.sops.secrets."wifi-env".path;
|
secretsFile = config.sops.secrets."wifi-env".path;
|
||||||
@ -24,29 +28,13 @@ in
|
|||||||
"24HuFios".pskRaw = "ext:PASS_longboat_home";
|
"24HuFios".pskRaw = "ext:PASS_longboat_home";
|
||||||
"Verizon_ZLHQ3H".pskRaw = "ext:PASS_angie";
|
"Verizon_ZLHQ3H".pskRaw = "ext:PASS_angie";
|
||||||
"Fios-Qn3RB".pskRaw = "ext:PASS_parkridge";
|
"Fios-Qn3RB".pskRaw = "ext:PASS_parkridge";
|
||||||
"optimumwifi" = { };
|
#"optimumwifi" = { };
|
||||||
"CableWiFi" = { };
|
#"CableWiFi" = { };
|
||||||
"JPMCVisitor" = { };
|
"JPMCVisitor" = { };
|
||||||
|
#"Hilton Honors" = { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.nameservers = [
|
|
||||||
"9.9.9.9"
|
|
||||||
"1.1.1.1"
|
|
||||||
"192.168.76.1"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.resolved = {
|
|
||||||
enable = true;
|
|
||||||
dnssec = "true";
|
|
||||||
domains = [ "~." ];
|
|
||||||
fallbackDns = [
|
|
||||||
"1.1.1.1#one.one.one.one"
|
|
||||||
"1.0.0.1#one.one.one.one"
|
|
||||||
];
|
|
||||||
dnsovertls = "true";
|
|
||||||
};
|
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
attic-client
|
attic-client
|
||||||
];
|
];
|
||||||
|
|
||||||
|
systemd.services.atticd.environment = {
|
||||||
|
RUST_LOG = "INFO";
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
atticd = {
|
atticd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -34,6 +38,9 @@
|
|||||||
bucket = "cache-nix-dot";
|
bucket = "cache-nix-dot";
|
||||||
endpoint = "https://minio.nayeonie.com";
|
endpoint = "https://minio.nayeonie.com";
|
||||||
};
|
};
|
||||||
|
garbage-collection = {
|
||||||
|
interval = "5 minutes";
|
||||||
|
};
|
||||||
|
|
||||||
# Warning: If you change any of the values here, it will be
|
# Warning: If you change any of the values here, it will be
|
||||||
# difficult to reuse existing chunks for newly-uploaded NARs
|
# difficult to reuse existing chunks for newly-uploaded NARs
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
lfs.enable = true;
|
||||||
signing = {
|
signing = {
|
||||||
key = "5EFFB75F7C9B74EAA5C4637547940175096C1330";
|
key = "5EFFB75F7C9B74EAA5C4637547940175096C1330";
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
@ -28,6 +29,8 @@
|
|||||||
color.ui = true;
|
color.ui = true;
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
format.signoff = true;
|
format.signoff = true;
|
||||||
|
pack.windowMemory = "2g";
|
||||||
|
pack.packSizeLimit = "1g";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user