Reorganize home

This commit is contained in:
Artemis Tosini 2021-01-11 22:32:59 +00:00
parent d32c230ed5
commit a98fdd1ced
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
11 changed files with 32 additions and 16 deletions

View file

@ -1,6 +0,0 @@
daemonize
ignore-empty-password
image=/home/artemis/.config/swaylock/xp.jpg
indicator-caps-lock
show-failed-attempts
show-keyboard-layout

View file

@ -9,19 +9,21 @@
home-manager.users.artemis = { pkgs, ... }: { home-manager.users.artemis = { pkgs, ... }: {
imports = [ imports = [
./git.nix ./git.nix
./neovim
]; ];
xdg.enable = true; xdg.enable = true;
xdg.configFile = { xdg.configFile = {
"alacritty/alacritty.yml".source = ./alacritty.yml; "alacritty/alacritty.yml".source = ./files/alacritty.yml;
"mpv/mpv.conf".source = ./mpv.conf; "mpv/mpv.conf".source = ./files/mpv.conf;
"mimeapps.list".source = ./files/mimeapps.list;
"swaylock/config".text = '' "swaylock/config".text = ''
daemonize daemonize
ignore-empty-password ignore-empty-password
indicator-caps-lock indicator-caps-lock
show-failed-attempts show-failed-attempts
show-keyboard-layout show-keyboard-layout
image=${./xp.jpg} image=${./files/xp.jpg}
''; '';
}; };
}; };

14
home/files/mimeapps.list Normal file
View file

@ -0,0 +1,14 @@
[Default Applications]
application/pdf=org.gnome.Evince.desktop
application/xml=code.desktop
audio/flac=mpv.desktop
image/png=org.gnome.eog.desktop
image/jpeg=org.gnome.eog.desktop
text/html=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/discord-455712169795780630=discord-455712169795780630.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/steam=steam.desktop
x-scheme-handler/unknown=firefox.desktop
x-scheme-handler/zoommtg=us.zoom.Zoom.desktop

View file

Before

Width:  |  Height:  |  Size: 722 KiB

After

Width:  |  Height:  |  Size: 722 KiB

View file

@ -16,6 +16,7 @@
transfer.fsckObjects = true; transfer.fsckObjects = true;
advice.detachedHead = false; advice.detachedHead = false;
pull.rebase = true;
format.signOff = true; format.signOff = true;
init.defaultBranch = "canon"; init.defaultBranch = "canon";
log.showSignature = true; log.showSignature = true;

View file

@ -4,7 +4,7 @@
programs.neovim = { programs.neovim = {
enable = true; enable = true;
vimAlias = true; vimAlias = true;
defaultEditor = true; withNodeJs = true;
configure = { configure = {
customRC = builtins.readFile ./init.vim; customRC = builtins.readFile ./init.vim;
packages.default.start = with pkgs.vimPlugins; [ packages.default.start = with pkgs.vimPlugins; [
@ -27,11 +27,16 @@
}; };
}; };
environment.systemPackages = with pkgs; [ home.sessionVariables.EDITOR = "nvim";
home.packages = with pkgs; [
nixpkgs-fmt nixpkgs-fmt
nodejs
python3Packages.python-language-server
rnix-lsp
rust-analyzer
]; ];
xdg.configFile."nvim/coc-settings.json".text = builtins.toJSON {
rust-analyzer.serverPath = "${pkgs.rust-analyzer}/bin/rust-analyzer";
languageserver.nix = {
command = "${pkgs.rnix-lsp}/bin/rnix-lsp";
filetypes = [ "nix" ];
};
};
} }

View file

@ -83,6 +83,7 @@ in
libarchive libarchive
lsof lsof
mercurialFull mercurialFull
neovim
nix-index nix-index
openssl openssl
p7zip p7zip

View file

@ -5,7 +5,6 @@
./sway.nix ./sway.nix
./packages.nix ./packages.nix
./pipewire.nix ./pipewire.nix
./neovim
../home ../home
]; ];