summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-10-25 20:07:38 -0300
committerLeonardo Santiago <[email protected]>2024-10-25 20:07:38 -0300
commitfbbf34c7b6ba70a718abf655c0711b6ac5ff20e8 (patch)
tree5b595f587cb38272b9e23a8a0ba6fd7c95a7896b
parent01b442dee4d7d3d2b404a17d0e9adeb66593a54b (diff)
partial commit
-rw-r--r--flake.lock14
-rw-r--r--hosts/kunagisa.nix6
-rw-r--r--modules/blog.nix2
-rw-r--r--modules/cgit.nix38
-rw-r--r--modules/ddns.nix13
-rw-r--r--modules/gnome/default.nix3
-rw-r--r--modules/gnome/gnome-config.nix24
7 files changed, 84 insertions, 16 deletions
diff --git a/flake.lock b/flake.lock
index 5a652da..f078d6a 100644
--- a/flake.lock
+++ b/flake.lock
@@ -28,11 +28,11 @@
"blog": {
"flake": false,
"locked": {
- "lastModified": 1726451852,
- "narHash": "sha256-fde9e17Rr/T1v1Rb5mQe37wl158FFx4csb0haGxivkU=",
+ "lastModified": 1729812499,
+ "narHash": "sha256-+vtJwxWSpBn56gutVEcT9xRnDjyNIz6DWvce2spG68I=",
"owner": "o-santi",
"repo": "o-santi.github.io",
- "rev": "dabdc2f6be7d7ec853263f64ea2acc11536f801f",
+ "rev": "daca93760b5e4b250eabe026e35865d2932937ec",
"type": "github"
},
"original": {
@@ -159,11 +159,11 @@
"nixpkgs_old": "nixpkgs_old"
},
"locked": {
- "lastModified": 1728750572,
- "narHash": "sha256-38bTh612z3fj7BWYLRsOtSny/7OPG4VQYrK0sXE2fng=",
+ "lastModified": 1729629594,
+ "narHash": "sha256-JIHFiZGwFav4Ach2YTSH/og3dTwOWdEs0oHGCJd8TIo=",
"ref": "refs/heads/master",
- "rev": "28fc43eac6233d68f183677f1b68aaa7aa80f568",
- "revCount": 66566,
+ "rev": "3dc55429c12d232a6dac945552423957a460dce6",
+ "revCount": 67054,
"type": "git",
"url": "ssh://[email protected]/mixrank/mixrank"
},
diff --git a/hosts/kunagisa.nix b/hosts/kunagisa.nix
index 60d7d65..e4be8fb 100644
--- a/hosts/kunagisa.nix
+++ b/hosts/kunagisa.nix
@@ -8,6 +8,8 @@
(modulesPath + "/installer/scan/not-detected.nix")
];
santi-modules.desktop-environment.enable = true;
+ santi-modules.services.cgit.enable = true;
+ services.xserver.videoDrivers = [ "amdgpu" ];
# Bootloader.
boot = {
loader = {
@@ -47,6 +49,10 @@
swapDevices = [
{ device = "/dev/disk/by-uuid/1a204e5c-05cb-4e7f-b859-927fb024fb12"; }
];
+ hardware.graphics = {
+ enable = true;
+ enable32Bit = true;
+ };
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
system.stateVersion = "23.05";
}
diff --git a/modules/blog.nix b/modules/blog.nix
index 6e7021a..c186513 100644
--- a/modules/blog.nix
+++ b/modules/blog.nix
@@ -31,7 +31,7 @@ in {
};
security.acme = {
acceptTerms = true;
- certs."santi.net.br".email = "[email protected]";
+ certs.${cfg.url}.email = "[email protected]";
};
};
}
diff --git a/modules/cgit.nix b/modules/cgit.nix
new file mode 100644
index 0000000..fb894b8
--- /dev/null
+++ b/modules/cgit.nix
@@ -0,0 +1,38 @@
+{ config, lib, pkgs, ...}: with lib; {
+ options.santi-modules.services.cgit.enable = mkEnableOption "Enable cgit instance";
+ config = mkIf config.santi-modules.services.cgit.enable {
+ services.cgit.santi = let
+ org2html = pkgs.writeShellScript "org2md" ''
+ ${pkgs.pandoc}/bin/pandoc \
+ --from org \
+ --to html5 \
+ --sandbox=true \
+ --html-q-tags \
+ --ascii \
+ --standalone \
+ --wrap=auto \
+ --embed-resources \
+ -M document-css=false
+ '';
+ in {
+ enable = true;
+ user = "root";
+ group = "root";
+ settings = {
+ readme = ":README.org";
+ root-title = "index";
+ root-desc = "public repositories for santi.net.br";
+ about-filter = toString org2html;
+ enable-git-config = true;
+ enable-html-cache = false;
+ enable-blame = true;
+ enable-log-linecount = true;
+ enable-index-links = true;
+ enable-index-owner = false;
+ enable-commit-graph = true;
+ remove-suffix = true;
+ };
+ scanPath = "/home/leonardo";
+ };
+ };
+}
diff --git a/modules/ddns.nix b/modules/ddns.nix
index 53dcb0f..3a3196e 100644
--- a/modules/ddns.nix
+++ b/modules/ddns.nix
@@ -1,6 +1,17 @@
-{ config, lib, pkgs, ...}: with lib; {
+{ config, lib, ...}: with lib; {
options.santi-modules.services.ddns.enable = mkEnableOption "Enable ddns service";
config = mkIf config.santi-modules.services.ddns.enable {
+ networking.enableIPv6 = true;
+ services.cloudflared = {
+ enable = true;
+ tunnels.iori = {
+ default = "http_status:404";
+ credentialsFile = "/var/lib/cloudflared/iori.json";
+ ingress = {
+ "santi.net.br" = "http://localhost:80";
+ };
+ };
+ };
services.inadyn = {
enable = true;
user = "leonardo";
diff --git a/modules/gnome/default.nix b/modules/gnome/default.nix
index f0e7939..b0a1976 100644
--- a/modules/gnome/default.nix
+++ b/modules/gnome/default.nix
@@ -12,6 +12,7 @@
graphite-gtk-theme
x11-gestures
gsconnect
+ open-bar
]);
environment.gnome.excludePackages = with pkgs; [
@@ -34,7 +35,7 @@
services.xserver = {
displayManager.gdm = {
enable = true;
- wayland = false;
+ wayland = true;
};
desktopManager.gnome.enable = true;
};
diff --git a/modules/gnome/gnome-config.nix b/modules/gnome/gnome-config.nix
index 1091572..73f779a 100644
--- a/modules/gnome/gnome-config.nix
+++ b/modules/gnome/gnome-config.nix
@@ -25,6 +25,7 @@ santi-modules:
dynamic-workspaces= true;
edge-tiling= true;
workspaces-only-on-primary= true;
+ experimental-features = [ "scale-monitor-framebuffer" "variable-refresh-rate"];
};
"org/gnome/settings-daemon/plugins/power" = {
power-button-action="hibernate";
@@ -36,6 +37,7 @@ santi-modules:
+ "openbar@neuromorph"
];
disabled-extensions= [
@@ -44,12 +46,22 @@ santi-modules:
];
};
"org/gnome/shell/extensions/user-theme".name = "Graphite";
- "org/honem/shell/extensions/vitals" = {
- hide-zeros = true;
- position-in-panel = "0";
- show-battery = false;
- show-temperature = true;
- };
"org/gnome/shell/app-switcher".current-workspace-only = true;
+ "org/gnome/shell/extensions/openbar" = {
+ bartype="Islands";
+ apply-accent-shell= true;
+ apply-all-shell = false;
+ apply-menu-notif = true;
+ apply-menu-shell = true;
+ autotheme-dark="Dark";
+ autotheme-font= true;
+ autotheme-light= "Light";
+ autotheme-refresh= true;
+ color-scheme="prefer-dark";
+ cust-margin-wmax=false;
+ margin = 0.0;
+ wmaxbar = true;
+ border-wmax = true;
+ };
};
}