This commit is contained in:
joy 2024-10-04 18:30:45 +02:00
parent 478d0de3a9
commit 9819da5c5e
38 changed files with 46 additions and 85 deletions

View file

@ -1,4 +1,4 @@
{...}: {
{
networking.hostName = "desktop";
services.hardware.openrgb.enable = true;
hardware.amdgpu.opencl.enable = true;

View file

@ -4,7 +4,6 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -1,4 +1,4 @@
{...}: {
{
networking.hostName = "laptop";
# services.xserver.desktopManager.gnome.enable = true;

View file

@ -1,13 +1,6 @@
{
config,
lib,
pkgs,
...
}: {
# Simply install just the packages
{pkgs, ...}: {
environment.packages = with pkgs; [
# User-facing stuff that you really really want to have
vim # or some other editor, e.g. nano or neovim
vim
zsh
fish
font-awesome
@ -16,19 +9,15 @@
ffmpeg
yt-dlp
lazygit
# toybox
unixtools.ping
cowsay
# Some common stuff that people expect to have
procps
# killall
openssh_hpn
git
diffutils
findutils
utillinux
tzdata
# hostname
man
gnugrep
gnupg
@ -41,18 +30,14 @@
unzip
];
# Backup etc files instead of failing to activate generation if a file already exists in /etc
environment.etcBackupExtension = ".bak";
# Read the changelog before changing this value
system.stateVersion = "24.05";
# Set up nix for flakes
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
# Set your time zone
time.timeZone = "Europe/Berlin";
home-manager.config = {
@ -61,8 +46,6 @@
imports = [
./home
];
# config = ./home.nix;
};
user.shell = "${pkgs.zsh}/bin/zsh";

View file

@ -1,4 +1,4 @@
{inputs, ...}: {
{
imports = [
./zsh
./git

View file

@ -1,4 +1,4 @@
{...}: {
{
programs.git = {
enable = true;
userEmail = "mail@joygnu.org";

View file

@ -1,4 +1,4 @@
{...}: {
{
programs.helix = {
enable = true;
defaultEditor = true;

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{
programs.zsh = {
enable = true;
enableCompletion = true;
@ -16,12 +16,5 @@
history.size = 1000000;
history.path = ".config/zsh/history";
oh-my-zsh = {
enable = true;
plugins = [
# "history-substring-search"
];
};
};
}

View file

@ -1,4 +1,4 @@
{...}: {
{
home-manager.users.joy.programs.git = {
enable = true;
userEmail = "mail@joygnu.org";

View file

@ -1,4 +1,4 @@
{...}: {
{
home-manager.users.joy.programs.newsboat = {
enable = true;
browser = "firefox";

View file

@ -1,4 +1,4 @@
{...}: {
{
services.openssh = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
{
home-manager.users.joy.programs.git = {
enable = true;
userEmail = "mail@joygnu.org";

View file

@ -1,4 +1,4 @@
{...}: {
{
services.openssh = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
{
home-manager.users.joy.programs.firefox = {
enable = true;
profiles.joy = {

View file

@ -3,7 +3,6 @@
./suyu
./steam
./norisk
./mangohud
./mics
];
}

View file

@ -1,3 +0,0 @@
{...}: {
home-manager.users.joy.programs.mangohud.enable = true;
}

View file

@ -3,6 +3,7 @@
prismlauncher
zulu17
dolphin-emu
mangohud
lutris-free
];
}

View file

@ -1,4 +1,4 @@
{...}: {
{
home-manager.users.joy.programs.mpv = {
enable = true;
bindings = {

View file

@ -1,4 +1,4 @@
{...}: {
{
services.blueman.enable = true;
hardware.bluetooth.enable = true;
}

View file

@ -1,3 +1,3 @@
{...}: {
{
boot.loader.systemd-boot.enable = true;
}

View file

@ -1,5 +1,6 @@
{
imports = [
./powerkey
./bluetooth
./sound
./boot

View file

@ -0,0 +1,3 @@
{
services.logind.powerKey = "suspend";
}

View file

@ -1,4 +1,4 @@
{...}: {
{
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {

View file

@ -1,4 +1,4 @@
{...}: {
{
virtualisation.docker.rootless.enable = true;
virtualisation.docker.enable = true;
users.users.joy.extraGroups = ["docker"];

View file

@ -1,4 +1,4 @@
{...}: {
{
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;

View file

@ -1,4 +1,4 @@
{...}: {
{
services.invidious = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
{
services.devmon.enable = true;
services.udisks2.enable = true;
services.printing.enable = true;

View file

@ -1,4 +1,4 @@
{...}: {
{
services = {
syncthing = {
enable = true;

View file

@ -1,4 +1,4 @@
{...}: {
{
services.devmon.enable = true;
services.udisks2.enable = true;
services.gvfs.enable = true;

View file

@ -1,4 +1,4 @@
{...}: {
{
imports = [
./user
./homemanger

View file

@ -1,4 +1,4 @@
{...}: {
{
home-manager = {
backupFileExtension = "bkp";
users.joy = {

View file

@ -1,6 +1,5 @@
{...}: {
{
nix.settings.experimental-features = ["nix-command" "flakes"];
time.timeZone = "Europe/Zurich";
system.stateVersion = "23.11";
services.logind.powerKey = "suspend";
}

View file

@ -1,3 +1,3 @@
{...}: {
{
networking.networkmanager.enable = true;
}

View file

@ -1,4 +1,4 @@
{...}: {
{
users.users.joy = {
isNormalUser = true;
description = "joy";

View file

@ -1,4 +1,4 @@
{...}: {
{
home-manager.users.joy.xdg = {
desktopEntries = {
hx = {
@ -20,7 +20,7 @@
};
};
userDirs = {
enable = false;
enable = true;
desktop = "~/media/pic/screen";
download = "~/dl";
};

View file

@ -1,8 +1,8 @@
{ pkgs, ... }: {
{pkgs, ...}: {
programs.hyprland = {
enable = true;
};
home-manager.users.joy = {
wayland.windowManager.hyprland = {
enable = true;
@ -16,10 +16,6 @@
"HYPRCURSOR_THEME = Bibata-Modern-Ice"
"HYPRCURSOR_SIZE = 24"
"NIXOS_OZONE_WL = 1"
"QT_QPA_PLATFORM=wayland;xcb"
"QT_QPA_PLATFORMTHEME = qt5ct"
"QT_AUTO_SCREEN_SCALE_FACTOR = 1"
"QT_WAYLAND_DISABLE_WINDOWDECORATION =1"
];
xwayland = {
force_zero_scaling = true;
@ -32,10 +28,8 @@
exec-once = [
"ags"
];
windowrule = [
];
windowrulev2 = [
"float,:title:^(mpv)(.*)$"
"float,:title:^(mpv)(.*)$"
"float,title:(Pipewire)"
"float,title:(Disks)"
"float,title:(Calculator)"
@ -85,7 +79,7 @@
"$mod, Z, exec, sh $sciPath/screen.sh"
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
"$mod, O, exec, sh $sciPath/mpv.sh"
"$mod+Shift, TAB,hyprexpo:expo, toggleoverview"
"$mod+Shift, TAB,hyprexpo:expo, toggleoverview"
# controls
"$mod, Q, killactive"
"$mod, W, togglefloating"
@ -96,7 +90,7 @@
"$mod+shift, B, exec, sh $sciPath/ags.sh"
"$mod, up, exec, sh $sciPath/volume.sh -i"
"$mod, down, exec, sh $sciPath/volume.sh -d"
"$mod, P, exec, hyprctl dispatch togglefloating active; hyprctl dispatch pin active; hyprctl dispatch resizeactive 800 600; hyprctl dispatch movewindowpixel exact 0 100%-600"
"$mod, P, exec, hyprctl dispatch togglefloating active; hyprctl dispatch pin active; hyprctl dispatch resizeactive -100000 -10000; hyprctl dispatch movewindowpixel exact 0 100%-600"
# cmus
"$mod, D, exec, sh $sciPath/cmus.sh"
@ -159,7 +153,7 @@
};
plugins = with pkgs.hyprlandPlugins; [
hyprexpo
];
];
};
};
}

View file

@ -10,9 +10,4 @@ in {
iconTheme.package = gruvboxPlus;
iconTheme.name = "GruvboxPlus";
};
# qt.enable = true;
# qt.style.name = "adwaita-dark";
# qt.style.package = pkgs.adwaita-qt;
# qt.platformTheme.name = "adwaita";
}

View file

@ -1,10 +1,8 @@
{ pkgs, ... }:
let backgroundUrl = "https://wallpapers.joygnu.org/wallpapers/anime/ghibli-japanese-walled-garden.png";
{pkgs, ...}: let
backgroundUrl = "https://wallpapers.joygnu.org/wallpapers/anime/ghibli-japanese-walled-garden.png";
backgroundSha256 = "sha256-10Lv25V0RG0mnw/O90DeVchCNWJbdktUADtuI+enEwM=";
in
{
stylix = {
in {
stylix = {
enable = true;
base16Scheme = {
@ -50,5 +48,4 @@ in
};
};
};
}