mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
82 lines
1.9 KiB
Nix
82 lines
1.9 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
# Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
./modules
|
|
|
|
(lib.mapHomeManagerUser "foo-dogsquared" {
|
|
extraGroups = [
|
|
"adbusers"
|
|
"wheel"
|
|
"audio"
|
|
"docker"
|
|
"podman"
|
|
"networkmanager"
|
|
"wireshark"
|
|
];
|
|
hashedPassword =
|
|
"$6$.cMYto0K0CHbpIMT$dRqyKs4q1ppzmTpdzy5FWP/V832a6X..FwM8CJ30ivK0nfLjQ7DubctxOZbeOtygfjcUd1PZ0nQoQpOg/WMvg.";
|
|
isNormalUser = true;
|
|
createHome = true;
|
|
home = "/home/foo-dogsquared";
|
|
description = "Gabriel Arazas";
|
|
})
|
|
];
|
|
|
|
hosts.ni = {
|
|
hardware.qol.enable = true;
|
|
networking.enable = true;
|
|
networking.setup = "networkmanager";
|
|
networking.wireguard.enable = true;
|
|
setups.desktop.enable = true;
|
|
setups.development.enable = true;
|
|
setups.music.enable = true;
|
|
setups.gaming.enable = true;
|
|
};
|
|
|
|
disko.devices = import ./disko.nix {
|
|
disks = [ "/dev/nvme0n1" ];
|
|
};
|
|
|
|
services.openssh.hostKeys = [{
|
|
path = config.sops.secrets."ssh-key".path;
|
|
type = "ed25519";
|
|
}];
|
|
|
|
networking.timeServers = lib.mkBefore [
|
|
"ntp.nict.jp"
|
|
"time.nist.gov"
|
|
"time.facebook.com"
|
|
];
|
|
|
|
sops.secrets = lib.getSecrets ./secrets/secrets.yaml {
|
|
"ssh-key" = { };
|
|
};
|
|
|
|
# The keyfile required for the secrets to be decrypted.
|
|
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
|
|
|
# My custom configuration with my custom modules starts here.
|
|
profiles = {
|
|
archiving.enable = true;
|
|
browsers.chromium.enable = true;
|
|
filesystem.setups.personal-webstorage.enable = true;
|
|
};
|
|
|
|
# Basically, the most basic nixpkgs configuration.
|
|
environment.variables.NIXPKGS_CONFIG = lib.mkForce ./config/nixpkgs/config.nix;
|
|
|
|
# Set your time zone.
|
|
time.timeZone = "Asia/Manila";
|
|
|
|
# Doxxing myself.
|
|
location = {
|
|
latitude = 15.0;
|
|
longitude = 121.0;
|
|
};
|
|
|
|
system.stateVersion = "24.05"; # Yes! I read the comment!
|
|
}
|