add restruct2

This commit is contained in:
cnst
2024-06-27 18:18:19 +02:00
parent 81e269fade
commit 82a4545886
20 changed files with 81 additions and 15 deletions

36
home/core/adam.nix Normal file
View File

@@ -0,0 +1,36 @@
{ pkgs, ... }:
{
imports = [
./git
./hypr
./shell/adam.nix
./appearance
];
home.packages = with pkgs; [
# Desktop
alacritty
wl-clipboard
keepassxc
ranger
webcord
xfce.thunar
xfce.thunar-volman
xfce.thunar-archive-plugin
gnome.file-roller
wireguard-tools
wpa_supplicant
ntfs3g
kdePackages.polkit-kde-agent-1
networkmanagerapplet
htop
btop
pamixer
qbittorrent
fastfetch
waybar
nwg-look
thefuck
calcurse
gnome.adwaita-icon-theme
];
}

View File

@@ -0,0 +1,29 @@
{ pkgs, config, ... }:
{
imports = [ ./gtk.nix ];
xdg = {
userDirs = {
enable = true;
createDirectories = true;
desktop = "${config.home.homeDirectory}/desktop";
documents = "${config.home.homeDirectory}/documents";
download = "${config.home.homeDirectory}/downloads";
music = "${config.home.homeDirectory}/media/music";
pictures = "${config.home.homeDirectory}/media/images";
publicShare = "${config.home.homeDirectory}/documents/share";
templates = "${config.home.homeDirectory}/documents/templates";
videos = "${config.home.homeDirectory}/media/videos";
};
portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
};
dconf = {
settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
};
}

View File

@@ -0,0 +1,23 @@
{ pkgs, ... }:
{
home.pointerCursor = {
name = "Adwaita";
package = pkgs.gnome.adwaita-icon-theme;
size = 24;
};
gtk = {
enable = true;
theme = {
package = pkgs.orchis-theme;
name = "Orchis-Grey-Dark-Compact";
};
iconTheme = {
package = pkgs.gruvbox-plus-icons;
name = "Gruvbox-Plus-Dark";
};
font = {
name = "FiraCode Nerd Font Light";
size = 11;
};
};
}

37
home/core/cnst.nix Normal file
View File

@@ -0,0 +1,37 @@
{ pkgs, ... }:
{
imports = [
./git
./hypr
./shell/cnst.nix
./appearance
];
home.packages = with pkgs; [
# Desktop
alacritty
wl-clipboard
keepassxc
ranger
webcord
xfce.thunar
xfce.thunar-volman
xfce.thunar-archive-plugin
gnome.file-roller
wireguard-tools
wpa_supplicant
ntfs3g
kdePackages.polkit-kde-agent-1
networkmanagerapplet
htop
btop
pamixer
virt-manager
qbittorrent
fastfetch
waybar
nwg-look
thefuck
calcurse
gnome.adwaita-icon-theme
];
}

View File

@@ -0,0 +1,7 @@
{
programs.git = {
enable = true;
userName = "cnst";
userEmail = "cnst@cana.st";
};
}

View File

@@ -0,0 +1,54 @@
{
lib,
config,
pkgs,
...
}:
{
imports = [ ../mako ];
xdg.portal =
let
hyprland = config.wayland.windowManager.hyprland.package;
xdph = pkgs.xdg-desktop-portal-hyprland.override { inherit hyprland; };
in
{
extraPortals = [ xdph ];
configPackages = [ hyprland ];
};
home.packages = with pkgs; [
grimblast
slurp
hyprpicker
swaybg
tofi
gnome.gnome-calculator
];
home.sessionVariables = {
BROWSER = "firefox";
MOZ_ENABLE_WAYLAND = 1;
NIXOS_OZONE_WL = 1;
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
LIBSEAT_BACKEND = "logind";
};
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
xwayland.enable = true;
extraConfig = ''
${builtins.readFile ./hyprland.conf}
'';
systemd = {
enable = true;
extraCommands = [
"systemctl --user stop graphical-session.target"
"systemctl --user start hyprland-session.target"
];
};
};
}

View File

@@ -0,0 +1,7 @@
# HYPRLAND CONFIGURATION
source=./land/appearance.conf
source=./land/inputs.conf
source=./land/keybinds.conf
source=./land/rules.conf
source=./land/startup.conf

35
home/core/shell/adam.nix Normal file
View File

@@ -0,0 +1,35 @@
{ config, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
nixconfig = "cd /home/adam/.nix-config/";
ll = "ls -l";
nixupdate = "sudo nixos-rebuild switch --flake .#adampad";
flakeupdate = "nix flake update";
};
history = {
size = 1000;
path = "${config.xdg.dataHome}/zsh/history";
};
oh-my-zsh = {
enable = true;
plugins = [
"git"
"thefuck"
];
theme = "robbyrussell";
};
initExtra = ''
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
eval $(thefuck --alias)
eval $(thefuck --alias FUCK)
eval "$(zellij setup --generate-auto-start zsh)"
'';
};
}

35
home/core/shell/cnst.nix Normal file
View File

@@ -0,0 +1,35 @@
{ config, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
nixconfig = "cd /home/cnst/.nix-config/";
ll = "ls -l";
nixupdate = "sudo nixos-rebuild switch -v --show-trace --flake .#cnix";
flakeupdate = "nix flake update";
};
history = {
size = 1000;
path = "${config.xdg.dataHome}/zsh/history";
};
oh-my-zsh = {
enable = true;
plugins = [
"git"
"thefuck"
];
theme = "robbyrussell";
};
initExtra = ''
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
eval $(thefuck --alias)
eval $(thefuck --alias FUCK)
eval "$(zellij setup --generate-auto-start zsh)"
'';
};
}