From 572ae7c8762e1c4685a2f5e22eec290b66fb3005 Mon Sep 17 00:00:00 2001 From: Till Date: Sun, 19 Jan 2025 13:31:34 +0100 Subject: [PATCH] guest --- flake.nix | 8 +++++ home/castget/castget.conf | 3 +- home/fonts.nix | 2 ++ home/guest.nix | 55 +++++++++++++++++++++++++++++++++ home/nvim/ftplugin/markdown.vim | 1 - home/r.nix | 24 ++------------ 6 files changed, 69 insertions(+), 24 deletions(-) create mode 100644 home/guest.nix diff --git a/flake.nix b/flake.nix index 84254a8..f3c1a1f 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,7 @@ ./system/btrbk.nix ./system/yubikey.nix ./system/alt.nix + ./system/guest.nix ]; }; @@ -108,6 +109,13 @@ ./home/alt.nix ]; }; + guest = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.x86_64-linux.extend inputs.nur.overlays.default; + extraSpecialArgs = { inherit inputs; }; + modules = [ + ./home/guest.nix + ]; + }; }; }; } diff --git a/home/castget/castget.conf b/home/castget/castget.conf index 58d0c6e..27691f7 100644 --- a/home/castget/castget.conf +++ b/home/castget/castget.conf @@ -28,7 +28,8 @@ url=https://www.eintracht-podcast.de/feed/mp3 # id3album=Edeltalk [logbuchnetzpolitik] -url=https://logbuch-netzpolitik.de/feed/mp3 +url=https://feeds.metaebene.me/lnp/mp3 +id3album=Logbuch Netzpolitik [*] id3contenttype=Podcast diff --git a/home/fonts.nix b/home/fonts.nix index 6db14f8..1aca76a 100644 --- a/home/fonts.nix +++ b/home/fonts.nix @@ -4,6 +4,7 @@ home.packages = with pkgs; [ anonymousPro cantarell-fonts + cascadia-code charis-sil cm_unicode corefonts @@ -11,6 +12,7 @@ dotcolon-fonts freefont_ttf gyre-fonts + hack-font hubot-sans liberation_ttf libertine diff --git a/home/guest.nix b/home/guest.nix new file mode 100644 index 0000000..c7f43a7 --- /dev/null +++ b/home/guest.nix @@ -0,0 +1,55 @@ +{ config, pkgs, inputs, lib, ... }: + +{ + home.username = "guest"; + home.homeDirectory = "/home/guest"; + home.stateVersion = "22.11"; + + nixpkgs = { + config = { + allowUnfree = true; + allowUnfreePredicate = (_: true); + }; + }; + + programs.home-manager.enable = true; + + xdg.userDirs = { + enable = true; + createDirectories = true; + download = "${config.home.homeDirectory}/tmp"; + music = "${config.home.homeDirectory}/media/music"; + pictures = "${config.home.homeDirectory}/media/img"; + videos = "${config.home.homeDirectory}/media/vid"; + documents = "${config.home.homeDirectory}/misc"; + templates = "${config.xdg.dataHome}/templates"; + }; + + home.packages = with pkgs; [ + fzf + silver-searcher + tmux + nodejs + wl-clipboard + qbittorrent + vlc + # mullvad-vpn + ffmpeg + libnotify + ]; + + imports = [ + ./gnome + ./firefox.nix + ./foot.nix + ./fish.nix + ./tmux + ./nvim + ]; + + programs.nix-index = { + enable = true; + enableFishIntegration = true; + }; + +} diff --git a/home/nvim/ftplugin/markdown.vim b/home/nvim/ftplugin/markdown.vim index a80f805..8d0d7af 100644 --- a/home/nvim/ftplugin/markdown.vim +++ b/home/nvim/ftplugin/markdown.vim @@ -5,7 +5,6 @@ setlocal breakat-=@ setlocal makeprg=Rscript\ -e\ 'publishR::render(\\"%\\")' -" nnoremap oh :! xdg-open %:r.html nnoremap oh :! xdg-open %:r.html nnoremap op :! xdg-open %:r.pdf nnoremap ow :! xdg-open %:r.docx diff --git a/home/r.nix b/home/r.nix index 7ac8a13..c215563 100644 --- a/home/r.nix +++ b/home/r.nix @@ -34,27 +34,6 @@ propagatedBuildInputs = []; nativeBuildInputs = []; }; - readODS = pkgs.rPackages.buildRPackage { - name = "readODS"; - src = pkgs.fetchFromGitHub { - owner = "ropensci"; - repo = "readODS"; - rev = "011a89f57169d6f7c8796954e2365f0bd9b5765f"; - sha256 = "1hg8w46l5ifbaifmkmxxdvbamlj7bkadq956fab5063a5yrxfzwm"; - }; - propagatedBuildInputs = [xml2 cellranger readr stringi purrr zip]; - nativeBuildInputs = []; - }; - # readODS = pkgs.rPackages.buildRPackage { - # name = "readODS"; - # src = builtins.fetchGit { - # url = "https://git@github.com/ktiu/readODS/"; - # ref = "v1.8"; - # rev = "d7e9c54a3a193979ea4195ac36938aa55cd5360f"; - # }; - # propagatedBuildInputs = [xml2 cellranger readr stringi purrr zip]; - # nativeBuildInputs = []; - # }; in [ bookdown catmaply @@ -88,6 +67,7 @@ rvest sf stringr + swirl testthat tidyr tidyverse @@ -96,7 +76,7 @@ yaml lectuR publishR - goethR + # goethR ggtree ]; R-packed = rWrapper.override { packages = customPackages; };