This commit is contained in:
kenji
2025-12-22 09:32:38 -06:00
parent ec424cd6d8
commit 420d4f173c
11 changed files with 168 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
{
inputs,
system,
...
}: {
home.packages = [
inputs.nixovim.packages.${system}.full
];
}
+27
View File
@@ -0,0 +1,27 @@
{
myConfig = {
nixos = {
username = "kenji";
hostname = "hakase";
timezone = "America/Chicago";
shell = "fish";
};
git = {
username = "kenji";
email = "kenji@hakase";
defaultBranch = "master";
};
ssh = {
extraConfig = ''
Host macair
User biscuit
HostName 192.168.68.81
Host gitea.sakamoto.dev
User kenji
ProxyCommand cloudflared access ssh --hostname %h
HostName gitea.sakamoto.dev
'';
};
};
}
+42
View File
@@ -0,0 +1,42 @@
{
description = "Hakase Configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixovim = {
url = "git+https://git.sakamoto.dev/kenji/nixovim.git";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
home-manager,
nixovim,
...
} @ inputs: let
config = import ./config.nix;
system = "x86_64-linux";
args =
{
inherit inputs system;
}
// config;
in {
nixosConfigurations = {
hakase = nixpkgs.lib.nixosSystem {
specialArgs = args;
modules = [
home-manager.nixosModules.home-manager
./hosts/hakase/configuration.nix
];
};
};
};
}
+5
View File
@@ -0,0 +1,5 @@
{pkgs, ...}: {
imports = [
../modules/home/terminal.nix
];
}
+9
View File
@@ -0,0 +1,9 @@
{pkgs, ...}: {
imports = [
../../system/version.nix
../../system/user.nix
../../system/home-manager.nix
../../system/hardware.nix
../../system/services.nix
];
}
+5
View File
@@ -0,0 +1,5 @@
{
imports = [
../../apps/home/neovim/neovim.nix
];
}
+16
View File
@@ -0,0 +1,16 @@
{pkgs, ...}: {
hardware = {
bluetooth = {
enable = true;
powerOnBoot = true;
};
networking = {
networkmanager.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [22 80];
allowedUDPPorts = [53];
};
};
};
}
+16
View File
@@ -0,0 +1,16 @@
{
specialArgs,
myConfig,
...
}: {
home-manager = {
backupFileExtension = "backup";
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = specialArgs;
users.${myConfig.nixos.username} = import ../home/hakase.nix;
};
imports = [
];
}
+20
View File
@@ -0,0 +1,20 @@
{pkgs, ...}: {
services = {
openssh.enable = true;
blueman.enable = true;
# Complements printer support
printing.enable = true;
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
pipewire = {
enable = true;
alsa = {
enable = true;
support32bit = true;
};
};
};
}
+15
View File
@@ -0,0 +1,15 @@
{
pkgs,
myConfig,
...
}: {
users = {
users = {
${myConfig.nixos.username} = {
isNormalUser = true;
extraGroups = ["wheel" "networkmanager" "input" "video"];
useDefaultShell = true;
};
};
};
}
+4
View File
@@ -0,0 +1,4 @@
{pkgs, ...}: {
system.stateVersion = "25.05";
nixpkgs.config.allowUnfree = true;
}