hopefully the last complete restructure of this repo
This commit is contained in:
16
system-config/programs/ags/default.nix
Normal file
16
system-config/programs/ags/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
options.sysconfig.opts.ags.enable = lib.options.mkOption {
|
||||
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.ags.enable {
|
||||
services = {
|
||||
upower.enable = true;
|
||||
gvfs.enable = true;
|
||||
power-profiles-daemon.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
23
system-config/programs/flake.nix
Normal file
23
system-config/programs/flake.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
description = "System program config";
|
||||
|
||||
inputs = {
|
||||
|
||||
hyprland.url = "./hyprland";
|
||||
};
|
||||
|
||||
outputs = { self, ... }@inputs: {
|
||||
|
||||
module = { config, lib, pkgs, ... }: {
|
||||
|
||||
imports = [
|
||||
inputs.hyprland.module
|
||||
./ags
|
||||
./git
|
||||
./nh
|
||||
./steam
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
17
system-config/programs/git/default.nix
Normal file
17
system-config/programs/git/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ config, lib, ... }: {
|
||||
|
||||
options.sysconfig.opts.git.enable = lib.options.mkOption {};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.git.enable {
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
config = {
|
||||
user = {
|
||||
name = "blaknull";
|
||||
email = "nathanblunkall5@gmail.com";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
39
system-config/programs/hyprland/flake.nix
Normal file
39
system-config/programs/hyprland/flake.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
description = "Hyprland Config";
|
||||
|
||||
inputs = {
|
||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||
};
|
||||
|
||||
outputs = { self, ... }@inputs: {
|
||||
|
||||
module = { config, lib, pkgs, ... }: {
|
||||
|
||||
options.sysconfig.opts.hyprland.enable = lib.options.mkOption {
|
||||
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.hyprland.enable {
|
||||
|
||||
sysconfig.opts.sddm.enable = lib.mkDefault true;
|
||||
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
|
||||
xwayland.enable = true;
|
||||
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
21
system-config/programs/nh/default.nix
Normal file
21
system-config/programs/nh/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ config, lib, ... }: {
|
||||
|
||||
options.sysconfig.opts.nh.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.nh.enable {
|
||||
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
flake = "/home/nathan/Projects/System";
|
||||
|
||||
clean = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
extraArgs = "--keep 5 --keep-since 3d";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
system-config/programs/steam/default.nix
Normal file
14
system-config/programs/steam/default.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, lib, ... }: {
|
||||
|
||||
options.sysconfig.opts.steam.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.steam.enable {
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user