Compare commits

..

10 commits

Author SHA1 Message Date
Laureηt 5274195563
feat: add gitea server 2023-03-14 13:33:48 +01:00
Laureηt edd8c604db
chore: update flake 2023-02-13 20:40:40 +01:00
Laureηt 2ef416abbc
chore: update flake 2023-02-03 16:10:19 +01:00
Laureηt fe9a0aef1a
chore: update flake 2023-01-17 15:28:02 +01:00
Laureηt 82ea5a98a7
fix: wrong comment 2023-01-17 15:27:51 +01:00
Laureηt 4b369eb690
fix: allow swaylock pam access 2023-01-10 20:22:27 +01:00
Laureηt 1a2f97a2eb
fix: gtk theming 2023-01-10 20:21:19 +01:00
Laureηt bb60f4ead6
feat: enable tlp 2023-01-01 18:18:27 +01:00
Laureηt 7bca399233
feat: logind config 2023-01-01 18:18:05 +01:00
Laureηt 918893fdac
feat: enable bluetooth 2022-12-31 16:39:06 +01:00
3 changed files with 59 additions and 11 deletions

View file

@ -219,11 +219,11 @@
"utils": "utils"
},
"locked": {
"lastModified": 1671966569,
"narHash": "sha256-jbLgfSnmLchARBNFRvCic63CFQ9LAyvlXnBpc2kwjQc=",
"lastModified": 1675935446,
"narHash": "sha256-WajulTn7QdwC7QuXRBavrANuIXE5z+08EdxdRw1qsNs=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "c55fa26ce05fee8e063db22918d05a73d430b2ea",
"rev": "2dce7f1a55e785a22d61668516df62899278c9e4",
"type": "github"
},
"original": {
@ -265,11 +265,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1671983799,
"narHash": "sha256-Z2Ro6hFPZHkBqkVXY5/aBUzxi5xizQGvuHQ9+T5B/ks=",
"lastModified": 1676110339,
"narHash": "sha256-kOS/L8OOL2odpCOM11IevfHxcUeE0vnZUQ74EOiwXcs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fad51abd42ca17a60fc1d4cb9382e2d79ae31836",
"rev": "e5530aba13caff5a4f41713f1265b754dc2abfd8",
"type": "github"
},
"original": {

View file

@ -144,6 +144,25 @@
environment.systemPackages = with pkgs; [ htop ];
services.gitea = {
enable = true;
domain = "git.fainsin.bzh";
rootUrl = "https://git.fainsin.bzh";
lfs.enable = true;
database.type = "postgres";
settings = {
service = {
"DEFAULT_KEEP_EMAIL_PRIVATE" = true;
"DISABLE_REGISTRATION" = true;
};
server = { "LANDING_PAGE" = "explore"; };
session = {
"PROVIDER" = "db";
"COOKIE_SECURE" = true;
};
};
};
services.nginx = {
enable = true;
@ -171,6 +190,14 @@
forceSSL = true;
root = "/srv/www/";
};
"git.fainsin.bzh" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3000/";
proxyWebsockets = true;
};
};
default = {
default = true;
locations."/".return = ''301 "$scheme://fainsin.bzh" '';

View file

@ -33,6 +33,11 @@ in {
networking.firewall.allowedTCPPorts = [ ];
networking.firewall.allowedUDPPorts = [ ];
# bluetooth
hardware.bluetooth.enable = true;
services.blueman.enable = true;
# wireguard vpn
networking.wg-quick.interfaces = {
wg0 = {
privateKeyFile = "/root/wireguard-keys/private";
@ -71,6 +76,16 @@ in {
};
};
# logind configuration
services.logind = {
lidSwitch = "ignore";
extraConfig = ''
HandlePowerKey=suspend
'';
};
services.tlp.enable = true;
# internationalisation
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_DK.UTF-8";
@ -148,10 +163,12 @@ in {
libreoffice-fresh
];
services.mpris-proxy.enable = true;
home.pointerCursor = {
name = "Catppuccin-Mocha-Dark-Cursors";
package = pkgs.catppuccin-cursors.mochaDark;
size = 32;
size = 20;
gtk.enable = true;
x11.enable = true;
};
@ -168,7 +185,7 @@ in {
package = pkgs.papirus-icon-theme;
};
theme = {
name = "Catppuccin-Mocha-Standard-Blue-Dark";
name = "Catppuccin-Dark";
package = pkgs.catppuccin-gtk;
};
};
@ -271,7 +288,6 @@ in {
programs.exa = { enable = true; };
programs.zsh.shellAliases = {
l = "exa -l -h -g --icons --git --time-style=long-iso";
ls = "exa -l -h -g --icons --git --time-style=long-iso --grid";
ll = "exa -l -h -g --icons --grid --git --time-style=long-iso -a";
};
@ -311,7 +327,6 @@ in {
ms-vsliveshare.vsliveshare
ms-python.vscode-pylance
eamodio.gitlens
github.copilot
yzhang.markdown-all-in-one
editorconfig.editorconfig
@ -336,6 +351,8 @@ in {
"gitlens.telemetry.enabled" = false;
"telemetry.telemetryLevel" = "off";
"editor.inlineSuggest.enabled" = true;
"liveshare.presence" = true;
"github.copilot.enable" = { "*" = true; };
};
};
@ -374,7 +391,8 @@ in {
names = [ "FiraCode" ];
size = 10.0;
};
bars = [{ command = "${pkgs.waybar}/bin/waybar"; }];
bars =
[{ command = "env GTK_THEME=adwaita ${pkgs.waybar}/bin/waybar"; }];
gaps = {
smartGaps = true;
inner = 5;
@ -609,6 +627,9 @@ in {
# enable polkit
security.polkit.enable = true;
# allow swaylock to use pam
security.pam.services.swaylock = { };
# enable unfree
nixpkgs.config.allowUnfree = true;