This commit is contained in:
Adithya 2023-07-11 22:41:18 +05:30
parent f95aae3f8b
commit 9571db9cac
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
30 changed files with 33 additions and 31 deletions

View file

@ -7,10 +7,12 @@
in {
users.mutableUsers = false;
users.users = {
root.hashedPassword = user.root.hashedPassword;
root = {
inherit (user.root) hashedPassword;
};
"${user.primary.userName}" = {
uid = 1000;
hashedPassword = user.primary.hashedPassword;
inherit (user.primary) hashedPassword;
description = user.primary.realName;
isNormalUser = true;
extraGroups = ["docker" "libvirtd" "networkmanager" "tss" "wheel"];

View file

@ -1,4 +1,4 @@
{...}: {
_: {
imports = [./programs ./services ./wm ./gtk.nix ./persistence.nix];
home.stateVersion = "23.11";

View file

@ -1,4 +1,4 @@
{...}: {
_: {
home.persistence."/persist/home" = {
allowOther = true;
directories = [

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.aria2 = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.bat = {
enable = true;
config = {

View file

@ -1,4 +1,4 @@
{...}: {
_: {
xdg.desktopEntries."btop" = {
name = "btop++";
exec = "btop";

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.direnv = {
enable = true;
nix-direnv.enable = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.exa = {
enable = true;
enableAliases = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.gpg = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.starship = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.yt-dlp = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
_: {
imports = [
./aria2c.nix
./gpg-agent.nix

View file

@ -1,4 +1,4 @@
{...}: {
_: {
services = {
gpg-agent = {
enable = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
services.kanshi = {
enable = true;
systemdTarget = "graphical-session.target";

View file

@ -1,4 +1,4 @@
{...}: {
_: {
virtualisation.oci-containers.containers."adtya.xyz" = {
image = "ghcr.io/adtya/adtya.xyz:latest";
ports = ["3000:80"];

View file

@ -1,4 +1,4 @@
{...}: {
_: {
fileSystems."/" = {
device = "/dev/disk/by-partlabel/NIXOS_ROOT";
fsType = "btrfs";

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.neovim = {
enable = true;
defaultEditor = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.starship = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs = {
zsh = {
enable = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
security = {
apparmor = {
enable = true;

View file

@ -1,7 +1,7 @@
{secrets, ...}: {
services.caddy = {
enable = true;
email = secrets.caddy_config.email;
inherit (secrets.caddy_config) email;
virtualHosts."proofs.adtya.xyz" = {
extraConfig = ''

View file

@ -3,7 +3,7 @@
secrets,
...
}: let
frp_config = secrets.frp_config;
inherit (secrets) frp_config;
in {
systemd.services.frpc = {
enable = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
services.openssh = {
enable = true;
settings = {

View file

@ -1,4 +1,4 @@
{...}: {
_: {
fileSystems = {
"/" = {
device = "/dev/vg0/system";

View file

@ -1,4 +1,4 @@
{...}: {
_: {
environment.persistence."/persist/system" = {
hideMounts = true;
directories = [

View file

@ -1,4 +1,4 @@
{...}: {
_: {
imports = [
./gnupg.nix
./neovim.nix

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.gnupg.agent = {
enable = true;
enableExtraSocket = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
programs.neovim = {
enable = true;
defaultEditor = true;

View file

@ -1,4 +1,4 @@
{...}: {
_: {
boot.initrd.systemd.services.rollback = {
description = "Rollback root subvolume to blank state";
wantedBy = ["initrd.target"];

View file

@ -1,4 +1,4 @@
{...}: {
_: {
services.pipewire = {
enable = true;
alsa.enable = true;