home: move around things a bit

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-01 16:57:00 +05:30
parent 48e46b465f
commit 684b9a41cc
12 changed files with 61 additions and 50 deletions

View File

@@ -1,6 +1,6 @@
{ lib, ... }: { lib, ... }:
{ {
options.natto.laptop = lib.mkOption { options.isLaptop = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;
example = true; example = true;

View File

@@ -1,4 +1,4 @@
{ config, ... }: { ... }:
{ {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
@@ -8,7 +8,7 @@
size = 30000; size = 30000;
save = size; save = size;
}; };
enableAutosuggestions = true; autosuggestion.enable = true;
enableCompletion = true; enableCompletion = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
prezto = { prezto = {

View File

@@ -1,8 +1,8 @@
{ self, inputs, globalArgs, ... }: { self, inputs, globalArgs, ... }:
let let
commonModules = [ common = [
./modules/zsh.nix ./common/zsh.nix
./modules/programs.nix ./common/programs.nix
globalArgs globalArgs
]; ];
@@ -22,15 +22,15 @@ in
nattoModules = [ nattoModules = [
./natto ./natto
./modules/laptop.nix ./common/laptop.nix
inputs.hyprland.homeManagerModules.default inputs.hyprland.homeManagerModules.default
inputs.agenix.homeManagerModules.default inputs.agenix.homeManagerModules.default
] ++ commonModules; ] ++ common;
in in
{ {
natto-laptop = inputs.home-manager.lib.homeManagerConfiguration { natto-laptop = inputs.home-manager.lib.homeManagerConfiguration {
modules = nattoModules ++ [ modules = nattoModules ++ [
{ natto.laptop = true; } { isLaptop = true; }
]; ];
pkgs = mkPkgs "x86_64-linux"; pkgs = mkPkgs "x86_64-linux";
}; };
@@ -50,7 +50,7 @@ in
username = "spark"; username = "spark";
stateVersion = "23.05"; stateVersion = "23.05";
}; };
}] ++ commonModules; }] ++ common;
pkgs = self.legacyPackages.aarch64-linux; pkgs = self.legacyPackages.aarch64-linux;
}; };
@@ -61,7 +61,7 @@ in
username = "bat"; username = "bat";
stateVersion = "23.05"; stateVersion = "23.05";
}; };
}] ++ commonModules; }] ++ common;
pkgs = self.legacyPackages.x86_64-linux; pkgs = self.legacyPackages.x86_64-linux;
}; };
@@ -72,7 +72,7 @@ in
username = "spin"; username = "spin";
stateVersion = "23.05"; stateVersion = "23.05";
}; };
}] ++ commonModules; }] ++ common;
pkgs = self.legacyPackages.x86_64-linux; pkgs = self.legacyPackages.x86_64-linux;
}; };
}; };

View File

@@ -9,16 +9,16 @@
imports = [ imports = [
./email.nix ./email.nix
./programs.nix ./programs.nix
./eww
# ./xsession.nix # ./xsession.nix
./wayland.nix ./wayland.nix
./pkgs.nix ./pkgs.nix
./stuff.nix ./stuff.nix
./emacs.nix #./emacs.nix
./gtk.nix ./gtk.nix
./dunst.nix ./dunst.nix
./git.nix ./git.nix
./music.nix ./music.nix
./zsh.nix ./zsh.nix
./games.nix
]; ];
} }

View File

