commit 98dacefb1183739af0314606430e629dba21880e Author: Gabriel Arazas Date: Thu May 25 11:18:18 2023 +0800 project: init with skeleton template diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..265d138 --- /dev/null +++ b/flake.nix @@ -0,0 +1,22 @@ +{ + description = "Very simple sample of a Nix flake with NixOS and home-manager"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + home-manager.url = "github:nix-community/home-manager"; + }; + + outputs = { nixpkgs, home-manager, ... }: let + system = "x85_64-linux"; + in { + nixosConfigurations.desktop = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ ./hosts/desktop ]; + }; + + homeConfigurations.foodogsquared = home-manager.lib.homeManagerConfiguration { + pkgs = import nixpkgs { inherit system; }; + modules = [ ./users/foodogsquared ]; + }; + }; +} diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix new file mode 100644 index 0000000..1fe0bb3 --- /dev/null +++ b/hosts/desktop/default.nix @@ -0,0 +1,5 @@ +{ config, lib, pkgs, ... }: + +{ + system.stateVersion = "23.05"; +} diff --git a/users/foodogsquared/default.nix b/users/foodogsquared/default.nix new file mode 100644 index 0000000..853c963 --- /dev/null +++ b/users/foodogsquared/default.nix @@ -0,0 +1,5 @@ +{ config, lib, pkgs, ... }: + +{ + home.stateVersion = "23.05"; +}