From 8cbadb61604667b407b53ee1258433994fa4765a Mon Sep 17 00:00:00 2001 From: coasteen Date: Thu, 9 Jul 2026 10:42:28 +0330 Subject: init --- nixos/flake.nix | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100755 nixos/flake.nix (limited to 'nixos/flake.nix') diff --git a/nixos/flake.nix b/nixos/flake.nix new file mode 100755 index 0000000..b9c9114 --- /dev/null +++ b/nixos/flake.nix @@ -0,0 +1,56 @@ +{ + description = "Flake"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; + nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + intelfetch.url = "git+https://git.sr.ht/~coasteen/intelfetch"; + home-manager.url = "github:nix-community/home-manager/release-25.05"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = { nixpkgs, nixpkgs-unstable, home-manager, intelfetch, ... }: let + system = "x86_64-linux"; + pkgs = import nixpkgs { + inherit system; + config = { allowUnfree = true; }; + }; + pkgsUnstable = import nixpkgs-unstable { inherit system; }; + in { + nixosConfigurations.gloria = nixpkgs.lib.nixosSystem { + inherit system; + + modules = [ + (import ./configuration/configuration.nix { inherit pkgs pkgsUnstable; }) + ./configuration/sys/coreutils-configuration.nix + ./configuration/sys/swap.nix + ./hardware-configuration.nix + + { + environment.systemPackages = [ + intelfetch.packages.${system}.intelfetch + ]; + } + + home-manager.nixosModules.home-manager { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + backupFileExtension = "home-backup"; + + users.coast = { ... }: { + imports = [ + ./home-configuration/configuration.nix + ./home-configuration/apps/sway.nix + ./home-configuration/apps/zsh.nix + ./home-configuration/apps/nushell.nix + ./home-configuration/apps/alacritty.nix + ./home-configuration/apps/foot.nix + ]; + }; + }; + } + ]; + }; + }; +} -- cgit v1.2.3