mirror of
https://github.com/Smaug123/nix-dotfiles
synced 2025-10-13 10:28:39 +00:00
Some Linux fixes (#72)
This commit is contained in:
@@ -70,6 +70,7 @@
|
|||||||
dotnet = pkgs.dotnet-sdk_8;
|
dotnet = pkgs.dotnet-sdk_8;
|
||||||
mbsync = import ./mbsync.nix {inherit pkgs;};
|
mbsync = import ./mbsync.nix {inherit pkgs;};
|
||||||
secretsPath = "/home/patrick/.secrets/";
|
secretsPath = "/home/patrick/.secrets/";
|
||||||
|
machinename = "capybara";
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
./home-manager/capybara-config.nix
|
./home-manager/capybara-config.nix
|
||||||
@@ -95,6 +96,7 @@
|
|||||||
dotnet = pkgs.dotnet-sdk_8;
|
dotnet = pkgs.dotnet-sdk_8;
|
||||||
mbsync = import ./mbsync.nix {inherit pkgs;};
|
mbsync = import ./mbsync.nix {inherit pkgs;};
|
||||||
secretsPath = "/home/patrick/.secrets/";
|
secretsPath = "/home/patrick/.secrets/";
|
||||||
|
machinename = "earthworm";
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
./home-manager/earthworm-config.nix
|
./home-manager/earthworm-config.nix
|
||||||
@@ -124,6 +126,7 @@
|
|||||||
whisper = whisper.packages.${system};
|
whisper = whisper.packages.${system};
|
||||||
mbsync = import ./mbsync.nix {inherit pkgs;};
|
mbsync = import ./mbsync.nix {inherit pkgs;};
|
||||||
secretsPath = "/Users/patrick/.secrets/";
|
secretsPath = "/Users/patrick/.secrets/";
|
||||||
|
machinename = "darwin";
|
||||||
};
|
};
|
||||||
in [
|
in [
|
||||||
./darwin-configuration.nix
|
./darwin-configuration.nix
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
machinename,
|
||||||
username,
|
username,
|
||||||
mbsync,
|
mbsync,
|
||||||
dotnet,
|
dotnet,
|
||||||
@@ -58,7 +59,12 @@
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
gpg.program = "${nixpkgs.gnupg}/bin/gpg";
|
gpg.program = "${nixpkgs.gnupg}/bin/gpg";
|
||||||
user.signingkey = "7C97D679CF3BC4F9";
|
user.signingkey =
|
||||||
|
if machinename == "darwin" || machinename == "earthworm"
|
||||||
|
then "7C97D679CF3BC4F9"
|
||||||
|
else if machinename == "capybara"
|
||||||
|
then "AE90453E879DBCFA"
|
||||||
|
else throw "unrecognised machine name!";
|
||||||
core = {
|
core = {
|
||||||
autocrlf = "input";
|
autocrlf = "input";
|
||||||
};
|
};
|
||||||
@@ -254,7 +260,8 @@
|
|||||||
extraLuaConfig = builtins.readFile ./nvim/build-utils.lua + "\n" + (builtins.replaceStrings ["_CURL_"] ["${nixpkgs.curl}/bin/curl"] (builtins.readFile ./nvim/dotnet.lua)) + "\n" + builtins.readFile ./nvim/init.lua + "\n" + builtins.readFile ./nvim/python.lua;
|
extraLuaConfig = builtins.readFile ./nvim/build-utils.lua + "\n" + (builtins.replaceStrings ["_CURL_"] ["${nixpkgs.curl}/bin/curl"] (builtins.readFile ./nvim/dotnet.lua)) + "\n" + builtins.readFile ./nvim/init.lua + "\n" + builtins.readFile ./nvim/python.lua;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [
|
home.packages =
|
||||||
|
[
|
||||||
nixpkgs.jq
|
nixpkgs.jq
|
||||||
nixpkgs.difftastic
|
nixpkgs.difftastic
|
||||||
nixpkgs.syncthing
|
nixpkgs.syncthing
|
||||||
@@ -304,7 +311,12 @@
|
|||||||
nixpkgs.clang-tools
|
nixpkgs.clang-tools
|
||||||
nixpkgs.deno
|
nixpkgs.deno
|
||||||
nixpkgs.yazi
|
nixpkgs.yazi
|
||||||
];
|
]
|
||||||
|
++ (
|
||||||
|
if nixpkgs.stdenv.isLinux
|
||||||
|
then [nixpkgs.protonmail-bridge nixpkgs.pinentry]
|
||||||
|
else []
|
||||||
|
);
|
||||||
|
|
||||||
home.file.".ideavimrc".source = ./ideavimrc;
|
home.file.".ideavimrc".source = ./ideavimrc;
|
||||||
home.file.".config/yt-dlp/config".source = ./youtube-dl.conf;
|
home.file.".config/yt-dlp/config".source = ./youtube-dl.conf;
|
||||||
|
@@ -149,7 +149,10 @@ in {
|
|||||||
port = 1025; # 8126; if using hydroxide
|
port = 1025; # 8126; if using hydroxide
|
||||||
tls = {enable = false;};
|
tls = {enable = false;};
|
||||||
};
|
};
|
||||||
userName = address;
|
userName =
|
||||||
|
if pkgs.stdenv.isLinux
|
||||||
|
then builtins.head (pkgs.lib.strings.splitString "@" address)
|
||||||
|
else address;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.mbsync = {
|
programs.mbsync = {
|
||||||
|
Reference in New Issue
Block a user