Move nixos to stow module
This commit is contained in:
parent
b6788b67a5
commit
36ade1c42d
17 changed files with 172 additions and 0 deletions
6
nixos/.config/nixos/custom/quickshell.nix
Normal file
6
nixos/.config/nixos/custom/quickshell.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ lib, stdenv }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
}
|
||||
|
||||
103
nixos/.config/nixos/derivations/ags.nix
Normal file
103
nixos/.config/nixos/derivations/ags.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
||||
14
nixos/.config/nixos/profiles/java.nix
Normal file
14
nixos/.config/nixos/profiles/java.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.java = {
|
||||
enable = true;
|
||||
package = pkgs.javaPackages.openjfx17;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
javaPackages.openjfx19
|
||||
jdk17
|
||||
];
|
||||
}
|
||||
|
||||
13
nixos/.config/nixos/profiles/neomutt.nix
Normal file
13
nixos/.config/nixos/profiles/neomutt.nix
Normal 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
|
||||
];
|
||||
}
|
||||
|
||||
8
nixos/.config/nixos/profiles/offsec.nix
Normal file
8
nixos/.config/nixos/profiles/offsec.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
nmap
|
||||
];
|
||||
}
|
||||
|
||||
10
nixos/.config/nixos/profiles/steam.nix
Normal file
10
nixos/.config/nixos/profiles/steam.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
steam
|
||||
];
|
||||
}
|
||||
|
||||
18
nixos/.config/nixos/profiles/syncthing.nix
Normal file
18
nixos/.config/nixos/profiles/syncthing.nix
Normal 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
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue