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

View file

@ -144,6 +144,25 @@
environment.systemPackages = with pkgs; [ htop ]; 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 = { services.nginx = {
enable = true; enable = true;
@ -171,6 +190,14 @@
forceSSL = true; forceSSL = true;
root = "/srv/www/"; root = "/srv/www/";
}; };
"git.fainsin.bzh" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3000/";
proxyWebsockets = true;
};
};
default = { default = {
default = true; default = true;
locations."/".return = ''301 "$scheme://fainsin.bzh" ''; locations."/".return = ''301 "$scheme://fainsin.bzh" '';

View file

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