@@ -2,7 +2,7 @@
{ {
programs.eww = { programs.eww = {
enable = true; enable = true;
package = pkgs.eww-wayland; package = pkgs.eww;
configDir = lib.cleanSourceWith { configDir = lib.cleanSourceWith {
src = ./.; src = ./.;
filter = name: _: filter = name: _:
@@ -22,8 +22,22 @@
let let
deps = [ deps = [
config.programs.eww.package config.programs.eww.package
] ++ lib.optional
config.wayland.windowManager.hyprland.enable
config.wayland.windowManager.hyprland.package config.wayland.windowManager.hyprland.package
] ++ (import ./bar pkgs); ++ (with pkgs; [
coreutils
bash
jq
less
gawk
socat
playerctl
networkmanager
iwgtk
wireplumber
])
++ lib.optional config.laptop pkgs.light;
in in
{ {
Type = "simple"; Type = "simple";

14
home/natto/games.nix Normal file
View File

@@ -0,0 +1,14 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
# Wine and games and stuff
wineWowPackages.stable
steam
winetricks
# lutris
# inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin
];
programs.mangohud.enable = true;
}

View File

@@ -18,7 +18,8 @@ in
}; };
mpd-discord-rpc = { mpd-discord-rpc = {
inherit (mpd) enable; # inherit (mpd) enable;
enable = false;
settings = { settings = {
id = 1039532008424099850; # dont really care id = 1039532008424099850; # dont really care
format = { format = {
@@ -37,8 +38,6 @@ in
host = "localhost"; host = "localhost";
}; };
}; };
playerctld.enable = true;
}; };
systemd.user.services = { systemd.user.services = {
@@ -68,12 +67,12 @@ in
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
playerctl
mpc_cli
(ncmpcpp.override { (ncmpcpp.override {
visualizerSupport = true; visualizerSupport = true;
clockSupport = true; clockSupport = true;
}) })
mpc_cli
playerctl
(tauon.override { (tauon.override {
withDiscordRPC = true; withDiscordRPC = true;
}) })
@@ -83,6 +82,10 @@ in
source = ./config/ncmpcpp/config; source = ./config/ncmpcpp/config;
target = "${config.xdg.configHome}/ncmpcpp/config"; target = "${config.xdg.configHome}/ncmpcpp/config";
}; };
sessionVariables = {
# LV2_PATH = lib.makeSearchPath "lib/lv2" (with pkgs; [ calf ]);
};
}; };
age.secrets.mpdasrc = { age.secrets.mpdasrc = {

View File

@@ -1,7 +1,6 @@
{ config, flake, inputs, pkgs, ... }: { flake, pkgs, config, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
# A/V, codec and media stuff # A/V, codec and media stuff
ffmpeg-full ffmpeg-full
wireplumber wireplumber
@@ -18,20 +17,12 @@
p7zip p7zip
unrar unrar
vim vim
jmtpfs (flake.packages.${system}.customscripts)
(flake.packages.${pkgs.system}.customscripts)
translate-shell
powertop
cachix cachix
undervolt
w3m
steam-run steam-run
# GUI utils # GUI utils
slack slack
(discord.override {
nss = nss_latest;
})
webcord webcord
(xfce.thunar.override { (xfce.thunar.override {
thunarPlugins = with xfce; [ thunarPlugins = with xfce; [
@@ -44,21 +35,9 @@
xfce.tumbler xfce.tumbler
qbittorrent qbittorrent
hexchat hexchat
luajit
dunst dunst
authy
gnome.zenity gnome.zenity
# Wine and games and stuff
lutris
wineWowPackages.stable
steam
lutris
winetricks
flake.packages.${pkgs.system}.tlauncher
mangohud
# inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin
# Programming and dev stuff # Programming and dev stuff
(texlive.combine { (texlive.combine {
inherit (texlive) inherit (texlive)
@@ -83,16 +62,14 @@
tcolorbox; tcolorbox;
}) })
python3Packages.pygments python3Packages.pygments
inform7
ghc
nodejs
rust-bin.nightly.latest.default
openjdk
# Misc # Misc
anki anki
tor-browser-bundle-bin tor-browser-bundle-bin
mailcap mailcap
libsForQt5.qtstyleplugins libsForQt5.qtstyleplugins
] ++ lib.optionals config.isLaptop [
powertop
undervolt
]; ];
} }

Binary file not shown.

View File

@@ -19,7 +19,6 @@
}; };
sessionVariables = { sessionVariables = {
LV2_PATH = lib.makeSearchPath "lib/lv2" (with pkgs; [ calf ]);
QT_X11_NO_MITSHM = "1"; QT_X11_NO_MITSHM = "1";
HM_CONF_DIR = "/etc/nixos"; HM_CONF_DIR = "/etc/nixos";
QT_QPA_PLATFORMTHEME = "gtk2"; QT_QPA_PLATFORMTHEME = "gtk2";

View File

@@ -1,5 +1,9 @@
{ pkgs, config, conf, inputs, ... }: { pkgs, config, conf, inputs, ... }:
{ {
imports = [
# ./eww
];
wayland = { wayland = {
windowManager = { windowManager = {
sway = { sway = {