chore: oxi programs to be compiled
This commit is contained in:
parent
912751b0df
commit
6ddb5d9e6b
21 changed files with 477 additions and 208 deletions
|
|
@ -16,6 +16,7 @@
|
|||
gnome.adwaita-icon-theme
|
||||
bibata-cursors
|
||||
xorg.xkbutils
|
||||
libxkbcommon
|
||||
];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
|
|
|
|||
74
nix/base/common_hardware.nix
Normal file
74
nix/base/common_hardware.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Zurich";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
xkb.layout = "us";
|
||||
xkb.variant = "";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
XDG_CACHE_HOME = "$HOME/.cache";
|
||||
DIRENV_LOG_FORMAT = "";
|
||||
};
|
||||
|
||||
# allows user change later on
|
||||
users.mutableUsers = true;
|
||||
users.users.dashie = {
|
||||
isNormalUser = true;
|
||||
description = "dashie";
|
||||
extraGroups = [ "networkmanager" "wheel" "gamemode" ];
|
||||
packages = with pkgs; [
|
||||
home-manager
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
# this password will only last for the first login
|
||||
# e.g. login, then change to whatever else, this also ensures no public hash is available
|
||||
password = "firstlogin";
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
builders-use-substitutes = true;
|
||||
# substituters to use
|
||||
substituters = [
|
||||
"https://anyrun.cachix.org"
|
||||
];
|
||||
|
||||
trusted-public-keys = [
|
||||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "unstable";
|
||||
}
|
||||
|
|
@ -5,5 +5,6 @@
|
|||
./env.nix
|
||||
./xkb_layout.nix
|
||||
./base_packages.nix
|
||||
./common_hardware.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
4
nix/fix/default.nix
Normal file
4
nix/fix/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#{pkgs, ...}:{
|
||||
# hello = pkgs.callPackage ./ncspot.nix;
|
||||
#}
|
||||
{}
|
||||
77
nix/fix/ncspot.nix
Normal file
77
nix/fix/ncspot.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ pkgs
|
||||
, stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, withALSA ? false
|
||||
, withClipboard ? true
|
||||
, withCover ? false
|
||||
, withPulseAudio ? true
|
||||
, withPortAudio ? false
|
||||
, withMPRIS ? true
|
||||
, withNotify ? true
|
||||
, withCross ? true
|
||||
, nix-update-script
|
||||
, testers
|
||||
, ncspot
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ncspot";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hrkfdn";
|
||||
repo = "ncspot";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-RgA3jV/vD6qgIVQCZ0Sm+9CST4SlqN4MUurVM3nIdh0=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-8ZUgm1O4NmZpxgNRKnh1MNhiFNoBWQHo22kyP3hWJwI=";
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ]
|
||||
++ lib.optional withClipboard pkgs.python3;
|
||||
|
||||
buildInputs = [ pkgs.ncurses ]
|
||||
++ lib.optional stdenv.isLinux pkgs.openssl
|
||||
++ lib.optional withALSA pkgs.alsa-lib
|
||||
++ lib.optional withClipboard pkgs.xorg.libxcb
|
||||
++ lib.optional withCover pkgs.ueberzug
|
||||
++ lib.optional withPulseAudio pkgs.libpulseaudio
|
||||
++ lib.optional withPortAudio pkgs.portaudio
|
||||
++ lib.optional (withMPRIS || withNotify) pkgs.dbus
|
||||
++ lib.optional stdenv.isDarwin pkgs.Cocoa;
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-DNCURSES_UNCTRL_H_incl";
|
||||
|
||||
buildNoDefaultFeatures = true;
|
||||
|
||||
buildFeatures = [ "cursive/pancurses-backend" ]
|
||||
++ lib.optional withALSA "alsa_backend"
|
||||
++ lib.optional withClipboard "share_clipboard"
|
||||
++ lib.optional withCover "cover"
|
||||
++ lib.optional withPulseAudio "pulseaudio_backend"
|
||||
++ lib.optional withPortAudio "portaudio_backend"
|
||||
++ lib.optional withMPRIS "mpris"
|
||||
++ lib.optional withCross "crossterm_backend"
|
||||
++ lib.optional withNotify "notify";
|
||||
|
||||
postInstall = ''
|
||||
install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
|
||||
install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion { package = ncspot; };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes";
|
||||
homepage = "https://github.com/hrkfdn/ncspot";
|
||||
changelog = "https://github.com/hrkfdn/ncspot/releases/tag/v${version}";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ marsam liff ];
|
||||
mainProgram = "ncspot";
|
||||
};
|
||||
}
|
||||
46
nix/fix/oxicalc.nix
Normal file
46
nix/fix/oxicalc.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxicalc";
|
||||
version = "0.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiCalc";
|
||||
rev = "${version}";
|
||||
hash = "sha256-7qrnA0jnLg2mckpxCe66+axU3jE6nOBu7HefmP8I2Xc=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-nxLXT9SVorsgj7qzwX8Ipx8SDvyTYMAcpepTg62QL7o=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
gtk4
|
||||
libadwaita
|
||||
];
|
||||
|
||||
|
||||
postInstall = ''
|
||||
install -D --mode=444 $src/${pname}.desktop $out/share/applications/${pname}.desktop
|
||||
install -D --mode=444 $src/${pname}.svg $out/share/pixmaps/${pname}.svg
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small, simple calculator written in rust/gtk4";
|
||||
homepage = "https://github.com/DashieTM/OxiCalc";
|
||||
changelog = "https://github.com/DashieTM/OxiCalc/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxicalc";
|
||||
};
|
||||
}
|
||||
52
nix/fix/oxidash.nix
Normal file
52
nix/fix/oxidash.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxidash";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiDash";
|
||||
rev = "${version}";
|
||||
hash = "sha256-GVkmqwn3mHriMHUfEej4LW0MaYURqtsftC5L+Cox+5E=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-seFHiBht0vc+iqQw5bd22qVvdhCMqDthWuth3NTm8OY=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config glib ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
dbus
|
||||
gtk4
|
||||
gtk4-layer-shell
|
||||
libadwaita
|
||||
];
|
||||
|
||||
#postInstall = ''
|
||||
# install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
|
||||
# install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
|
||||
#'';
|
||||
|
||||
#passthru = {
|
||||
# updateScript = nix-update-script { };
|
||||
# tests.version = testers.testVersion { package = oxinoti; };
|
||||
#};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A work in progress notification daemon made with rust and gtk.";
|
||||
homepage = "https://github.com/DashieTM/OxiDash";
|
||||
changelog = "https://github.com/DashieTM/OxiDash/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxidash";
|
||||
};
|
||||
}
|
||||
51
nix/fix/oxinoti.nix
Normal file
51
nix/fix/oxinoti.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxinoti";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiNoti";
|
||||
rev = "${version}";
|
||||
hash = "sha256-XZMfJ2kUTd8+XiDgZFbG1sOPt37e4M+1rgp4Bdlej7s=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-jIdev6K5MQ8jASDo1KWU89rSLd9UhI2MhTT4l7pP+tA=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
dbus
|
||||
gtk3
|
||||
gtk-layer-shell
|
||||
];
|
||||
|
||||
#postInstall = ''
|
||||
# install -D --mode=444 $src/misc/ncspot.desktop $out/share/applications/${pname}.desktop
|
||||
# install -D --mode=444 $src/images/logo.svg $out/share/icons/hicolor/scalable/apps/${pname}.png
|
||||
#'';
|
||||
|
||||
#passthru = {
|
||||
# updateScript = nix-update-script { };
|
||||
# tests.version = testers.testVersion { package = oxinoti; };
|
||||
#};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A work in progress notification daemon made with rust and gtk.";
|
||||
homepage = "https://github.com/DashieTM/OxiNoti";
|
||||
changelog = "https://github.com/DashieTM/OxiNoti/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxinoti";
|
||||
};
|
||||
}
|
||||
42
nix/fix/oxipaste.nix
Normal file
42
nix/fix/oxipaste.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxipaste";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiPaste";
|
||||
rev = "${version}";
|
||||
hash = "sha256-2copt808b4cpmE8HO2H960xLs7OegvOUYYS/6z7fNMk=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-RXaL5y0hohP9VJ7IJCEfdJjyxwY2l555xSwRa9ZiNKc=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
dbus
|
||||
gtk4
|
||||
libadwaita
|
||||
gtk4-layer-shell
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A work in progress notification daemon made with rust and gtk.";
|
||||
homepage = "https://github.com/DashieTM/OxiPaste";
|
||||
changelog = "https://github.com/DashieTM/OxiPaste/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxipaste";
|
||||
};
|
||||
}
|
||||
41
nix/fix/oxishut.nix
Normal file
41
nix/fix/oxishut.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
let
|
||||
toolchain = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.minimal);
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oxishut";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DashieTM";
|
||||
repo = "OxiShut";
|
||||
rev = "${version}";
|
||||
hash = "sha256-aCNnNxmIHq+IjjviWNGSHfdXT55s367GTAeQoaTZ/KA=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-UeoBSHwMGfhkgRT7kmelcG3/omtB03Wh4IZrTy3yf3Y=";
|
||||
|
||||
nativeBuildInputs = with pkgs;[ pkg-config glib ];
|
||||
|
||||
buildInputs = with pkgs;[
|
||||
gtk4
|
||||
libadwaita
|
||||
gtk4-layer-shell
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "";
|
||||
homepage = "https://github.com/DashieTM/OxiShut";
|
||||
changelog = "https://github.com/DashieTM/OxiShut/releases/tag/${version}";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ DashieTM ];
|
||||
mainProgram = "oxishut";
|
||||
};
|
||||
}
|
||||
|
|
@ -33,23 +33,27 @@
|
|||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
overlays = [
|
||||
# because allowing rust nightly is too hard by default....
|
||||
(import (fetchTarball { url = "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"; sha256 = "sha256:06al2zlkyf14pz0i0q0ah18ygijra8l5qwd8rnm1bp9l6g8gp5zk"; }))
|
||||
];
|
||||
};
|
||||
base_imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
./base/default.nix
|
||||
./programs
|
||||
];
|
||||
in
|
||||
#inputs.flake-parts.lib.mkFlake { inherit inputs; }
|
||||
{
|
||||
#imports = [
|
||||
#];
|
||||
#homeConfigurations."marmo" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
# inherit pkgs;
|
||||
# modules = [
|
||||
# ./hardware/marmo/default.nix
|
||||
# ./programs
|
||||
# ];
|
||||
#};
|
||||
homeConfigurations."marmo" = inputs.home-manager.lib.homeManagerConfiguration {
|
||||
specialArgs = {
|
||||
inherit inputs pkgs;
|
||||
mod = ./hardware/overheating/base_config.nix;
|
||||
};
|
||||
modules = [
|
||||
./hardware/marmo/default.nix
|
||||
];
|
||||
};
|
||||
nixosConfigurations."overheating" = inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs pkgs;
|
||||
|
|
@ -57,7 +61,6 @@
|
|||
};
|
||||
modules = [
|
||||
./hardware/overheating/default.nix
|
||||
./programs
|
||||
];
|
||||
};
|
||||
nixosConfigurations."spaceship" = inputs.nixpkgs.lib.nixosSystem {
|
||||
|
|
@ -69,7 +72,6 @@
|
|||
./hardware/spaceship/default.nix
|
||||
./hardware/streamdeck.nix
|
||||
./programs/gaming/default.nix
|
||||
./programs
|
||||
] ++ base_imports;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
1
nix/hardware/marmo/base_config.nix
Normal file
1
nix/hardware/marmo/base_config.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
|
|
@ -1 +1 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }: { }
|
||||
{}
|
||||
|
|
|
|||
|
|
@ -1,78 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# WARNING: Simply change this for each config
|
||||
networking.hostName = "overheating";
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Zurich";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
xkb.layout = "us";
|
||||
xkb.variant = "";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
XDG_CACHE_HOME = "$HOME/.cache";
|
||||
DIRENV_LOG_FORMAT = "";
|
||||
};
|
||||
|
||||
# allows user change later on
|
||||
users.mutableUsers = true;
|
||||
users.users.dashie = {
|
||||
isNormalUser = true;
|
||||
description = "dashie";
|
||||
extraGroups = [ "networkmanager" "wheel" "gamemode" ];
|
||||
packages = with pkgs; [
|
||||
home-manager
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
# this password will only last for the first login
|
||||
# e.g. login, then change to whatever else, this also ensures no public hash is available
|
||||
password = "firstlogin";
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
builders-use-substitutes = true;
|
||||
# substituters to use
|
||||
substituters = [
|
||||
"https://anyrun.cachix.org"
|
||||
];
|
||||
|
||||
trusted-public-keys = [
|
||||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "unstable";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,82 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||
# amd doesn't let you set high performance otherwhise .....
|
||||
boot.kernelParams = [
|
||||
"amdgpu.ppfeaturemask=0xffffffff"
|
||||
];
|
||||
|
||||
# WARNING: Simply change this for each config
|
||||
networking.hostName = "spaceship";
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Zurich";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
xkb.layout = "us";
|
||||
xkb.variant = "";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
XDG_CACHE_HOME = "$HOME/.cache";
|
||||
DIRENV_LOG_FORMAT = "";
|
||||
};
|
||||
|
||||
# allows user change later on
|
||||
users.mutableUsers = true;
|
||||
users.users.dashie = {
|
||||
isNormalUser = true;
|
||||
description = "dashie";
|
||||
extraGroups = [ "networkmanager" "wheel" "gamemode" ];
|
||||
packages = with pkgs; [
|
||||
home-manager
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
# this password will only last for the first login
|
||||
# e.g. login, then change to whatever else, this also ensures no public hash is available
|
||||
password = "firstlogin";
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
builders-use-substitutes = true;
|
||||
# substituters to use
|
||||
substituters = [
|
||||
"https://anyrun.cachix.org"
|
||||
];
|
||||
|
||||
trusted-public-keys = [
|
||||
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "unstable";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let callPackage = lib.callPackageWith (pkgs);
|
||||
in
|
||||
{
|
||||
manual = {
|
||||
html.enable = false;
|
||||
|
|
@ -40,6 +43,24 @@
|
|||
zenith
|
||||
nh
|
||||
amberol
|
||||
(callPackage
|
||||
../fix/ncspot.nix
|
||||
{ })
|
||||
(callPackage
|
||||
../fix/oxinoti.nix
|
||||
{ })
|
||||
(callPackage
|
||||
../fix/oxidash.nix
|
||||
{ })
|
||||
(callPackage
|
||||
../fix/oxicalc.nix
|
||||
{ })
|
||||
(callPackage
|
||||
../fix/oxipaste.nix
|
||||
{ })
|
||||
(callPackage
|
||||
../fix/oxishut.nix
|
||||
{ })
|
||||
];
|
||||
|
||||
home.username = "dashie";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ in
|
|||
];
|
||||
};
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.dashie.imports = [
|
||||
{
|
||||
_module = { args = { inherit inputs; }; };
|
||||
|
|
|
|||
|
|
@ -24,5 +24,6 @@
|
|||
kooha
|
||||
hyprcursor
|
||||
hyprpaper
|
||||
hyprpicker
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,40 +1,38 @@
|
|||
{
|
||||
xdg.configFile."ncspot/config.toml" = {
|
||||
text = ''
|
||||
notify = true
|
||||
shuffle = true
|
||||
cover_max_scale = 2
|
||||
audio_cache_size = 50000
|
||||
initial_screen = "library"
|
||||
library_tabs = ["playlists"]
|
||||
[theme]
|
||||
background = "#1a1b26"
|
||||
primary = "#c0caf5"
|
||||
secondary = "#1a1b26"
|
||||
title = "#e0af68"
|
||||
playing = "#7dcfff"
|
||||
playing_selected = "#73daca"
|
||||
playing_bg = "#1a1b26"
|
||||
highlight = "#73daca"
|
||||
highlight_bg = "#1a1b26"
|
||||
error = "#c0caf5"
|
||||
error_bg = "#f7768e"
|
||||
statusbar = "#24283b"
|
||||
statusbar_progress = "#73daca"
|
||||
statusbar_bg = "#7dcfff"
|
||||
|
||||
cmdline_bg = "#24283b"
|
||||
search_match = "#bb9af7"
|
||||
|
||||
[keybindings]
|
||||
"j" = "move left 1"
|
||||
"k" = "move down 1"
|
||||
"l" = "move up 1"
|
||||
";" = "move right 1"
|
||||
|
||||
[notification_format]
|
||||
title = "%artists"
|
||||
body = "%title"
|
||||
'';
|
||||
{ pkgs, ... }: {
|
||||
xdg.configFile."ncspot/config.toml".source = (pkgs.formats.toml { }).generate "ncspot" {
|
||||
notify = true;
|
||||
shuffle = true;
|
||||
cover_max_scale = 2;
|
||||
initial_screen = "library";
|
||||
library_tabs = [ "playlists" ];
|
||||
theme = {
|
||||
background = "#1a1b26";
|
||||
primary = "#9aa5ce";
|
||||
secondary = "#414868";
|
||||
title = "#9ece6a";
|
||||
playing = "#7aa2f7";
|
||||
playing_selected = "#bb9af7";
|
||||
playing_bg = "#24283b";
|
||||
highlight = "#c0caf5";
|
||||
highlight_bg = "#24283b";
|
||||
error = "#414868";
|
||||
error_bg = "#f7768e";
|
||||
statusbar = "#ff9e64";
|
||||
statusbar_progress = "#7aa2f7";
|
||||
statusbar_bg = "#1a1b26";
|
||||
cmdline = "#c0caf5";
|
||||
cmdline_bg = "#24283b";
|
||||
search_match = "#f7768e";
|
||||
};
|
||||
keybindings = {
|
||||
"j" = "move left 1";
|
||||
"k" = "move down 1";
|
||||
"l" = "move up 1";
|
||||
";" = "move right 1";
|
||||
};
|
||||
notification_format = {
|
||||
title = "%artists";
|
||||
body = "%title";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
libreoffice-fresh
|
||||
pdftk
|
||||
# spotify
|
||||
ncspot
|
||||
#ncspot
|
||||
# video editing
|
||||
kdenlive
|
||||
# image creation
|
||||
|
|
|
|||
|
|
@ -5,6 +5,14 @@ let
|
|||
disabled_colors=#ff6d728d, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ff6d728d, #ff6d728d, #ff6d728d, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ff6d728d, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ff6d728d, #ff6d728d
|
||||
inactive_colors=#ff6d728d, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ff6d728d, #ff6d728d, #ff6d728d, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ff6d728d, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ff6d728d, #ff6d728d
|
||||
'';
|
||||
qss = ''
|
||||
QTabBar::tab:selected {
|
||||
color: palette(highlight);
|
||||
}
|
||||
QMenuBar, QMenu, QToolBar, QStatusBar, QFrame, QScrollBar {
|
||||
border: none;
|
||||
}
|
||||
'';
|
||||
in
|
||||
{
|
||||
xdg.configFile."qt5ct/colors/tokyonight.conf" = {
|
||||
|
|
@ -14,15 +22,10 @@ in
|
|||
text = "${color}";
|
||||
};
|
||||
xdg.configFile."qt5ct/qss/tab.qss" = {
|
||||
text =
|
||||
''
|
||||
QTabBar::tab:selected {
|
||||
color: palette(highlight);
|
||||
}
|
||||
QMenuBar, QMenu, QToolBar, QStatusBar, QFrame, QScrollBar {
|
||||
border: none;
|
||||
}
|
||||
'';
|
||||
text = "${qss}";
|
||||
};
|
||||
xdg.configFile."qt6ct/qss/tab.qss" = {
|
||||
text = "${qss}";
|
||||
};
|
||||
xdg.configFile."qt5ct/qt5ct.conf" = {
|
||||
text =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue