summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2024-09-29 22:54:38 -0500
committerTim Keller <tjk@tjkeller.xyz>2024-09-29 22:54:38 -0500
commitf9d4d2bbd82bd66bebff85420df6653a6966ee9a (patch)
treedee057520e7c6f32234066786e447b9d05ebd17b /flake.nix
downloadnixos-f9d4d2bbd82bd66bebff85420df6653a6966ee9a.tar.xz
nixos-f9d4d2bbd82bd66bebff85420df6653a6966ee9a.zip
initial commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..053354f
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,28 @@
+{
+ description = "TimmyOS System Config";
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
+
+ home-manager = {
+ url = "github:nix-community/home-manager/release-24.05";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs = { nixpkgs, home-manager, ... }:
+ # HOSTNAME NIXOS
+ let
+ system = "x86_64-linux";
+ in {
+ nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
+ inherit system;
+ modules = [ ./configuration.nix ];
+ };
+
+ homeConfigurations.timmy = home-manager.lib.homeManagerConfiguration {
+ pkgs = nixpkgs.legacyPackages.${system};
+ modules = [ ./home.nix ];
+ };
+ };
+}