Significant progress
This commit is contained in:
1 parent
f80047be52
commit
5f66c1c631
28 files changed
+264
-102
No files matched your search
@@ -42,7 +42,7 @@ in {
|
||||
<home-manager/nixos>
|
||||
|
||||
# Import system wide configuration required for user modules
|
||||
./systemwide/waylock.nix
|
||||
./modules/systemwide/default.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
{ input, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
# Set the state version
|
||||
home.stateVersion = "24.05";
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Import all modules
|
||||
./desktop/default.nix
|
||||
./discord/default.nix
|
||||
./feishin/default.nix
|
||||
./firefox/default.nix
|
||||
./obsidian/default.nix
|
||||
./shell/bash.nix
|
||||
./shell/fish.nix
|
||||
./steam/default.nix
|
||||
./theming/default.nix
|
||||
./vscode/default.nix
|
||||
./winbox/default.nix
|
||||
./zathura/default.nix
|
||||
|
||||
# Import unfree helper
|
||||
../../unfree/default.nix
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.discord;
|
||||
in {
|
||||
options.modules.discord = {
|
||||
enable = mkEnableOption "discord";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
modules.unfree.allowedPackages = [ "discord" ];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
discord
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,11 +1,14 @@
|
||||
{config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.obsidian;
|
||||
in {
|
||||
options.modules.obsidian.enable = lib.mkEnableOption "obsidian";
|
||||
options.modules.obsidian = {
|
||||
enable = mkEnableOption "obsidian";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
obsidian
|
||||
];
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{config, lib, pkgs, ... }:
|
||||
|
||||
with lib; {
|
||||
options.modules.steam = {
|
||||
enable = mkEnableOption "steam";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Import systemwide configuration files.
|
||||
./river.nix
|
||||
./steam.nix
|
||||
./waylock.nix
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
enabled = any (user: user.modules.river.enable) (attrValues config.home-manager.users);
|
||||
in {
|
||||
config = mkIf enabled {
|
||||
programs.river.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
enabled = any (user: user.modules.steam.enable) (attrValues config.home-manager.users);
|
||||
in {
|
||||
config = mkIf enabled {
|
||||
programs.steam.enable = true;
|
||||
};
|
||||
}
|
||||
File renamed without changes.
@@ -6,6 +6,8 @@ in {
|
||||
options.modules.vscode.enable = lib.mkEnableOption "vscode";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
modules.unfree.allowedPackages = [ "vscode" ];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
vscode
|
||||
];
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.winbox;
|
||||
in {
|
||||
options.modules.winbox = {
|
||||
enable = mkEnableOption "winbox";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
modules.unfree.allowedPackages = [ "winbox" ];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
winbox
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user