hello world!

This commit is contained in:
kenji
2025-12-23 18:43:43 +00:00
parent 73b5b2c9f6
commit b55c662a1b
9 changed files with 49 additions and 32 deletions
+5
View File
@@ -0,0 +1,5 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
git
];
}
+10
View File
@@ -0,0 +1,10 @@
{myConfig, ...}: {
programs.git = {
enable = true;
extraConfig = {
user.name = "${myConfig.nixos.Git.user}";
user.email = "${myConfig.nixos.Git.email}";
init.defaultBranch = "${myConfig.nixos.Git.defaultBranch}";
};
};
}
Generated
+11 -22
View File
@@ -640,7 +640,9 @@
"nixpkgs" "nixpkgs"
], ],
"nixvim": "nixvim", "nixvim": "nixvim",
"rust-overlay": "rust-overlay" "rust-overlay": [
"rust-overlay"
]
}, },
"locked": { "locked": {
"lastModified": 1764015463, "lastModified": 1764015463,
@@ -685,22 +687,6 @@
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1736320768,
"narHash": "sha256-nIYdTAiKIGnFNugbomgBJR+Xv5F1ZQU+HfaBqJKroC0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4bc9c909d9ac828a039f288cf872d16d38185db8",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1766309749, "lastModified": 1766309749,
"narHash": "sha256-3xY8CZ4rSnQ0NqGhMKAy5vgC+2IVK0NoVEzDoOh4DA4=", "narHash": "sha256-3xY8CZ4rSnQ0NqGhMKAy5vgC+2IVK0NoVEzDoOh4DA4=",
@@ -794,19 +780,22 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"nixovim": "nixovim", "nixovim": "nixovim",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_2",
"rust-overlay": "rust-overlay"
} }
}, },
"rust-overlay": { "rust-overlay": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "nixpkgs": [
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1739327257, "lastModified": 1766457837,
"narHash": "sha256-rlGK8wxz/e50Z+PQRzuP+m03IrGkhcPGmgkBnkEZ9C8=", "narHash": "sha256-aeBbkQ0HPFNOIsUeEsXmZHXbYq4bG8ipT9JRlCcKHgU=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "e01f2c035b7b8a428c119b183f4cbc55f2eef07c", "rev": "2c7510a559416d07242621d036847152d970612b",
"type": "github" "type": "github"
}, },
"original": { "original": {
+6
View File
@@ -3,6 +3,11 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -14,6 +19,7 @@
nixovim = { nixovim = {
url = "git+https://git.sakamoto.dev/kenji/nixovim.git"; url = "git+https://git.sakamoto.dev/kenji/nixovim.git";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.rust-overlay.follows = "rust-overlay";
}; };
}; };
+1 -5
View File
@@ -1,10 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../system/version.nix ../../modules/system/default.nix
../../system/user.nix
../../system/home-manager.nix
../../system/hardware.nix
../../system/services.nix
]; ];
} }
+1
View File
@@ -1,5 +1,6 @@
{ {
imports = [ imports = [
../../apps/neovim/neovim.nix ../../apps/neovim/neovim.nix
../../apps/git/home.nix
]; ];
} }
+4 -1
View File
@@ -1,4 +1,4 @@
{...}: { {pkgs, ...}: {
imports = [ imports = [
../../system/boot.nix ../../system/boot.nix
../../system/amd.nix ../../system/amd.nix
@@ -8,4 +8,7 @@
../../system/user.nix ../../system/user.nix
../../system/version.nix ../../system/version.nix
]; ];
environment.systemPackages = with pkgs; [
git
];
} }
+4 -4
View File
@@ -10,10 +10,10 @@
efiSysMountPoint = "/boot"; efiSysMountPoint = "/boot";
}; };
grub = { # grub = {
enable = false; # enable = false;
device = "nodev"; # device = "nodev";
}; # };
}; };
initrd = { initrd = {
+7
View File
@@ -1,4 +1,11 @@
{pkgs, ...}: { {pkgs, ...}: {
system.stateVersion = "25.05"; system.stateVersion = "25.05";
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix = {
distributedBuilds = true;
settings = {
builders-use-substitutes = true;
experimental-features = ["nix-command" "flakes"];
};
};
} }