Giter Site home page Giter Site logo

my-nixos's Introduction

  • ๐Ÿ‘‹๐Ÿป Hi, Iโ€™m Moh. Anif Yuliansyah
  • ๐Ÿ‘€ Iโ€™m interested in Kotlin, Flutter, Android, Linux, and OSS
  • ๐ŸŒฑ Iโ€™m currently learning Kotlin & Flutter
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on Open Source Mini Project
  • ๐Ÿ“ซ You can contact me with email, Facebook, Twitter, Instagram, and Telegram
  • ๐Ÿ™‡๐Ÿปโ€โ™€๏ธ Nice to meet you everyone

my-nixos's People

Contributors

anifyuli avatar fmway avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fmway

my-nixos's Issues

Flakes full feature

Can you adding flakes feature in your configurations?, maybe like this

# file flake.nix
{
  description = "My Configuration";

  # url, nix channel / repo
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; # stable channel
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; # unstable channel
    nixos-hardware.url = "github:NixOS/nixos-hardware";
    home-manager.url = "github:nix-community/home-manager/release-23.11"; # for nixos-23.11
  };

  outputs = { self, nixpkgs, nixos-hardware, home-manager, nixpkgs-unstable, ... } @ inputs: let
    inherit (self) outputs; # to export the output variable
    system = "x86_64-linux"; # your system
    genericModules = [
      ./configuration.nix
      {
        # Fix for nixpkgs without flakes
        nix.registry.nixos.flake = inputs.self;
        environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
        nix.nixPath = [ "nixpkgs=${nixpkgs.outPath}" ];
      }
      # Home manager
      home-manager.nixosModules.home-manager
      {
        nix.registry.nixos.flake = inputs.self;
        home-manager.useGlobalPkgs = true;
        home-manager.useUserPackages = true;
        imports = [
          ./home-manager/home-manager.nix # your home-manager config
        ];
      }
      # closure for adding overlays
      (_: {
        nixpkgs.overlays = [
          overlay-unstable
        ];
      })
    ];
    # list overlays 
    # unstable overlay
    overlay-unstable = _final: _prev: {
      # it will be access in pkgs.unstable
      unstable = import nixpkgs-unstable {
        inherit system;
        config.allowUnfree = true;
      };
    };
  in
  {
    nixosConfiguration = {
      # Your Computer name (hostname)
      "ThinkPad-X280" = nixpkgs.lib.nixosSystem {
        inherit system;
        specialArgs = {
          inherit inputs outputs; # so you can access inputs outputs in your configuration.nix, etc
        };
        modules = genericModules ++ [
          nixos-hardware.nixosModules.lenovo-thinkpad-x280
        ];
      };
    };
  };
}

I forgot to adding android package. (you can do it yourself ๐Ÿ‘€)
this my configuration https://github.com/fmway/NixOs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.