1
Fork 0

Start the process of switching to nixpkgs-unstable

This commit is contained in:
Matei Adriel 2023-09-28 03:13:35 +03:00
parent 346d1b78d9
commit a81103f78e
No known key found for this signature in database
19 changed files with 512 additions and 438 deletions

View file

@ -13,7 +13,7 @@ let
catppuccin-latte = {
stylix = {
image = ./wallpapers/watercag.png;
image = ./wallpapers/needygirloverdose.jpg;
base16Scheme = "${inputs.catppuccin-base16}/base16/latte.yaml";
polarity = "light";
};

View file

@ -52,8 +52,8 @@ local abbreviations = {
{ "tmat", "^T" }, -- Tranpose of a matrix
{ "cmat", "^*" }, -- Conjugate of a matrix
{ "sneg", "^C" }, -- Set complement
{ "ortco", "^{\\bot}" }, -- Orthogonal complement
{ "sinter", "^{\\circ}" }, -- Interior of a set
{ "ortco", "^\\bot" }, -- Orthogonal complement
{ "sinter", "^\\circ" }, -- Interior of a set
-- Basic commands
{ "mangle", "\\measuredangle" },

View file

@ -21,6 +21,7 @@ return {
prepend_note_id = true,
},
mappings = {},
disable_frontmatter = true,
},
keys = {
{ "<C-O>", "<cmd>ObsidianQuickSwitch<cr>" },

File diff suppressed because it is too large Load diff

View file

@ -4,13 +4,13 @@
# {{{ Inputs
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Nixpkgs-unstable
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Home manager
home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# NUR

View file

@ -1,6 +1,6 @@
{ pkgs, inputs, ... }: {
imports = [
./exa.nix
./eza.nix
./bat.nix
./ssh.nix
./gpg.nix

View file

@ -1,16 +1,17 @@
{ pkgs, ... }: {
home.packages = [ pkgs.exa ];
{ upkgs, lib, ... }: {
# REASON: not yet in nixpkgs-stable
home.packages = [ upkgs.eza ];
# TODO: generalize alias creation to all shells
programs.fish.shellAliases =
let exa = "${pkgs.exa}/bin/exa";
let eza = lib.getExe upkgs.eza;
in
rec {
ls = "${exa} --icons --long";
ls = "${eza} --icons --long";
la = "${ls} --all";
lt = "${ls} --tree"; # Similar to tree, but also has --long!
# I am used to using pkgs.tree, so this is nice to have!
tree = "${exa} --icons --tree";
tree = "${eza} --icons --tree";
};
}

View file

@ -12,7 +12,8 @@ let
nil # nix
inputs.nixd.packages.${system}.nixd # nix
haskell-language-server # haskell
dhall-lsp-server # dhall
# REASON: marked as broken
# dhall-lsp-server # dhall
tectonic # something related to latex (?)
texlab # latex
nodePackages_latest.vscode-langservers-extracted # web stuff

View file

@ -14,7 +14,8 @@ in
wayland.windowManager.hyprland = {
enable = true;
recommendedEnvironment = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
settings = { };
extraConfig = ''
${builtins.readFile ./hyprland.conf}
${hyprland-monitors}

View file

@ -6,7 +6,6 @@ let
inputs.homeage.homeManagerModules.homeage
inputs.nur.nixosModules.nur
inputs.impermanence.nixosModules.home-manager.impermanence
inputs.hyprland.homeManagerModules.default
inputs.spicetify-nix.homeManagerModules.spicetify
inputs.anyrun.homeManagerModules.default

View file

@ -40,7 +40,7 @@ in
# Passwordless sudo when SSH'ing with keys
# TODO: is this safe? Can we ssh back and gain root access this way?
security.pam.enableSSHAgentAuth = true;
# security.pam.enableSSHAgentAuth = true;
# SSH on slow connections
programs.mosh.enable = true;

View file

@ -1,3 +1,6 @@
{
{ inputs, pkgs, ... }: {
programs.hyprland.enable = true;
programs.hyprland.package =
inputs.hyprland.packages.${pkgs.system}.hyprland;
}

View file

@ -15,6 +15,7 @@ in
overrideDevices = true;
overrideFolders = true;
settings = {
devices = {
enceladus.id = "QWOAERM-V2FNXPI-TB7NFUS-LKW7JTB-IZY4OEZ-FYDPJNP-6IKPW4Y-YREXDQM";
lapetus.id = "VVHM7RC-ZSDOZJI-EGBIJR4-2DOGAXG-OEJZWSH-OYUK5XT-7CDMWSL-3AVM2AZ";
@ -27,4 +28,5 @@ in
};
};
};
};
}

View file

@ -13,7 +13,7 @@
isNormalUser = true;
# File containing my password, managed by agenix
passwordFile = config.age.secrets.adrielusPassword.path;
hashedPasswordFile = config.age.secrets.adrielusPassword.path;
# Set default shell
shell = pkgs.fish;

View file

@ -6,6 +6,6 @@
services.syncthing = {
guiAddress = "0.0.0.0:8384"; # TODO: put this behind nginx
folders = { };
settings.folders = { };
};
}

View file

@ -1,7 +1,7 @@
{
imports = [ ../../common/optional/syncthing.nix ];
services.syncthing.folders = {
services.syncthing.settings.folders = {
"mythical-vault" = {
path = "/home/adrielus/.password-store";
devices = [ "enceladus" "lapetus" ];

View file

@ -2,5 +2,4 @@
{
# example = import ./example.nix;
font-compat = import ./font-compat.nix;
}

View file

@ -1,7 +0,0 @@
{ lib, config, ... }: {
options.fonts.packages = lib.mkOption {
type = lib.types.listOf lib.types.package;
};
config.fonts.fonts = config.fonts.packages;
}

View file

@ -15,13 +15,15 @@ let vimclip = pkgs.stdenv.mkDerivation rec {
cp ./vimclip $out/bin/vimclip
chmod +x $out/bin/vimclip
'';
meta.mainProgram = "vimclip";
}; in
pkgs.writeShellScriptBin "vimclip" ''
if [ "wayland" = $XDG_SESSION_TYPE ]
then
export VIMCLIP_CLIPBOARD_COMMAND=${pkgs.wl-clipboard}/bin/wl-copy
else
export VIMCLIP_CLIPBOARD_COMMAND=${lib.getExe pkgs.xsel}
export VIMCLIP_CLIPBOARD_COMMAND=${pkgs.xsel}/bin/xsel
fi
${lib.getExe vimclip}