Initial commit
This commit is contained in:
15
profiles/default.nix
Normal file
15
profiles/default.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ self, impurity, inputs, ... }: {
|
||||
home-manager = {
|
||||
verbose = true;
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "bak";
|
||||
extraSpecialArgs = {
|
||||
inherit inputs self impurity;
|
||||
};
|
||||
|
||||
users = {
|
||||
sadorowo = ./hulk;
|
||||
};
|
||||
};
|
||||
}
|
27
profiles/hulk/default.nix
Normal file
27
profiles/hulk/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
username = "sadorowo";
|
||||
homeDirectory = "/home/${username}";
|
||||
in {
|
||||
imports = [
|
||||
./packages.nix # Packages to install
|
||||
./programs.nix # Programs to enable
|
||||
./files.nix # Files to create
|
||||
./theme.nix # System-wide/GTK theme
|
||||
];
|
||||
|
||||
home = {
|
||||
inherit username homeDirectory;
|
||||
sessionVariables = {
|
||||
NIXPKGS_ALLOW_UNFREE = "1";
|
||||
NIXPKGS_ALLOW_INSECURE = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
TZ = "Europe/Warsaw";
|
||||
LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH";
|
||||
};
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "24.11"; # DO NOT change this unless you know what you're doing!
|
||||
}
|
6
profiles/hulk/files.nix
Normal file
6
profiles/hulk/files.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
xdg.configFile."gtk-3.0/settings.ini".text = ''
|
||||
[Settings]
|
||||
gtk-icon-theme-name=Adwaita
|
||||
'';
|
||||
}
|
76
profiles/hulk/fish/default.nix
Normal file
76
profiles/hulk/fish/default.nix
Normal file
@ -0,0 +1,76 @@
|
||||
{
|
||||
imports = [
|
||||
./starship.nix
|
||||
./nix-index.nix
|
||||
];
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting
|
||||
'';
|
||||
shellAliases = {
|
||||
".." = "cd ..";
|
||||
"..." = "cd ../..";
|
||||
"...." = "cd ../../../";
|
||||
"....." = "cd ../../../../";
|
||||
|
||||
"cp" = "cp -v";
|
||||
"ddf" = "df -h";
|
||||
"etc" = "erd -H";
|
||||
"mkdir" = "mkdir -p";
|
||||
"mv" = "mv -v";
|
||||
"rm" = "rm -v";
|
||||
"rr" = "rm -rf";
|
||||
|
||||
"neofetch" = "fastfetch";
|
||||
};
|
||||
|
||||
shellAbbrs = {
|
||||
gaa = "git add -A";
|
||||
ga = "git add";
|
||||
gbd = "git branch --delete";
|
||||
gb = "git branch";
|
||||
gc = "git commit";
|
||||
gcm = "git commit -m";
|
||||
gcob = "git checkout -b";
|
||||
gco = "git checkout";
|
||||
gd = "git diff";
|
||||
gl = "git log";
|
||||
gp = "git push";
|
||||
gs = "git status";
|
||||
};
|
||||
|
||||
functions = {
|
||||
webcopy = ''
|
||||
function webcopy
|
||||
set -l domain (string trim $argv)
|
||||
wget --recursive \
|
||||
--level 5 \
|
||||
--no-clobber \
|
||||
--page-requisites \
|
||||
--adjust-extension \
|
||||
--span-hosts \
|
||||
--convert-links \
|
||||
--domains $domain \
|
||||
--no-parent \
|
||||
$domain
|
||||
end
|
||||
'';
|
||||
|
||||
venv = ''
|
||||
function venv
|
||||
source .venv/bin/activate.fish
|
||||
end
|
||||
'';
|
||||
|
||||
thunderbird = ''
|
||||
if pgrep -x birdtray > /dev/null
|
||||
birdtray -s
|
||||
else
|
||||
birdtray &
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
6
profiles/hulk/fish/nix-index.nix
Normal file
6
profiles/hulk/fish/nix-index.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.nix-index = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
}
|
6
profiles/hulk/fish/starship.nix
Normal file
6
profiles/hulk/fish/starship.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
}
|
71
profiles/hulk/packages.nix
Normal file
71
profiles/hulk/packages.nix
Normal file
@ -0,0 +1,71 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
ddt4all = pkgs.stdenv.mkDerivation {
|
||||
name = "ddt4all";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "cedricp";
|
||||
repo = "ddt4all";
|
||||
rev = "master";
|
||||
sha256 = "sha256-EX7cobgxM8/o4cRmfMMDSYG9X9Av6zmoWlSv1nzfl5o=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgs.git ];
|
||||
buildInputs = [ pkgs.stdenv.cc.cc.lib ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/DDT4ALL
|
||||
cp -r * $out/DDT4ALL
|
||||
'';
|
||||
};
|
||||
in {
|
||||
imports = [ inputs.ags.homeManagerModules.default ];
|
||||
home = {
|
||||
activation.ddt4all = pkgs.lib.mkAfter ''
|
||||
if [ ! -d "$HOME/DDT4ALL" ]; then
|
||||
cp -r ${ddt4all}/DDT4ALL $HOME/DDT4ALL
|
||||
fi
|
||||
'';
|
||||
packages = with pkgs; [
|
||||
hyprland hyprlock hypridle hyprshot wl-clipboard cliphist swww
|
||||
lxqt.lxqt-policykit
|
||||
stdenv.cc.cc.lib
|
||||
|
||||
(python3.withPackages (py: with py; [
|
||||
pywayland
|
||||
]))
|
||||
|
||||
(birdtray.overrideAttrs (_: {
|
||||
cmakeFlags = [ "-DOPT_THUNDERBIRD_CMDLINE=${thunderbird}/bin/thunderbird" ];
|
||||
}))
|
||||
|
||||
jq
|
||||
bluez
|
||||
dconf
|
||||
starship
|
||||
firefox-beta-bin
|
||||
thunderbird-bin
|
||||
fluffychat
|
||||
libreoffice-qt6-fresh
|
||||
gimp
|
||||
vscodium git nodejs
|
||||
fprintd
|
||||
cups
|
||||
fish
|
||||
anydesk
|
||||
fastfetch
|
||||
greetd.greetd greetd.tuigreet
|
||||
playerctl
|
||||
adwaita-icon-theme
|
||||
darkman
|
||||
android-tools
|
||||
filezilla
|
||||
bitwarden-desktop
|
||||
davinci-resolve
|
||||
mpv
|
||||
wget
|
||||
sshfs
|
||||
];
|
||||
};
|
||||
}
|
||||
|
32
profiles/hulk/programs.nix
Normal file
32
profiles/hulk/programs.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./fish ];
|
||||
programs.ags = {
|
||||
enable = true;
|
||||
extraPackages = with inputs.ags.packages.${pkgs.system}; [
|
||||
apps battery bluetooth greet hyprland mpris network notifd powerprofiles tray wireplumber
|
||||
] ++ [
|
||||
pkgs.fzf pkgs.icon-library
|
||||
];
|
||||
};
|
||||
|
||||
services.darkman = {
|
||||
enable = true;
|
||||
darkModeScripts = {
|
||||
gtk-theme = ''
|
||||
${pkgs.dconf}/bin/dconf write\
|
||||
/org/gnome/desktop/interface/color-scheme "'prefer-dark'"
|
||||
'';
|
||||
};
|
||||
lightModeScripts = {
|
||||
gtk-theme = ''
|
||||
${pkgs.dconf}/bin/dconf write\
|
||||
/org/gnome/desktop/interface/color-scheme "'prefer-light'"
|
||||
'';
|
||||
};
|
||||
settings = {
|
||||
usegeoclue = true;
|
||||
};
|
||||
};
|
||||
}
|
36
profiles/hulk/theme.nix
Normal file
36
profiles/hulk/theme.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
let
|
||||
nerdfonts = (pkgs.nerdfonts.override {
|
||||
fonts = [
|
||||
"CascadiaCode"
|
||||
"JetBrainsMono"
|
||||
"FiraCode"
|
||||
"SpaceMono"
|
||||
];
|
||||
});
|
||||
|
||||
cursor-theme = "Bibata-Modern-Classic";
|
||||
cursor-pkg = pkgs.bibata-cursors;
|
||||
in
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
adw-gtk3
|
||||
material-symbols
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
bibata-cursors
|
||||
];
|
||||
sessionVariables = {
|
||||
XCURSOR_THEME = cursor-theme;
|
||||
XCURSOR_SIZE = "24";
|
||||
};
|
||||
pointerCursor = {
|
||||
package = cursor-pkg;
|
||||
name = cursor-theme;
|
||||
size = 24;
|
||||
gtk.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user