Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 9, 2024
1 parent a486338 commit 90c5435
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 8 deletions.
102 changes: 102 additions & 0 deletions homes/x86_64-linux/bruddy@bruddynix/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
config,
lib,
namespace,
...
}:
let
inherit (lib.${namespace}) enabled disabled;
in
{
khanelinix = {
user = {
enable = true;
# inherit (config.snowfallorg.user) name;
name = "bruddy";
};

programs = {
graphical = {
browsers = {
firefox = {
gpuAcceleration = true;
hardwareDecoding = true;
settings = {
# "dom.ipc.processCount.webIsolated" = 9;
# "dom.maxHardwareConcurrency" = 16;
"media.av1.enabled" = false;
# "media.ffvpx.enabled" = false;
# "media.hardware-video-decoding.force-enabled" = true;
"media.hardwaremediakeys.enabled" = true;
};
};
};
};

terminal = {
media = {
ncmpcpp = disabled;
};
tools = {
git = {
enable = true;
};

run-as-service = enabled;

ssh = {
enable = true;

authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEpfTVxQKmkAYOrsnroZoTk0LewcBIC4OjlsoJY6QbB0"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBG8l3jQ2EPLU+BlgtaQZpr4xr97n2buTLAZTxKHSsD"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM7UBwfd7+K0mdkAIb2TE6RzMu6L4wZnG/anuoYqJMPB"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJAZIwy7nkz8CZYR/ZTSNr+7lRBW2AYy1jw06b44zaID"
];
};
};
};
};

services = {
mpd = {
musicDirectory = "nfs://austinserver.local/mnt/user/data/media/music";
};

# sops = {
# enable = true;
# defaultSopsFile = lib.snowfall.fs.get-file "secrets/khanelinix/khaneliman/default.yaml";
# sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ];
# };
};

system = {
xdg = enabled;
};

suites = {
art = enabled;
business = enabled;
common = enabled;
desktop = enabled;

development = {
enable = true;

gameEnable = true;
nixEnable = true;
};

emulation = enabled;
games = enabled;
music = enabled;
networking = enabled;
photo = enabled;
video = enabled;
};

theme.catppuccin = enabled;
};

home.stateVersion = "24.11";
}
4 changes: 2 additions & 2 deletions modules/nixos/services/openssh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ in
];

settings = {
AuthenticationMethods = "publickey";
# AuthenticationMethods = "publickey";
ChallengeResponseAuthentication = "no";
PasswordAuthentication = false;
PasswordAuthentication = true;
PermitRootLogin = if format == "install-iso" then "yes" else "no";
PubkeyAuthentication = "yes";
StreamLocalBindUnlink = "yes";
Expand Down
6 changes: 5 additions & 1 deletion systems/x86_64-linux/bruddynix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ in
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBG8l3jQ2EPLU+BlgtaQZpr4xr97n2buTLAZTxKHSsD"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM7UBwfd7+K0mdkAIb2TE6RzMu6L4wZnG/anuoYqJMPB"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJAZIwy7nkz8CZYR/ZTSNr+7lRBW2AYy1jw06b44zaID"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFuMXeT21L3wnxnuzl0rKuE5+8inPSi8ca/Y3ll4s9pC"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKEilFPAgSUwW3N7PTvdTqjaV2MD3cY2oZGKdaS7ndKB"
];

# TODO: make part of ssh config proper
Expand All @@ -93,7 +95,7 @@ in
system = {
boot = {
enable = true;
secureBoot = true;
# secureBoot = true;
plymouth = true;
silentBoot = true;
};
Expand All @@ -107,6 +109,8 @@ in
realtime = enabled;
time = enabled;
};

user.name = "bruddy";
};

nix.settings = {
Expand Down
4 changes: 2 additions & 2 deletions systems/x86_64-linux/bruddynix/disks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
content = {
type = "gpt";
partitions = {
ESP = {
EFI = {
size = "1G";
type = "EF00";
content = {
Expand All @@ -16,7 +16,7 @@
mountOptions = [ "umask=0077" ];
extraArgs = [
"-n"
"ESP"
"EFI"
];
};
};
Expand Down
6 changes: 3 additions & 3 deletions systems/x86_64-linux/bruddynix/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
# };
#
# "/boot" = {
# device = "/dev/disk/by-label/ESP";
# device = "/dev/disk/by-label/EFI";
# fsType = "vfat";
# options = [
# "fmask=0077"
# "dmask=0077"
# ];
# };
# };

#
# swapDevices = [ { device = "/dev/disk/by-label/swap"; } ];

#
hardware = {
enableRedistributableFirmware = true;
};
Expand Down

0 comments on commit 90c5435

Please sign in to comment.