this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:memo: using readme to create flake

+64 -18
+48 -1
README.org
··· 1 - * My nix configuration 1 + #+TITLE: Flake configuration 2 + #+AUTHOR: Tulkdan 3 + #+EMAIL: pedro8correa@gmail.com 4 + 5 + ** Description 6 + #+NAME: description 7 + #+begin_src nix 8 + description = "Tulk'dan's system config"; 9 + #+end_src 10 + 11 + ** Inputs 12 + #+NAME: inputs 13 + #+begin_src nix 14 + inputs = { 15 + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 16 + }; 17 + #+end_src 18 + 19 + ** Outputs 20 + #+NAME: outputs 21 + #+begin_src nix 22 + outputs = {self, nixpkgs}: let 23 + system = "x86_64-linux"; 24 + hostname = "nixos"; 25 + pkgs = import nixpkgs {inherit system;}; 26 + in { 27 + 28 + nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem { 29 + inherit system; 30 + 31 + modules = [ ./system/configuration.nix ]; 32 + }; 33 + 34 + }; 35 + #+end_src 36 + 37 + 38 + ** Final nix 39 + 40 + #+begin_src nix :tangle flake.nix :noweb yes 41 + { 42 + <<description>> 43 + 44 + <<inputs>> 45 + 46 + <<outputs>> 47 + } 48 + #+end_src
+16 -17
flake.nix
··· 1 1 { 2 + description = "Tulk'dan's system config"; 2 3 3 - description = "Tulk'dan's system config"; 4 + inputs = { 5 + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 6 + }; 4 7 5 - inputs = { 6 - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 7 - }; 8 - 9 - outputs = {self, nixpkgs}: let 10 - system = "x86_64-linux"; 11 - hostname = "nixos"; 12 - pkgs = import nixpkgs {inherit system;}; 13 - in { 14 - 15 - nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem { 16 - inherit system; 17 - 18 - modules = [ ./system/configuration.nix ]; 8 + outputs = {self, nixpkgs}: let 9 + system = "x86_64-linux"; 10 + hostname = "nixos"; 11 + pkgs = import nixpkgs {inherit system;}; 12 + in { 13 + 14 + nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem { 15 + inherit system; 16 + 17 + modules = [ ./system/configuration.nix ]; 18 + }; 19 + 19 20 }; 20 - 21 - }; 22 21 23 22 }