Move nixos to stow module

This commit is contained in:
agryphus 2024-02-27 15:56:42 -05:00
parent b6788b67a5
commit 36ade1c42d
17 changed files with 172 additions and 0 deletions

View file

@ -0,0 +1,6 @@
{ lib, stdenv }:
stdenv.mkDerivation {
}

View file

@ -0,0 +1,103 @@
{ lib
, stdenv
, buildNpmPackage
, fetchFromGitLab
, nodePackages
, meson
, pkg-config
, ninja
, gobject-introspection
, gtk3
, libpulseaudio
, gjs
, wrapGAppsHook
, upower
, gnome
, gtk-layer-shell
, glib-networking
, networkmanager
, libdbusmenu-gtk3
, gvfs
, libsoup_3
, libnotify
, pam
, extraPackages ? [ ]
, version ? "git"
, buildTypes ? false
}:
let
gvc-src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "libgnome-volume-control";
rev = "8e7a5a4c3e51007ce6579292642517e3d3eb9c50";
sha256 = "sha256-FosJwgTCp6/EI6WVbJhPisokRBA6oT0eo7d+Ya7fFX8=";
};
in
stdenv.mkDerivation rec {
pname = "ags";
inherit version;
src = buildNpmPackage {
name = pname;
src = ../.;
dontBuild = true;
npmDepsHash = "sha256-ucWdADdMqAdLXQYKGOXHNRNM9bhjKX4vkMcQ8q/GZ20=";
installPhase = ''
mkdir $out
cp -r * $out
'';
};
mesonFlags = builtins.concatLists [
(lib.optional buildTypes "-Dbuild_types=true")
];
prePatch = ''
mkdir -p ./subprojects/gvc
cp -r ${gvc-src}/* ./subprojects/gvc
'';
postPatch = ''
chmod +x post_install.sh
patchShebangs post_install.sh
'';
nativeBuildInputs = [
pkg-config
meson
ninja
nodePackages.typescript
wrapGAppsHook
gobject-introspection
];
buildInputs = [
gjs
gtk3
libpulseaudio
upower
gnome.gnome-bluetooth
gtk-layer-shell
glib-networking
networkmanager
libdbusmenu-gtk3
gvfs
libsoup_3
libnotify
pam
] ++ extraPackages;
meta = with lib; {
description = "A customizable and extensible shell";
homepage = "https://github.com/Aylur/ags";
platforms = [ "x86_64-linux" "aarch64-linux" ];
license = licenses.gpl3;
meta.maintainers = [ lib.maintainers.Aylur ];
};
}

View file

@ -0,0 +1,14 @@
{ config, pkgs, ... }:
{
programs.java = {
enable = true;
package = pkgs.javaPackages.openjfx17;
};
environment.systemPackages = with pkgs; [
javaPackages.openjfx19
jdk17
];
}

View file

@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
neomutt # Mail client
lynx
isync # Downloads the mail
offlineimap # Downloads the mail
msmtp # Sents the mail
];
}

View file

@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
nmap
];
}

View file

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
steam
];
}

View file

@ -0,0 +1,18 @@
{ config, pkgs, ... }:
{
services.syncthing = {
enable = true;
dataDir = "/home/vince/.local/share";
openDefaultPorts = true;
configDir = "/home/vince/.config/syncthing";
user = "vince";
group = "users";
guiAddress = "localhost:8384";
};
environment.systemPackages = with pkgs; [
syncthing # Syncing files between machines
];
}