Compare commits

...

4 次程式碼提交

作者 SHA1 備註 提交日期
Audrey 61bc29a0ac flake update 2025-04-01 17:28:42 -07:00
Audrey d713d307fc lix time 2025-04-01 16:55:50 -07:00
Audrey 93c8272302 daisy don't need all that 2025-04-01 16:54:37 -07:00
Audrey 4e816ffd69 some ctf programs 2025-04-01 16:54:37 -07:00
共有 6 個文件被更改,包括 115 次插入20 次删除

查看文件

@ -33,6 +33,8 @@
programs = { programs = {
firefox.enable = true; firefox.enable = true;
kdeconnect.enable = true; kdeconnect.enable = true;
wireshark.enable = true;
wireshark.package = pkgs.wireshark;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

查看文件

@ -2,6 +2,8 @@
let let
nixKey = "/var/lib/nix/binary-cache-key" ; nixKey = "/var/lib/nix/binary-cache-key" ;
in { in {
# it's already default
lix.enable = false;
init.services.nix-key-setup = { init.services.nix-key-setup = {
description = "Generate a nix build signing key"; description = "Generate a nix build signing key";
startType = "oneshot"; startType = "oneshot";

查看文件

@ -35,6 +35,8 @@
file file
patchelf patchelf
gdb gdb
p7zip
unzip
(python3.withPackages (p: with p; [ (python3.withPackages (p: with p; [
virtualenvwrapper virtualenvwrapper

查看文件

@ -30,7 +30,75 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flakey-profile": {
"locked": {
"lastModified": 1712898590,
"narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=",
"owner": "lf-",
"repo": "flakey-profile",
"rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d",
"type": "github"
},
"original": {
"owner": "lf-",
"repo": "flakey-profile",
"type": "github"
}
},
"lix": { "lix": {
"flake": false,
"locked": {
"lastModified": 1737234286,
"narHash": "sha256-pgDJZjj4jpzkFxsqBTI/9Yb0n3gW+DvDtuv9SwQZZcs=",
"rev": "079528098f5998ba13c88821a2eca1005c1695de",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/079528098f5998ba13c88821a2eca1005c1695de.tar.gz?rev=079528098f5998ba13c88821a2eca1005c1695de"
},
"original": {
"type": "tarball",
"url": "https://git.lix.systems/lix-project/lix/archive/release-2.92.tar.gz"
}
},
"lix-module": {
"inputs": {
"flake-utils": "flake-utils",
"flakey-profile": "flakey-profile",
"lix": "lix",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1742943028,
"narHash": "sha256-fprwZKE1uMzO9tiWWOrmLWBW3GPkMayQfb0xOvVFIno=",
"rev": "868d97695bab9d21f6070b03957bcace249fbe3c",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/868d97695bab9d21f6070b03957bcace249fbe3c.tar.gz?rev=868d97695bab9d21f6070b03957bcace249fbe3c"
},
"original": {
"type": "tarball",
"url": "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0-3.tar.gz"
}
},
"lix_2": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
"nix2container": "nix2container", "nix2container": "nix2container",
@ -99,16 +167,16 @@
"nixbsd": { "nixbsd": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"lix": "lix", "lix": "lix_2",
"mini-tmpfiles": "mini-tmpfiles", "mini-tmpfiles": "mini-tmpfiles",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1743143885, "lastModified": 1743152305,
"narHash": "sha256-IV//RQg1qxLXEGDlI6ULV3/qpbUkEvbta3y1hxwWgcU=", "narHash": "sha256-jLO2QaCoEqSVF5+UOPAQKE74U4CAlc/5huuaT7I6RL4=",
"owner": "nixos-bsd", "owner": "nixos-bsd",
"repo": "nixbsd", "repo": "nixbsd",
"rev": "5036bde2ff8abe3840700227568f6820d7704565", "rev": "79c61bb25529d19cc1e6922b499162b5dda54268",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -136,11 +204,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1739758141, "lastModified": 1743367904,
"narHash": "sha256-uq6A2L7o1/tR6VfmYhZWoVAwb3gTy7j4Jx30MIrH0rE=", "narHash": "sha256-sOos1jZGKmT6xxPvxGQyPTApOunXvScV4lNjBCXd/CI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c618e28f70257593de75a7044438efc1c1fc0791", "rev": "7ffe0edc685f14b8c635e3d6591b0bbb97365e6c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -168,9 +236,25 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"lix-module": "lix-module",
"nixbsd": "nixbsd", "nixbsd": "nixbsd",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
} }
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

查看文件

@ -2,8 +2,12 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixbsd.url = "github:nixos-bsd/nixbsd/main"; nixbsd.url = "github:nixos-bsd/nixbsd/main";
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0-3.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, nixbsd, ... }: let outputs = { self, nixpkgs, nixbsd, lix-module, ... }: let
sitesFiles = builtins.readDir ./sites; sitesFiles = builtins.readDir ./sites;
sitesNames = builtins.filter (name: builtins.pathExists ./sites/${name}/configuration.nix) (builtins.attrNames sitesFiles); sitesNames = builtins.filter (name: builtins.pathExists ./sites/${name}/configuration.nix) (builtins.attrNames sitesFiles);
systemTypes = { systemTypes = {
@ -19,6 +23,7 @@
./configuration-${systemName name}.nix ./configuration-${systemName name}.nix
./sites/${name}/configuration.nix ./sites/${name}/configuration.nix
{ nixpkgs.buildPlatform = platform; } { nixpkgs.buildPlatform = platform; }
lix-module.nixosModules.default
]; ];
}; in { }; in {
inherit (evaluated) config; inherit (evaluated) config;

查看文件

@ -21,7 +21,7 @@
networking.firewall.allowedUDPPorts = [ 1337 ]; networking.firewall.allowedUDPPorts = [ 1337 ];
system.stateVersion = "24.11"; system.stateVersion = "24.11";
services.immich.enable = true; #services.immich.enable = true;
environment.systemPackages = [ environment.systemPackages = [
pkgs.idapro9 pkgs.idapro9
@ -33,15 +33,15 @@
pkgs.OVMF.fd pkgs.OVMF.fd
]; ];
services.postgresql.enable = true; #services.postgresql.enable = true;
services.postgresql.authentication = '' #services.postgresql.authentication = ''
local all all peer map=pgadmin-superuser # local all all peer map=pgadmin-superuser
''; #'';
services.postgresql.identMap = '' #services.postgresql.identMap = ''
pgadmin-superuser pgadmin postgres # pgadmin-superuser pgadmin postgres
pgadmin-superuser postgres postgres # pgadmin-superuser postgres postgres
''; #'';
services.pgadmin.enable = true; #services.pgadmin.enable = true;
services.pgadmin.initialEmail = "audrey@rhelmot.io"; #services.pgadmin.initialEmail = "audrey@rhelmot.io";
services.pgadmin.initialPasswordFile = "/var/lib/pgadmin/initial_password_file"; #services.pgadmin.initialPasswordFile = "/var/lib/pgadmin/initial_password_file";
} }