mwahahahaha, have the orome config building! on to manwe

This commit is contained in:
Chris Kruining 2025-03-18 21:06:40 +01:00
parent 3a2f52f45e
commit af58cfb4ab
30 changed files with 259 additions and 199 deletions

View file

@ -0,0 +1,22 @@
{ inputs, config, options, lib, pkgs, ... }:
let
inherit (lib.meta) getExe;
inherit (lib.modules) mkIf;
cfg = options.modules.desktop.editors.nvim;
in
{
imports = [
inputs.nvf.nixosModules.default
];
options.modules.desktop.editors.nvim = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "neo-vim (nixvim)";
};
config = mkIf cfg.enable {
};
}

View file

@ -27,7 +27,5 @@ in {
wifi.backend = "wpa_supplicant";
};
};
hm.services.network-manager-applet.enable = true;
};
}

View file

@ -11,34 +11,9 @@ in
in
{
user = mkOpt attrs {};
sneeuwvlok = {
dir = mkOpt path (findFirst pathExists (toString ../.) [
"${config.user.home}/Github/sneeuwvlok"
]);
hostDir = mkOpt path "${config.sneeuwvlok.dir}/hosts/${config.networking.hostName}";
configDir = mkOpt path "${config.sneeuwvlok.dir}/config";
modulesDir = mkOpt path "${config.sneeuwvlok.dir}/modules";
themesDir = mkOpt path "${config.sneeuwvlok.modulesDir}/themes";
};
};
config = {
# user = {
# name = "chris";
# description = "Chris Kruining";
# extraGroups = [ "wheel" ];
# isNormalUser = true;
# home = "/home/chris";
# group = "users";
# uid = 1000;
# };
# users.users.${config.user.name} = mkAliasDefinitions options.user;
# Temp solution...
# home-manager.users.${config.user.name}.home.stateVersion = "23.11";
nix.settings = let
inherit (lib) elem attrNames filterAttrs;

View file

@ -5,7 +5,5 @@ in
{
options.modules.services = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "Enable all services";
};
in {};
}

View file

@ -125,10 +125,7 @@ in
networking.firewall.allowedTCPPorts = [ 80 443 ];
modules.virtualisation = {
enable = true;
podman.enable = true;
};
modules.virtualisation.podman.enable = true;
virtualisation = {
oci-containers = {

View file

@ -1,6 +1,8 @@
{ config, options, lib, pkgs, ... }:
let
inherit (lib.modules) mkIf;
user = "nextcloud";
in
{
options.modules.services.nextcloud = let
@ -10,7 +12,14 @@ in
};
config = mkIf config.modules.services.nextcloud.enable {
home.file.".netrc".text = ''
users.users.${user} = {
name = user;
isSystemUser = true;
home = "/home/${user}";
group = user;
};
home-manager.users.${user}.home.file.".netrc".text = ''
login root
password KaasIsAwesome!
'';
@ -23,7 +32,7 @@ in
};
Service = {
Type = "simple";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n --path /var/music /home/chris/Music https://cloud.kruining.eu";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n --path /var/music /home/${user}/Music https://cloud.kruining.eu";
TimeoutStopSec = "180";
KillMode = "process";
KillSignal = "SIGINT";

View file

@ -0,0 +1,15 @@
{ config, options, lib, pkgs, ... }:
let
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf;
cfg = config.modules.shell;
in
{
options.modules.shell = let
inherit (lib.options) mkEnableOption;
in
{};
config = mkIf cfg.enable {};
}

View file

@ -0,0 +1,19 @@
{ config, options, lib, pkgs, ... }:
let
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf;
cfg = config.modules.shell.zsh;
in
{
options.modules.shell.zsh = let
inherit (lib.options) mkEnableOption;
in
{
enable = mkEnableOption "enable ZSH";
};
config = mkIf cfg.enable {
programs.zsh.enable = true;
};
}

View file

@ -0,0 +1,22 @@
{ inputs, config, options, lib, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.modules.theming;
in
{
imports = [
inputs.stylix.nixosModules.stylix
];
options.modules.theming = let
inherit (lib.options) mkEnableOption;
in
{
enable = mkEnableOption "enable theming";
};
config = mkIf cfg.enable {
};
}

View file

@ -6,7 +6,5 @@ in
options.modules.virtualisation = let
inherit (lib.options) mkEnableOption;
in
{
enable = mkEnableOption "enable virtualisation";
};
{};
}