Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pprotas committed Jun 16, 2024
0 parents commit 1719741
Show file tree
Hide file tree
Showing 20 changed files with 2,514 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.nvimlog
result
nixos/hardware-configuration.nix
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# NixOS Config

This is my personal NixOS configuration, using Flakes and Home Manager.

## Setup

1. Clone repo into `~/nix`
2. `rebuild-nixos` for building NixOS
3. `rebuild-hm` for building Home Manager
321 changes: 321 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";

home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};

ghostty = {
url = "git+ssh://[email protected]/ghostty-org/ghostty";
};
};

outputs = { self, nixpkgs, nixpkgs-stable, home-manager, ghostty, ... }@inputs:
let
system = "x86_64-linux";
in
{
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
specialArgs = {
pkgs-stable = import nixpkgs-stable {
inherit system;
config.allowUnfree = true;
};
inherit inputs system;
};
modules = [
./nixos/configuration.nix
{
environment.systemPackages = [
ghostty.packages.x86_64-linux.default
];
}
];
};

homeConfigurations.pawel = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
modules = [ ./home-manager/home.nix ];
};
};
}
Loading

0 comments on commit 1719741

Please sign in to comment.