Merge branch 'main' of github.com:ooks-io/nix

This commit is contained in:
ooks-io 2024-02-20 22:10:56 +13:00
commit 1688264d04
21 changed files with 317 additions and 184 deletions

View file

@ -4,6 +4,7 @@
./nixIndex
./git
./tools
./ssh
];
options.homeModules.console.utility = {
@ -13,6 +14,9 @@
git = {
enable = lib.mkEnableOption "Enable git + tools";
};
ssh = {
enable = lib.mkEnableOption "Enable various console ssh";
};
tools = {
enable = lib.mkEnableOption "Enable various console tools";
};

View file

@ -19,7 +19,7 @@
home.packages = with pkgs; [
git-credential-1password
lazygit
];
];
};
}

View file

@ -0,0 +1,20 @@
{ lib, config, ... }:
let
cfg = config.homeModules.console.utility.ssh;
in
{
config = lib.mkIf cfg.enable {
programs.ssh = {
enable = true;
extraConfig = /* config */''
Host *
IdentitiesOnly=yes
IdentityAgent "~/.1password/agent.sock"
'';
};
};
}

View file

@ -1 +1,15 @@
{ lib, ... }:
{
imports = [
./slippi
];
options.homeModules.desktop.gaming = {
slippi = {
enable = lib.mkEnableOption "Enable Slippi home module";
};
};
}

View file

@ -0,0 +1,18 @@
{ inputs, config, lib, ... }:
let
cfg = config.homeModules.desktop.gaming.slippi;
in
{
imports = [
inputs.ssbm-nix.homeManagerModule
];
config = lib.mkIf cfg.enable {
ssbm = {
slippi-launcher.enable = true;
};
};
}

View file

@ -26,6 +26,9 @@ in
hyprland = {
enable = lib.mkEnableOption "Enable the hyprland profile";
};
gaming = {
enable = lib.mkEnableOption "Enable the gaming profile";
};
};
};

View file

@ -0,0 +1,18 @@
{ config, lib, ... }:
let
cfg = config.profiles.gaming;
in
{
imports = [
../../modules
];
config = lib.mkIf cfg.enable {
homeModules.desktop = {
gaming = {
slippi.enable = true;
};
};
};
}

View file

@ -5,7 +5,7 @@
../../../profile
];
activeProfiles = ["base" "hyprland"];
activeProfiles = ["base" "hyprland" ];
home.sessionVariables.HN = "ooksdesk";

View file

@ -0,0 +1,23 @@
{ inputs, outputs, config, ... }:
{
imports = [
../../../profile
];
activeProfiles = ["base" "hyprland"];
home.sessionVariables.HN = "ooksmicro";
monitors = [{
name = "DSI-1";
width = 720;
height = 1280;
workspace = "1";
primary = true;
transform = 3;
}];
colorscheme = inputs.nix-colors.colorSchemes.gruvbox-material-dark-soft;
}