nix on linux
This commit is contained in:
parent
d371cb9d7c
commit
66e6688a46
@ -1,25 +1,5 @@
|
||||
{
|
||||
"nodes": {
|
||||
"darwin": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1598257228,
|
||||
"narHash": "sha256-HyaM+tAZfpwhYgvQduCqrooLIHWoRi4VqbGvDnuwZSY=",
|
||||
"owner": "lnl7",
|
||||
"repo": "nix",
|
||||
"rev": "2530cc68272b176841f8cf2ec0da1c88a13d9137",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "lnl7",
|
||||
"repo": "nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@ -59,7 +39,6 @@
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"darwin": "darwin",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
|
@ -5,15 +5,14 @@
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
darwin.url = "github:lnl7/nix";
|
||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
outputs = { self, nixpkgs, home-manager, darwin }: {
|
||||
outputs = { self, nixpkgs, home-manager} : {
|
||||
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
|
||||
|
||||
homeConfigurations = {
|
||||
"tyrel" = home-manager.lib.homeManagerConfiguration {
|
||||
system = "x86_64";
|
||||
targets.genericLinux.enable = true;
|
||||
system = "x86_64-linux";
|
||||
homeDirectory = "/home/tyrel";
|
||||
username = "tyrel";
|
||||
configuration.imports = [
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
git add . # YOLO
|
||||
nix build ./_ubuntu --extra-experimental-features "nix-command flakes"
|
||||
#git add . # YOLO
|
||||
#nix build ./_ubuntu --extra-experimental-features "nix-command flakes" -vvv
|
||||
nix run _ubuntu switch
|
||||
|
Loading…
Reference in New Issue
Block a user