diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-12 11:23:58 -0400 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-12 11:24:13 -0400 | 
| commit | 57de4ede0cef89c04a3728e4f8c97f67ce771eff (patch) | |
| tree | d183069bc9b8f93f429763ec35e1beb5abd8bc4c /modules | |
| parent | 607c7626001ba1ba4f0b8b4b4b774b508143cab5 (diff) | |
generalize server
Diffstat (limited to '')
| -rw-r--r-- | modules/compromyse.nix | 1 | ||||
| -rw-r--r-- | modules/git/cgit.nix | 4 | ||||
| -rw-r--r-- | modules/git/git.nix | 9 | ||||
| -rw-r--r-- | modules/git/user.nix (renamed from modules/git/compromyse.nix) | 5 | 
4 files changed, 5 insertions, 14 deletions
| diff --git a/modules/compromyse.nix b/modules/compromyse.nix index e8484c8..0c4b2a0 100644 --- a/modules/compromyse.nix +++ b/modules/compromyse.nix @@ -4,6 +4,7 @@    users.users.compromyse = {      hashedPassword = "$y$j9T$sLByWUVQIl0D6AzHKpVat/$VAsX7YK1NCy2H4XxhVTKdkhWXHuzdMMHq6tC4liH879";      isNormalUser = true; +    openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDljZ44cNtYqvpeGuUsMRekkjiyaCLraX7GHp2BJGyhvUnCpVz7I5K6SGQ92vnEdkbQpUEs29Cw5RTYTKDXcn1zyl7fi/jLWVLgV3Apc7dbJvhQOTfxB24D5EuOR+3nZFtR1C89VNiB55ahqoBAxGMxr9GkOaKplruT1u+UOAW7wRwCGWoC7ySuVRnEoquWsv3ZHZhxTgmM6b8wnOk9K/to0JY51fbZ56OXcUKRUNkq4QzVMWEhWEpOuSFeufOewCjUIcMQkWzjG3XiqF7gBGnNqbvPlWOB3iLbAdOGBfkAxFlzTBGzwNEGWV39AMWHA1dRBKeETo5sHACsorpIQ3IHR3uHz3YccqhzOBqERqU419ioLdHSQt7uXS54AvZ7ZAMm/RZBeFdupT2dhfOdmvY/2ZHHEuP55A3GExlthaFR+SPKc1q/MhtX/+hBhtkPH+RMP/WPgPbXBCLVdL/ul/vGk8CGCFeKAVrexmz5q+5xax/gDIKfS3ynoMCrWxoto2U= raghus2247@gmail.com" ];      # openssh.authorizedKeys.keys = [];      extraGroups = [ "wheel" "video" "storage" "input" "plugdev" "libvirtd" "docker" "kvm" "lp" ];    }; diff --git a/modules/git/cgit.nix b/modules/git/cgit.nix index cd29b82..56a9b76 100644 --- a/modules/git/cgit.nix +++ b/modules/git/cgit.nix @@ -18,10 +18,12 @@ in {      settings = {        root-title = "compromyse: CGIT";        root-desc = "Compromyse's Git Repositories"; -      root-readme = "README.md"; + +      repository-sort = "age";        enable-commit-graph = true;        enable-follow-links = true; +      section-from-path = true;        source-filter = "${cgit}/lib/cgit/filters/syntax-highlighting.py";        about-filter = "${cgit}/lib/cgit/filters/about-formatting.sh"; diff --git a/modules/git/git.nix b/modules/git/git.nix deleted file mode 100644 index 9888dba..0000000 --- a/modules/git/git.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ lib, ... }: - -{ -  environment.etc."gitconfig".text = " -    [safe] -    directory = * -  "; -} - diff --git a/modules/git/compromyse.nix b/modules/git/user.nix index 41596d1..797b452 100644 --- a/modules/git/compromyse.nix +++ b/modules/git/user.nix @@ -1,11 +1,8 @@  { config, ... }:  { -  users.users.compromyse = { -    initialPassword = "testing"; +  users.users.git = {      isNormalUser = true;      openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDljZ44cNtYqvpeGuUsMRekkjiyaCLraX7GHp2BJGyhvUnCpVz7I5K6SGQ92vnEdkbQpUEs29Cw5RTYTKDXcn1zyl7fi/jLWVLgV3Apc7dbJvhQOTfxB24D5EuOR+3nZFtR1C89VNiB55ahqoBAxGMxr9GkOaKplruT1u+UOAW7wRwCGWoC7ySuVRnEoquWsv3ZHZhxTgmM6b8wnOk9K/to0JY51fbZ56OXcUKRUNkq4QzVMWEhWEpOuSFeufOewCjUIcMQkWzjG3XiqF7gBGnNqbvPlWOB3iLbAdOGBfkAxFlzTBGzwNEGWV39AMWHA1dRBKeETo5sHACsorpIQ3IHR3uHz3YccqhzOBqERqU419ioLdHSQt7uXS54AvZ7ZAMm/RZBeFdupT2dhfOdmvY/2ZHHEuP55A3GExlthaFR+SPKc1q/MhtX/+hBhtkPH+RMP/WPgPbXBCLVdL/ul/vGk8CGCFeKAVrexmz5q+5xax/gDIKfS3ynoMCrWxoto2U= raghus2247@gmail.com" ]; -    extraGroups = [ "wheel" ];    }; -  security.sudo.wheelNeedsPassword = false;  } | 
