feat: add rofi-obsidian as dep

This commit is contained in:
Nydragon 2024-07-16 16:22:19 +02:00
parent 08b87516e7
commit 6dc1eeb377
10 changed files with 113 additions and 7 deletions

92
flake.lock generated
View file

@ -40,6 +40,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -92,13 +110,85 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1718428119,
"narHash": "sha256-WdWDpNaq6u1IPtxtYHHWpl5BmabtpmLnMAx0RdJ/vo8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e6cea36f83499eb4e9cd184c8a8e823296b50ad5",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"rofi-obsidian": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
],
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1720405179,
"narHash": "sha256-GccZ3CxmS3MDzkCfFNWb/F3eGoVxaoAiHcmWzbq5Z1o=",
"owner": "nydragon",
"repo": "rofi-obsidian",
"rev": "898cb1cb5b52e9b6ab13650ef48b873eebc9581f",
"type": "github"
},
"original": {
"owner": "nydragon",
"repo": "rofi-obsidian",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"disko": "disko", "disko": "disko",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"rofi-obsidian": "rofi-obsidian"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1720318855,
"narHash": "sha256-w3CCVK9LJ5aznXGkO1IyAlbvMNJfyA+dBF7Z1Zwx1LA=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "3eed08a074cd2000884a69d448d70da2843f7103",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
} }
} }
}, },

View file

@ -18,6 +18,11 @@
url = "github:nix-community/disko"; url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
rofi-obsidian = {
url = "github:nydragon/rofi-obsidian";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
@ -51,7 +56,7 @@
}; };
}; };
flake = rec { flake = {
templates = import ./templates; templates = import ./templates;
# TODO: move that somewhere else # TODO: move that somewhere else
lib = inputs.nixpkgs.lib.extend ( lib = inputs.nixpkgs.lib.extend (

View file

@ -13,9 +13,10 @@
cp = "cp -i"; cp = "cp -i";
mv = "mv -i"; mv = "mv -i";
}; };
functions = { functions = rec {
gitignore = "curl -sL https://www.gitignore.io/api/$argv"; gitignore = "curl -sL https://www.gitignore.io/api/$argv";
nrun = "nix run nixpkgs#$argv[1] -- $argv[2..]"; nrun = "nix run nixpkgs#$argv[1] -- $argv[2..]";
nrunb = "${nrun} & disown";
mv-bad-creation-date = '' mv-bad-creation-date = ''
${lib.my.checkPath pkgs.exiftool "exiftool"} -if 'not $CreateDate' -p '$FileName' "$PWD/$argv[1]" | xargs -I {} mv -i "$PWD/$argv[1]/{}" "$argv[2]" ${lib.my.checkPath pkgs.exiftool "exiftool"} -if 'not $CreateDate' -p '$FileName' "$PWD/$argv[1]" | xargs -I {} mv -i "$PWD/$argv[1]/{}" "$argv[2]"
''; '';

View file

@ -25,7 +25,7 @@
# WARNING: ABI version mismatch # WARNING: ABI version mismatch
# "calc" # "calc"
"clipboard:${lib.my.checkPath pkgs.cliphist "cliphist-rofi-img"}" "clipboard:${lib.my.checkPath pkgs.cliphist "cliphist-rofi-img"}"
"obsidian:${lib.my.checkPath pkgs.rofi-obsidian "rofi-obsidian"}" "obsidian:${lib.my.checkPath pkgs.custom.rofi-obsidian "rofi-obsidian"}"
]; ];
matching = "fuzzy"; matching = "fuzzy";
sort = true; sort = true;

View file

@ -15,7 +15,7 @@ in
brontes = lib.my.mkSystem { brontes = lib.my.mkSystem {
hostname = "brontes"; hostname = "brontes";
system = "x86_64-linux"; system = "x86_64-linux";
extraModules = [ inputs.agenix.nixosModules.default ]; extraModules = [ ];
}; };
styrak = lib.my.mkSystem { styrak = lib.my.mkSystem {

View file

@ -49,7 +49,7 @@
#: Virtualisation {{{ #: Virtualisation {{{
virtualisation.docker = { virtualisation.docker = {
enable = true; enable = false;
enableOnBoot = false; enableOnBoot = false;
rootless = { rootless = {
enable = true; enable = true;

View file

@ -11,6 +11,7 @@
./programs/lazygit.nix ./programs/lazygit.nix
./programs/steam.nix ./programs/steam.nix
./programs/hyprland.nix ./programs/hyprland.nix
./programs/ssh.nix
./home-manager.nix ./home-manager.nix
./system/mime.nix ./system/mime.nix
./env.nix ./env.nix

View file

@ -1,9 +1,11 @@
{ inputs, ... }:
{ {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
packageOverrides = pkgs: { packageOverrides = pkgs: {
custom = { custom = {
scripts = import ../../home/scripts { inherit pkgs; }; scripts = import ../../home/scripts { inherit pkgs; };
rofi-obsidian = inputs.rofi-obsidian.outputs.packages.${pkgs.system}.rofi-obsidian;
}; };
}; };
}; };

View file

@ -7,7 +7,7 @@
lib.mkIf config.services.printing.enable { lib.mkIf config.services.printing.enable {
services.avahi = { services.avahi = {
enable = true; enable = true;
nssmdns = true; nssmdns4 = true;
openFirewall = true; openFirewall = true;
}; };

7
modules/programs/ssh.nix Normal file
View file

@ -0,0 +1,7 @@
{
programs.ssh = {
knownHosts = {
"github.com".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl";
};
};
}