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 { in {
users.mutableUsers = false; users.mutableUsers = false;
users.users = { users.users = {
root.hashedPassword = user.root.hashedPassword; root = {
inherit (user.root) hashedPassword;
};
"${user.primary.userName}" = { "${user.primary.userName}" = {
uid = 1000; uid = 1000;
hashedPassword = user.primary.hashedPassword; inherit (user.primary) hashedPassword;
description = user.primary.realName; description = user.primary.realName;
isNormalUser = true; isNormalUser = true;
extraGroups = ["docker" "libvirtd" "networkmanager" "tss" "wheel"]; extraGroups = ["docker" "libvirtd" "networkmanager" "tss" "wheel"];

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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