mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: ...get internet again. git-hooks.nix adopt
This commit is contained in:
parent
7a0f09e700
commit
e00ec8f2f2
116 changed files with 1157 additions and 4681 deletions
|
|
@ -1,6 +1,6 @@
|
|||
_: {
|
||||
home-manager.sharedModules = [
|
||||
({ config, ... }: {
|
||||
({config, ...}: {
|
||||
xdg.systemDirs.data = [
|
||||
"/var/lib/flatpak/exports/share"
|
||||
"/home/${config.home.username}/.local/share/flatpak/exports/share/"
|
||||
|
|
@ -14,7 +14,10 @@ _: {
|
|||
onCalendar = "weekly";
|
||||
};
|
||||
remotes = [
|
||||
{ name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; }
|
||||
{
|
||||
name = "flathub";
|
||||
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
_: {
|
||||
services.mullvad-vpn.enable = true;
|
||||
}
|
||||
27
nixos/profiles/graphical/mullvad/default.nix
Normal file
27
nixos/profiles/graphical/mullvad/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.generators) toJSON;
|
||||
|
||||
mullvadSettings = builtins.toJSON {
|
||||
allow_lan = true;
|
||||
auto_connect = true;
|
||||
block_when_disconnected = true;
|
||||
};
|
||||
in {
|
||||
services.mullvad-vpn.enable = true;
|
||||
|
||||
#sops.secrets.mullvad-vpn-account-number = {
|
||||
#sopsFile = ./secrets.yaml;
|
||||
#};
|
||||
|
||||
systemd = {
|
||||
services."mullvad-daemon".environment.MULLVAD_SETTINGS_DIR = "/var/lib/mullvad-vpn";
|
||||
tmpfiles.settings."10-mullvad-settings" = {
|
||||
"/var/lib/mullvad-vpn/settings.json"."C+" = {
|
||||
group = "root";
|
||||
mode = "0700";
|
||||
user = "root";
|
||||
argument = "${mullvadSettings}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
enableVirtualCamera = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue