mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
add editorconfig to emacs, add personal nixpkgs fork to flake inputs, add vlc and qbittorrent
This commit is contained in:
parent
d9c7a2fab9
commit
319dbe4186
6 changed files with 28 additions and 69 deletions
2
apps.nix
2
apps.nix
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, mkIf, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
# see https://github.com/nix-community/home-manager/issues/1341
|
||||
|
||||
|
|
|
@ -668,6 +668,13 @@ in {
|
|||
enable = true;
|
||||
bind = { "C-c '" = "separedit"; };
|
||||
};
|
||||
|
||||
editorconfig = {
|
||||
enable = true;
|
||||
config = ''
|
||||
(editorconfig-mode 1)
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
31
flake.lock
generated
31
flake.lock
generated
|
@ -23,11 +23,11 @@
|
|||
},
|
||||
"nixpkgs-22_11": {
|
||||
"locked": {
|
||||
"lastModified": 1672616430,
|
||||
"narHash": "sha256-e18rRwDUaW/Uw1tBmtsVueJ2SVI5DLhrEGwhkIo+c50=",
|
||||
"lastModified": 1672781980,
|
||||
"narHash": "sha256-L+yqt2szcp+BFiWoMJCisDsNA5OrpYVW1QSbbS5U8RU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0bf3109eeb61780965c27f4a0a4affdcd0cd4d3d",
|
||||
"rev": "a9eedea7232f5d00f0aca7267efb69a54da1b8a1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -55,26 +55,27 @@
|
|||
},
|
||||
"nixpkgs-willem": {
|
||||
"locked": {
|
||||
"lastModified": 1672862269,
|
||||
"narHash": "sha256-KKCCD9eRNXmnMi/0jBRwUxfbpztZTKjMryzBpbF0Zjw=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "f47288240ee522859b93035dc13477b67d60bbb8",
|
||||
"revCount": 439834,
|
||||
"type": "git",
|
||||
"url": "file:///Users/willem/dev/nixpkgs"
|
||||
"lastModified": 1672945252,
|
||||
"narHash": "sha256-vkZYxDq8Bdt5JhZCcV4nniqaIsiYW3DAiuNXClFWcGA=",
|
||||
"owner": "willemml",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4d11054d40eeeb77400d8cd71966d1bf3098d449",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "file:///Users/willem/dev/nixpkgs"
|
||||
"owner": "willemml",
|
||||
"ref": "master",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1672861477,
|
||||
"narHash": "sha256-vpOFUoEgirvsZmmhKP6S1B7w7/HU68F6vIcMjfzJp0Q=",
|
||||
"lastModified": 1672872270,
|
||||
"narHash": "sha256-c2Al8DUAumXESM/WITWDJKqoWLrDZ9mCSYx5/mzKeZc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "e7f5fc0f765054f51948a933576eddee469c99f4",
|
||||
"rev": "552822b1dc35e48ca3e523026997b21e8b371c10",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
description = "Willem's Home Manager configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs-willem.url = "git+file:///Users/willem/dev/nixpkgs";
|
||||
#nixpkgs-willem.url = "github:willemml/nixpkgs/master";
|
||||
nixpkgs-willem.url = "github:willemml/nixpkgs/master";
|
||||
nixpkgs-22_11.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager = {
|
||||
|
|
12
packages.nix
12
packages.nix
|
@ -2,15 +2,9 @@
|
|||
|
||||
{
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
coreutils
|
||||
gnused
|
||||
spoof-mac
|
||||
colima
|
||||
pinentry_mac
|
||||
iterm2
|
||||
(pkgs.callPackage ./spotify-mac.nix { })
|
||||
] ++ [ discord pkgsCustom.vlc ] ++ [ docker docker-compose ] ++ [
|
||||
[ coreutils gnused spoof-mac colima pinentry_mac iterm2 ]
|
||||
++ [ discord pkgsCustom.vlc pkgsCustom.qbittorrent ]
|
||||
++ [ docker docker-compose ] ++ [
|
||||
zsh-powerlevel10k
|
||||
comma
|
||||
automake
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
{ stdenv, lib, config, pkgs, ... }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "spotify-mac-app";
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [ pkgs.undmg pkgs.makeWrapper pkgs.perl pkgs.unzip pkgs.zip ];
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://download.scdn.co/Spotify.dmg";
|
||||
hash = "sha256-9Ts6064YaZdjbRN28qkZcrwTH+63drC/jUfTGLvpBNc=";
|
||||
};
|
||||
|
||||
spotxsrc = pkgs.fetchFromGitHub {
|
||||
name = "spotx-mac-src";
|
||||
owner = "willemml";
|
||||
repo = "SpotX-Mac";
|
||||
rev = "03ea3aa59e135b9e2f68b6c8f4d4debe2b207830";
|
||||
hash = "sha256-H3QxmM0ALtz58MKaQ6pFcK6wP8oMWufvQ2q2ZjpO5Gs=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/Applications
|
||||
cp -r "Spotify.app" $out/Applications
|
||||
|
||||
# wrap executable to $out/bin
|
||||
mkdir -p $out/bin
|
||||
makeWrapper "$out/Applications/Spotify.app/Contents/MacOS/Spotify" "$out/bin/Spotify"
|
||||
|
||||
cp "$spotxsrc/install.sh" install.sh
|
||||
|
||||
chmod +x install.sh
|
||||
|
||||
./install.sh -a "$out/Applications/Spotify.app"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue