fixing a LOT of typos

This commit is contained in:
Chris Kruining 2024-07-22 13:03:19 +02:00
parent 795bb17857
commit b183b789b4
25 changed files with 57 additions and 65 deletions

View file

@ -22,9 +22,9 @@
import pkgs {
inherit system;
config.allowUnfree = true;
overlays = extraOverlays ++ (lib.attrValues self.overlays);
overlays = extraOverlays;
};
pkgs = mkPkgs nixpkgs [self.overlays.default];
pkgs = mkPkgs nixpkgs [];
pkgs-unstable = mkPkgs nixpkgs-unstable [];
lib = nixpkgs.lib.extend (final: prev: {
@ -48,21 +48,5 @@
nixosConfigurations = mapHosts ./hosts {};
devShells."${system}".default = import ./shell.nix { inherit lib pkgs; };
# nixosConfigurations = {
# pc = nixpkgs.lib.nixosSystem {
# specialArgs = {inherit inputs;};
# modules = [
# ./hosts/pc/default.nix
# inputs.home-manager.nixosModules.default
# inputs.stylix.nixosModules.stylix
# ];
# };
# };
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ config, options, lib, pkgs, ... }:
let
inherit (lib.modules) mkIf;
in
@ -9,7 +9,7 @@ in
enable = mkEnableOption "Rust developmnt";
};
config = mkIf conf.modules.programs.enable {
config = mkIf config.modules.programs.enable {
};
}

View file

Before

Width:  |  Height:  |  Size: 183 KiB

After

Width:  |  Height:  |  Size: 183 KiB

Before After
Before After

View file

@ -10,7 +10,7 @@ in
xdg.enable = mkEnableOption "XDG-related conf" // { default = true; };
};
config = mkIf conf.modules.develop.xdg.enable {
config = mkIf config.modules.develop.xdg.enable {
};
}

View file

@ -1,4 +1,4 @@
{ config, options, lib, pkgs, ... }:
{ inputs, config, options, lib, pkgs, ... }:
let
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf mkMerge;
@ -12,7 +12,7 @@ in
};
config = mkMerge [
(mkIf config.modules.develop.rust.enable (
(mkIf config.modules.develop.rust.enable {
nixpkgs.overlays = [ inputs.rust.overlays.default ];
user.packages = attrValues {
@ -24,7 +24,7 @@ in
rs = "rustc";
ca = "cargo";
};
))
})
(mkIf config.modules.develop.cdg.enable {
env = {

View file

@ -1,30 +0,0 @@
{ ... }:
{
home.file.".netrc".text = ''
login root
password KaasIsAwesome!
'';
systemd.user = {
services.nextcloud-autosync = {
Unit = {
Description = "Automatic nextcloud sync";
After = "network-online.target";
};
Service = {
Type = "simple";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n --path /var/music /home/chris/Music https://cloud.kruining.eu";
TimeoutStopSec = "180";
KillMode = "process";
KillSignal = "SIGINT";
};
Install.WantedBy = [ "multi-user.target" ];
};
timers.nextcloud-autosync = {
Unit.Description = "Automatic nextcloud sync";
Timer.OnBootSec = "5min";
Timer.OnUnitActiveSec = "60min";
Install.WantedBy = [ "multi-user.target" "timers.target" ];
};
};
}

View file

@ -9,11 +9,9 @@ in
enable = mkEnableOption "Media auth";
};
config = mkMerge [
(mkIf config.modules.services.auth.enable (
environment.systemPackages = with pkgs; [
authelia
];
))
];
config = mkIf config.modules.services.auth.enable {
environment.systemPackages = with pkgs; [
authelia
];
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ config, options, lib, pkgs, ... }:
let
inherit (lib.modules) mkIf;
in

View file

@ -0,0 +1,41 @@
{ config, options, lib, pkgs, ... }:
let
inherit (lib.modules) mkIf;
in
{
options.modules.services.nextcloud = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "Nextcloud";
};
config = mkIf config.modules.services.nextcloud.enable {
home.file.".netrc".text = ''
login root
password KaasIsAwesome!
'';
systemd.user = {
services.nextcloud-autosync = {
Unit = {
Description = "Automatic nextcloud sync";
After = "network-online.target";
};
Service = {
Type = "simple";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n --path /var/music /home/chris/Music https://cloud.kruining.eu";
TimeoutStopSec = "180";
KillMode = "process";
KillSignal = "SIGINT";
};
Install.WantedBy = [ "multi-user.target" ];
};
timers.nextcloud-autosync = {
Unit.Description = "Automatic nextcloud sync";
Timer.OnBootSec = "5min";
Timer.OnUnitActiveSec = "60min";
Install.WantedBy = [ "multi-user.target" "timers.target" ];
};
};
};
}

View file

@ -27,7 +27,6 @@ in
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history = {
size = 10000;

View file

@ -15,7 +15,7 @@ in
config = mkIf cfg.enable {
user.packages = attrValues {
inherit (pkgs) easyeffects
inherit (pkgs) easyeffects;
};
security.rtkit.enable = true;

View file

@ -1,4 +1,4 @@
{}:
{ config, options, lib, pkgs, ... }:
{
boot.loader.systemd-boot-enable = true;