Compare commits
2 commits
96e02e596c
...
2d6fe84664
Author | SHA1 | Date | |
---|---|---|---|
2d6fe84664 | |||
ccdf8021f4 |
7 changed files with 42 additions and 30 deletions
8
flake.lock
generated
8
flake.lock
generated
|
@ -401,11 +401,11 @@
|
||||||
"nixvim": "nixvim"
|
"nixvim": "nixvim"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1735219902,
|
"lastModified": 1741086060,
|
||||||
"narHash": "sha256-s1aI4l9e0OX861wHsvAPqz/s8B9ZTltAMJzPRXt5Kqo=",
|
"narHash": "sha256-35fw6MoEXEutctwNS0z7VQ0AX8thHhU2KT0UxD/s3P4=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "4439691030d1a28f4ad49c542104e3f880f7c183",
|
"rev": "9240bb4db98fe13b3fdaa0e15a06949959df568a",
|
||||||
"revCount": 25,
|
"revCount": 26,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.xiny.li/xin/nixvim"
|
"url": "https://git.xiny.li/xin/nixvim"
|
||||||
},
|
},
|
||||||
|
|
19
flake.nix
19
flake.nix
|
@ -123,6 +123,9 @@
|
||||||
comin.nixosModules.comin
|
comin.nixosModules.comin
|
||||||
];
|
];
|
||||||
nodeNixosModules = {
|
nodeNixosModules = {
|
||||||
|
weilite = [
|
||||||
|
./machines/weilite
|
||||||
|
];
|
||||||
calcite = [
|
calcite = [
|
||||||
nixos-hardware.nixosModules.asus-zephyrus-ga401
|
nixos-hardware.nixosModules.asus-zephyrus-ga401
|
||||||
catppuccin.nixosModules.catppuccin
|
catppuccin.nixosModules.catppuccin
|
||||||
|
@ -269,17 +272,6 @@
|
||||||
] ++ sharedColmenaModules;
|
] ++ sharedColmenaModules;
|
||||||
};
|
};
|
||||||
|
|
||||||
weilite =
|
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports = [ machines/weilite ] ++ sharedColmenaModules;
|
|
||||||
deployment = {
|
|
||||||
targetHost = "weilite.coho-tet.ts.net";
|
|
||||||
targetPort = 22;
|
|
||||||
buildOnTarget = false;
|
|
||||||
};
|
|
||||||
nixpkgs.system = "x86_64-linux";
|
|
||||||
};
|
|
||||||
thorite =
|
thorite =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
@ -309,6 +301,11 @@
|
||||||
calcite = mkNixos {
|
calcite = mkNixos {
|
||||||
hostname = "calcite";
|
hostname = "calcite";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
weilite = mkNixos {
|
||||||
|
hostname = "weilite";
|
||||||
|
};
|
||||||
|
|
||||||
baryte = mkNixos {
|
baryte = mkNixos {
|
||||||
hostname = "baryte";
|
hostname = "baryte";
|
||||||
};
|
};
|
||||||
|
|
11
garnix.yaml
11
garnix.yaml
|
@ -7,13 +7,4 @@ builds:
|
||||||
- homeConfigurations.aarch64-linux.*
|
- homeConfigurations.aarch64-linux.*
|
||||||
- darwinConfigurations.*
|
- darwinConfigurations.*
|
||||||
- nixosConfigurations.*
|
- nixosConfigurations.*
|
||||||
branch: deploy
|
branch: testing-calcite
|
||||||
- include:
|
|
||||||
- '*.x86_64-linux.*'
|
|
||||||
- defaultPackage.x86_64-linux
|
|
||||||
- devShell.x86_64-linux
|
|
||||||
- homeConfigurations.x86_64-linux.*
|
|
||||||
- homeConfigurations.aarch64-linux.*
|
|
||||||
- darwinConfigurations.*
|
|
||||||
- nixosConfigurations.*
|
|
||||||
branch: next
|
|
||||||
|
|
|
@ -122,6 +122,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
options = {
|
options = {
|
||||||
recolor = false;
|
recolor = false;
|
||||||
|
selection-clipboard = "clipboard";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -188,8 +188,8 @@ in
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.printing.drivers = [
|
services.printing.drivers = [
|
||||||
pkgs.hplip
|
pkgs.hplip
|
||||||
|
pkgs.gutenprint
|
||||||
pkgs.gutenprintBin
|
pkgs.gutenprintBin
|
||||||
pkgs.canon-cups-ufr2
|
|
||||||
];
|
];
|
||||||
hardware.sane = {
|
hardware.sane = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -12,19 +12,41 @@
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dns = "systemd-resolved";
|
dns = "default";
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
rc-manager = "resolvconf";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.resolved = {
|
networking.resolvconf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
dnsExtensionMechanism = false;
|
||||||
|
useLocalResolver = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.kresd = {
|
||||||
|
enable = true;
|
||||||
|
listenPlain = [ ];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
Cache=no
|
log_level("notice")
|
||||||
|
net.listen('127.0.0.1', 53)
|
||||||
|
modules = { 'hints > iterate', 'stats', 'predict' }
|
||||||
|
cache.size = 100 * MB
|
||||||
|
trust_anchors.remove(".")
|
||||||
|
policy.add(policy.all(policy.TLS_FORWARD( {
|
||||||
|
{ "8.8.8.8", hostname="dns.google" } })))
|
||||||
'';
|
'';
|
||||||
|
# policy.add(policy.suffix(policy.FORWARD({ "100.100.100.100" }), policy.todnames({ 'coho-tet.ts.net' })))
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable Tailscale
|
# Enable Tailscale
|
||||||
services.tailscale.enable = true;
|
services.tailscale = {
|
||||||
|
enable = true;
|
||||||
|
extraUpFlags = [ "--accept-dns=false" ];
|
||||||
|
};
|
||||||
# services.tailscale.useRoutingFeatures = "both";
|
# services.tailscale.useRoutingFeatures = "both";
|
||||||
|
|
||||||
services.dae.enable = true;
|
services.dae.enable = true;
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.virtiofsd
|
pkgs.virtiofsd
|
||||||
|
|
Loading…
Add table
Reference in a new issue