arrregla error de .xinitrc

This commit is contained in:
Fabián Montero 2022-11-29 17:46:55 -06:00
parent 04a58457f8
commit d2ff948cd8
4 changed files with 60 additions and 4 deletions

View file

@ -1,5 +1,20 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"hm-isolation": {
"locked": {
"lastModified": 1661812080,
@ -37,7 +52,41 @@
"type": "github"
}
},
"nixGL": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1661367362,
"narHash": "sha256-Qc8MXcV+YCPREu8kk6oggk23ZBKLqeQRAIsLbHEviPE=",
"owner": "guibou",
"repo": "nixGL",
"rev": "7165ffbccbd2cf4379b6cd6d2edd1620a427e5ae",
"type": "github"
},
"original": {
"owner": "guibou",
"repo": "nixGL",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1660551188,
"narHash": "sha256-a1LARMMYQ8DPx1BgoI/UN4bXe12hhZkCNqdxNi6uS0g=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "441dc5d512153039f19ef198e662e4f3dbb9fd65",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1669558522,
"narHash": "sha256-yqxn+wOiPqe6cxzOo4leeJOp1bXE/fjPEi/3F/bBHv8=",
@ -72,7 +121,8 @@
"inputs": {
"hm-isolation": "hm-isolation",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nixGL": "nixGL",
"nixpkgs": "nixpkgs_2",
"nur": "nur",
"unstable": "unstable"
}

View file

@ -2,7 +2,12 @@
with lib;
{
imports = [ ./i3.nix ./polybar.nix ./desktop ];
imports = [
./desktop
./i3.nix
./polybar.nix
./startx.nix
];
config = mkIf ( !config.home.isolation.active ) {

View file

@ -4,7 +4,7 @@ with lib;
config = mkIf ( !config.home.isolation.active ) {
xsession.enable = true;
home.files.".xinitrc".source = let
home.file.".xinitrc".source = let
content = if config.local.nixos then ''
exec ~/.xsession
'' else ''

View file

@ -16,8 +16,9 @@ with lib;
};
};
nixos = {
nixos = mkOption {
type = bool;
};
};
}