fucking(refactored): everything
This commit is contained in:
16
nix/flake.lock
generated
16
nix/flake.lock
generated
@@ -738,6 +738,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-meow": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760558110,
|
||||||
|
"narHash": "sha256-mlVxLzq/q9gxhUFsTF47smxhDPheFiShVP9X1qPrlmw=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "2acc4cbc965397774f4d6c2c1dea70b416fecc8d",
|
||||||
|
"revCount": 13,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.scug.io/nikkuss/nix-meow.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.scug.io/nikkuss/nix-meow.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-warez": {
|
"nix-warez": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
@@ -973,6 +988,7 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||||
|
"nix-meow": "nix-meow",
|
||||||
"nix-warez": "nix-warez",
|
"nix-warez": "nix-warez",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"nixpkgs-gamescope": "nixpkgs-gamescope",
|
"nixpkgs-gamescope": "nixpkgs-gamescope",
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
nix-meow.url = "git+https://git.scug.io/nikkuss/nix-meow.git"; # config manager, meow'd
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
quickshell = {
|
quickshell = {
|
||||||
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
||||||
@@ -42,53 +43,47 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ nixpkgs, home-manager, ... }:
|
inputs@{
|
||||||
|
nixpkgs,
|
||||||
|
home-manager,
|
||||||
|
nix-meow,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
utils = nix-meow.lib.setup {
|
||||||
pkgs = import nixpkgs {
|
inherit (inputs) home-manager nixpkgs;
|
||||||
inherit system;
|
inherit inputs;
|
||||||
config = {
|
flakeRoot = ./.;
|
||||||
|
hostsFolder = ./hosts;
|
||||||
|
hardwaresFolder = ./hardwares;
|
||||||
|
modulesFolder = ./modules;
|
||||||
|
globalConfig = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
globalOverlays = [ ];
|
||||||
|
defaultUser = "doloro";
|
||||||
};
|
};
|
||||||
overlays = [ inputs.neovim-nightly-overlay.overlays.default ];
|
inherit (utils) mkHost;
|
||||||
|
configurations = [
|
||||||
|
(mkHost {
|
||||||
|
hardware = "doloro";
|
||||||
|
host = "doloro";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
stateVersion = "25.05";
|
||||||
|
nixpkgsConfig = {
|
||||||
|
rocmSupport = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
(mkHost {
|
||||||
|
hardware = "doloro-wsl";
|
||||||
|
host = "doloro-wsl";
|
||||||
|
system = "aarch64-linux";
|
||||||
|
stateVersion = "25.05";
|
||||||
|
nixpkgsConfig = {
|
||||||
|
rocmSupport = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{
|
(utils.deepMerge configurations);
|
||||||
homeConfigurations."doloro" = home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit inputs system;
|
|
||||||
};
|
|
||||||
modules = [ ./hosts/doloro/home.nix ];
|
|
||||||
};
|
|
||||||
homeConfigurations."doloro-wsl" = home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit inputs system;
|
|
||||||
};
|
|
||||||
modules = [ ./hosts/doloro-wsl/home.nix ];
|
|
||||||
};
|
|
||||||
nixosConfigurations.doloroo-main = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = {
|
|
||||||
inherit inputs system;
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./hosts/doloro/configuration.nix
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
inputs.disko.nixosModules.disko
|
|
||||||
{ nixpkgs.overlays = overlays; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
nixosConfigurations.doloroo-laptop-wsl = nixpkgs.lib.nixosSystem {
|
|
||||||
specialArgs = {
|
|
||||||
inherit inputs system;
|
|
||||||
};
|
|
||||||
modules = [
|
|
||||||
./hosts/doloro-wsl/configuration.nix
|
|
||||||
inputs.sops-nix.nixosModules.sops
|
|
||||||
inputs.disko.nixosModules.disko
|
|
||||||
{ nixpkgs.overlays = overlays; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
3
nix/hardwares/doloro-wsl/nixos.nix
Normal file
3
nix/hardwares/doloro-wsl/nixos.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
}
|
||||||
3
nix/hardwares/doloro/home.nix
Normal file
3
nix/hardwares/doloro/home.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
}
|
||||||
12
nix/hardwares/doloro/nixos.nix
Normal file
12
nix/hardwares/doloro/nixos.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./disks.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
boot.loader.grub.useOSProber = lib.mkOverride 0 false;
|
||||||
|
}
|
||||||
@@ -25,27 +25,4 @@
|
|||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
networking.firewall.trustedInterfaces = [ "eth0" ];
|
networking.firewall.trustedInterfaces = [ "eth0" ];
|
||||||
systemd.services.firewall.enable = lib.mkForce true;
|
systemd.services.firewall.enable = lib.mkForce true;
|
||||||
# modules = {
|
|
||||||
# users.enable = true;
|
|
||||||
# secrets.enable = true;
|
|
||||||
# sshserver.enable = true;
|
|
||||||
# nix-conf.enable = true;
|
|
||||||
# shell.enable = true;
|
|
||||||
# stylix.enable = true;
|
|
||||||
# hosting = {
|
|
||||||
# enable = false;
|
|
||||||
# networking = {
|
|
||||||
# publicInterface = "eth0";
|
|
||||||
# };
|
|
||||||
# stacks = {
|
|
||||||
# test = {
|
|
||||||
# config =
|
|
||||||
# { pkgs, ... }:
|
|
||||||
# {
|
|
||||||
# environment.systemPackages = with pkgs; [ fastfetch ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,24 +5,36 @@
|
|||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
# imports = [
|
||||||
../../modules/hyprland/home.nix
|
# ../../modules/hyprland/home.nix
|
||||||
../../modules/quickshell/home.nix
|
# ../../modules/quickshell/home.nix
|
||||||
../../modules/chromium/home.nix
|
# ../../modules/chromium/home.nix
|
||||||
#./modules/neovim/home.nix
|
# #./modules/neovim/home.nix
|
||||||
../../modules/stylix/home.nix
|
# ../../modules/stylix/home.nix
|
||||||
../../modules/nixvim/home.nix
|
# ../../modules/nixvim/home.nix
|
||||||
../../modules/tmux/home.nix
|
# ../../modules/tmux/home.nix
|
||||||
../../modules/theme/home.nix
|
# ../../modules/theme/home.nix
|
||||||
# ./modules/spicetify/home.nix
|
# # ./modules/spicetify/home.nix
|
||||||
../../modules/obs/home.nix
|
# ../../modules/obs/home.nix
|
||||||
../../modules/blender/home.nix
|
# ../../modules/blender/home.nix
|
||||||
../../modules/fish/home.nix
|
# ../../modules/fish/home.nix
|
||||||
../../modules/ytm/home.nix
|
# ../../modules/ytm/home.nix
|
||||||
../../overlays.nix
|
# ../../overlays.nix
|
||||||
];
|
# ];
|
||||||
|
modules = {
|
||||||
|
Hyprland.enable = true;
|
||||||
|
quickshell.enable = true;
|
||||||
|
chromium.enable = true;
|
||||||
|
nixvim.enable = true;
|
||||||
|
stylix.enable = true;
|
||||||
|
tmux.enable = true;
|
||||||
|
theme.enable = true;
|
||||||
|
obs.enable = true;
|
||||||
|
blender.enable = true;
|
||||||
|
fish.enable = true;
|
||||||
|
youtube-music.enable = true;
|
||||||
|
};
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
home.username = "doloro";
|
home.username = "doloro";
|
||||||
|
|||||||
@@ -4,22 +4,24 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
inputs,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
sops = inputs.sops-nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
inputs.sops-nix.nixosModules.sops
|
||||||
./hardware-configuration.nix
|
|
||||||
../../modules/greetd/nixos.nix
|
|
||||||
../../modules/stylix/nixos.nix
|
|
||||||
../../modules/steam/nixos.nix
|
|
||||||
../../modules/hyprland/nixos.nix
|
|
||||||
../../disks.nix
|
|
||||||
./overlays.nix
|
|
||||||
];
|
];
|
||||||
|
modules = {
|
||||||
|
greetd.enable = true;
|
||||||
|
stylix.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
|
Hyprland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
@@ -53,7 +55,7 @@
|
|||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ./secrets/users.yaml;
|
defaultSopsFile = ../../secrets/users.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
root-hashed_password = {
|
root-hashed_password = {
|
||||||
neededForUsers = true;
|
neededForUsers = true;
|
||||||
@@ -190,6 +192,7 @@
|
|||||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
wget
|
wget
|
||||||
killall
|
killall
|
||||||
|
sops
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
home,
|
home,
|
||||||
@@ -7,12 +9,18 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
blenderPkgs = inputs.nix-warez.packages.${system};
|
blenderPkgs = inputs.nix-warez.packages.${system};
|
||||||
|
cfg = config.modules.blender;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.modules.blender = {
|
||||||
|
enable = lib.mkEnableOption "Blender configuration module";
|
||||||
|
};
|
||||||
# whole blender config including addons is too fat to include here
|
# whole blender config including addons is too fat to include here
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
blenderPkgs.blender_4_5
|
blenderPkgs.blender_4_5
|
||||||
];
|
];
|
||||||
|
};
|
||||||
# nix'ing a blender config is most likely not possible
|
# nix'ing a blender config is most likely not possible
|
||||||
# could probs install blender addons through nix since they are fat fat mega fat to install TODO
|
# could probs install blender addons through nix since they are fat fat mega fat to install TODO
|
||||||
}
|
}
|
||||||
|
|||||||
4
nix/modules/chromium/default.nix
Normal file
4
nix/modules/chromium/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -1,13 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
cfg = config.modules.chromium;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.modules.chromium = {
|
||||||
|
enable = lib.mkEnableOption "Chromium";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions = [
|
extensions = [
|
||||||
@@ -21,4 +27,5 @@ in
|
|||||||
];
|
];
|
||||||
package = pkgs.chromium.override { enableWideVine = true; };
|
package = pkgs.chromium.override { enableWideVine = true; };
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
7
nix/modules/default.nix
Normal file
7
nix/modules/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
_:
|
||||||
|
builtins.listToAttrs (
|
||||||
|
map (fn: {
|
||||||
|
name = fn;
|
||||||
|
value = import ./${fn} { };
|
||||||
|
}) (builtins.filter (fn: fn != "default.nix") (builtins.attrNames (builtins.readDir ./.)))
|
||||||
|
)
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,7 +1,15 @@
|
|||||||
{ ... }:
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.modules.fish;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
options.modules.fish = {
|
||||||
|
enable = lib.mkEnableOption "Fish";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
home.shell.enableFishIntegration = true;
|
home.shell.enableFishIntegration = true;
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
_: {
|
_: {
|
||||||
nixos: ./nixos.nix;
|
# home = ./home.nix;
|
||||||
|
nixos = ./nixos.nix;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ in
|
|||||||
options.modules.greetd = {
|
options.modules.greetd = {
|
||||||
enable = lib.mkEnableOption "Greetd configuration module";
|
enable = lib.mkEnableOption "Greetd configuration module";
|
||||||
};
|
};
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
4
nix/modules/hyprland/default.nix
Normal file
4
nix/modules/hyprland/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
nixos = ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -1,6 +1,12 @@
|
|||||||
{ inputs, pkgs, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
|
cfg = config.modules.Hyprland;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -8,7 +14,10 @@ in
|
|||||||
./runner.nix
|
./runner.nix
|
||||||
./screenshot.nix
|
./screenshot.nix
|
||||||
];
|
];
|
||||||
wayland.windowManager.hyprland = {
|
options.modules.Hyprland = {
|
||||||
|
enable = lib.mkEnableOption "Hyprland";
|
||||||
|
};
|
||||||
|
config.wayland.windowManager.hyprland = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
# set the flake package
|
# set the flake package
|
||||||
# settings = { };
|
# settings = { };
|
||||||
@@ -17,8 +26,8 @@ in
|
|||||||
portalPackage =
|
portalPackage =
|
||||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||||
};
|
};
|
||||||
# todo, split this into its own module;
|
# TODO, split this into its own module;
|
||||||
programs.foot = {
|
config.programs.foot = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
{ inputs, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
config = {
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.modules.Hyprland;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.Hyprland = {
|
||||||
|
enable = lib.mkEnableOption "Hyprland";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
programs.xwayland.enable = true;
|
programs.xwayland.enable = true;
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
|
|
||||||
in
|
|
||||||
{
|
|
||||||
home.packages = [
|
|
||||||
inputs.neovim-nightly-overlay.packages.${pkgs.system}.default
|
|
||||||
];
|
|
||||||
xdg.configFile."nvim" = {
|
|
||||||
recursive = true;
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "/home/doloro/dotfiles/nvim";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
4
nix/modules/nixvim/default.nix
Normal file
4
nix/modules/nixvim/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos = ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -1,13 +1,25 @@
|
|||||||
{ inputs, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.modules.nixvim;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.nixvim = {
|
||||||
|
enable = lib.mkEnableOption "Nixvim";
|
||||||
|
};
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixvim.homeModules.nixvim
|
inputs.nixvim.homeModules.nixvim
|
||||||
./plugins
|
./plugins
|
||||||
];
|
];
|
||||||
home.packages = with pkgs; [
|
config.home.packages = with pkgs; [
|
||||||
nixfmt
|
nixfmt
|
||||||
];
|
];
|
||||||
programs.nixvim = {
|
config.programs.nixvim = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
colorschemes.tokyonight.enable = true;
|
colorschemes.tokyonight.enable = true;
|
||||||
|
|||||||
4
nix/modules/obs/default.nix
Normal file
4
nix/modules/obs/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -1,6 +1,18 @@
|
|||||||
{ inputs, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
programs = {
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.modules.obs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.obs = {
|
||||||
|
enable = lib.mkEnableOption "obs";
|
||||||
|
};
|
||||||
|
config.programs = lib.mkIf cfg.enable {
|
||||||
obs-studio = {
|
obs-studio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = (
|
package = (
|
||||||
|
|||||||
4
nix/modules/quickshell/default.nix
Normal file
4
nix/modules/quickshell/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -1,19 +1,24 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pkg = inputs.quickshell.packages.${system}.quickshell;
|
pkg = inputs.quickshell.packages.${system}.quickshell;
|
||||||
|
cfg = config.modules.quickshell;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.configFile."quickshell" = {
|
options.modules.quickshell = {
|
||||||
|
enable = lib.mkEnableOption "quickshell configuration module";
|
||||||
|
};
|
||||||
|
config.xdg.configFile."quickshell" = lib.mkIf cfg.enable {
|
||||||
recursive = true;
|
recursive = true;
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "/home/doloro/dotfiles/quickshell/";
|
source = config.lib.file.mkOutOfStoreSymlink "/home/doloro/dotfiles/quickshell/";
|
||||||
};
|
};
|
||||||
systemd.user.services.quickshell = {
|
config.systemd.user.services.quickshell = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Quickshell daemon";
|
Description = "Quickshell daemon";
|
||||||
After = [ "hyprland-session.target" ];
|
After = [ "hyprland-session.target" ];
|
||||||
|
|||||||
4
nix/modules/spicetify/default.nix
Normal file
4
nix/modules/spicetify/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -1,12 +1,22 @@
|
|||||||
{ inputs, pkgs, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||||
|
cfg = config.modules.spicetify;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.modules.spicetify = {
|
||||||
|
enable = lib.mkEnableOption "spicetify configuration module";
|
||||||
|
};
|
||||||
imports = [
|
imports = [
|
||||||
inputs.spicetify-nix.homeManagerModules.default
|
inputs.spicetify-nix.homeManagerModules.default
|
||||||
];
|
];
|
||||||
programs.spicetify = {
|
config.programs.spicetify = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
enabledExtensions = with spicePkgs.extensions; [
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
# home: ./home.nix;
|
||||||
|
nixos = ./nixos.nix;
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,8 +4,14 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.modules.steam;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
config = {
|
options.modules.steam = {
|
||||||
|
enable = lib.mkEnableOption "steam";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
|
|||||||
4
nix/modules/stylix/default.nix
Normal file
4
nix/modules/stylix/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
nixos = ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -9,12 +9,14 @@ let
|
|||||||
cfg = config.modules.stylix;
|
cfg = config.modules.stylix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.modules.stylix = {
|
||||||
|
enable = lib.mkEnableOption "stylix configuration module";
|
||||||
|
};
|
||||||
imports = [
|
imports = [
|
||||||
./shared.nix
|
./shared.nix
|
||||||
inputs.stylix.homeModules.stylix
|
inputs.stylix.homeModules.stylix
|
||||||
];
|
];
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
stylix.enable = true;
|
stylix.enable = true;
|
||||||
stylix.autoEnable = false; # honestly, fuck stylix;
|
stylix.autoEnable = false; # honestly, fuck stylix;
|
||||||
stylix.targets.gtk.enable = true;
|
stylix.targets.gtk.enable = true;
|
||||||
|
|||||||
@@ -9,12 +9,14 @@ let
|
|||||||
cfg = config.modules.stylix;
|
cfg = config.modules.stylix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.modules.stylix = {
|
||||||
|
enable = lib.mkEnableOption "stylix configuration module";
|
||||||
|
};
|
||||||
imports = [
|
imports = [
|
||||||
./shared.nix
|
./shared.nix
|
||||||
inputs.stylix.nixosModules.stylix
|
inputs.stylix.nixosModules.stylix
|
||||||
];
|
];
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
stylix.enable = true;
|
stylix.enable = true;
|
||||||
stylix.autoEnable = false; # honestly, fuck stylix;
|
stylix.autoEnable = false; # honestly, fuck stylix;
|
||||||
#stylix.targets.tmux.enable = false;
|
#stylix.targets.tmux.enable = false;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
_: {
|
_: {
|
||||||
home: ./home.nix
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,17 @@
|
|||||||
{ inputs, ... }:
|
|
||||||
{
|
{
|
||||||
services.dunst = {
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.modules.theme;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.theme = {
|
||||||
|
enable = lib.mkEnableOption "theme";
|
||||||
|
};
|
||||||
|
config.services.dunst = lib.mkIf cfg.enable {
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
font = "Noto Nerd Font 8";
|
font = "Noto Nerd Font 8";
|
||||||
|
|||||||
4
nix/modules/tmux/default.nix
Normal file
4
nix/modules/tmux/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -1,11 +1,19 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.modules.tmux;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.tmux = {
|
options.modules.tmux = {
|
||||||
|
enable = lib.mkEnableOption "tmux";
|
||||||
|
};
|
||||||
|
config.programs.tmux = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = with pkgs.tmuxPlugins; [
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
sensible
|
sensible
|
||||||
|
|||||||
0
nix/modules/ytm/a
Normal file
0
nix/modules/ytm/a
Normal file
4
nix/modules/ytm/default.nix
Normal file
4
nix/modules/ytm/default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
_: {
|
||||||
|
home = ./home.nix;
|
||||||
|
# nixos: ./nixos.nix;
|
||||||
|
}
|
||||||
@@ -1,6 +1,17 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.modules.youtube-music;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.youtube-music = {
|
||||||
|
enable = lib.mkEnableOption "youtube music";
|
||||||
|
};
|
||||||
|
config.home.packages = with pkgs; [
|
||||||
youtube-music
|
youtube-music
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user