Add dhist

This commit is contained in:
Leonardo Eugênio 2022-08-01 20:15:26 -03:00
parent 7c76e751b5
commit 517794af03
4 changed files with 111 additions and 10 deletions

View file

@ -1,5 +1,62 @@
{ {
"nodes": { "nodes": {
"dhist": {
"inputs": {
"fenix": "fenix",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1659395338,
"narHash": "sha256-gIWFyqnkX7gnfOxUaJjZ+fMjlMtE6GfZsfxop8sDYpk=",
"owner": "lelgenio",
"repo": "dhist",
"rev": "11b2d9671adb775f373d4b3ec5f27fdf7ea957c6",
"type": "github"
},
"original": {
"owner": "lelgenio",
"repo": "dhist",
"type": "github"
}
},
"fenix": {
"inputs": {
"nixpkgs": [
"dhist",
"nixpkgs"
],
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1659336065,
"narHash": "sha256-vjHzA2MRrw6seWzBGUA2dciObvf1Be4lA3SsAI5aufA=",
"owner": "nix-community",
"repo": "fenix",
"rev": "75a63f0868d8362aaa0ae2f9d5e77a65780fdd58",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "fenix",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1656928814,
"narHash": "sha256-RIFfgBuKz6Hp89yRr7+NR5tzIAbn52h8vT6vXkYjZoM=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -23,16 +80,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1657815135, "lastModified": 1659219666,
"narHash": "sha256-+5Jby1ayRjtSgsM5IpRNeUgdcIutCKQWR6sypRtd1RE=", "narHash": "sha256-pzYr5fokQPHv7CmUXioOhhzDy/XyWOIXP4LZvv/T7Mk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c06d5fa9c605d143b15cafdbbb61c7c95388d76e", "rev": "7b9be38c7250b22d829ab6effdee90d5e40c6e5c",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-22.05", "ref": "nixos-unstable",
"type": "indirect" "type": "indirect"
} }
}, },
@ -51,6 +108,21 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1657815135,
"narHash": "sha256-+5Jby1ayRjtSgsM5IpRNeUgdcIutCKQWR6sypRtd1RE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c06d5fa9c605d143b15cafdbbb61c7c95388d76e",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-22.05",
"type": "indirect"
}
},
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1657945102, "lastModified": 1657945102,
@ -68,11 +140,29 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"dhist": "dhist",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur" "nur": "nur"
} }
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1659290320,
"narHash": "sha256-OUezy1BkIoqpkTE5wOtsjJ/Gy48Ql8EL1/t6MZzRkWw=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "2b472f6684bb1958274995d12b2c50310d88cc52",
"type": "github"
},
"original": {
"owner": "rust-lang",
"ref": "nightly",
"repo": "rust-analyzer",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -6,8 +6,11 @@
home-manager.url = "github:nix-community/home-manager/release-22.05"; home-manager.url = "github:nix-community/home-manager/release-22.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
# my stuff
dhist.url = "github:lelgenio/dhist";
}; };
outputs = { nixpkgs, nixpkgs-unstable, home-manager, nur, ... }: outputs = { nixpkgs, nixpkgs-unstable, home-manager, nur, dhist, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { pkgs = import nixpkgs {
@ -27,7 +30,12 @@
./system/configuration.nix ./system/configuration.nix
# nur.nixosModules.nur # nur.nixosModules.nur
({ config, pkgs, ... }: { ({ config, pkgs, ... }: {
nixpkgs.overlays = [ overlay-unstable nur.overlay ]; nixpkgs.overlays = [
overlay-unstable nur.overlay
(_: _: {
dhist = dhist.packages.${system}.dhist;
})
];
}) })
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {

View file

@ -35,7 +35,7 @@ let
in '' in ''
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
gnome_schema=org.gnome.desktop.interface gnome_schema=org.gnome.desktop.interface
gsettings set $gnome_schema gtk-theme 'Dracula' # gsettings set $gnome_schema gtk-theme 'Dracula'
''; '';
}; };
in { in {
@ -156,10 +156,12 @@ in {
alacritty # gpu accelerated terminal alacritty # gpu accelerated terminal
sway sway
dbus-sway-environment dbus-sway-environment
pkgs.xdg-desktop-portal
pkgs.xdg-desktop-portal-wlr
configure-gtk configure-gtk
wayland wayland
glib # gsettings glib # gsettings
dracula-theme # gtk theme # dracula-theme # gtk theme
gnome3.adwaita-icon-theme # default gnome cursors gnome3.adwaita-icon-theme # default gnome cursors
swaylock swaylock
swayidle swayidle

View file

@ -100,6 +100,7 @@ in {
kanshi kanshi
xfce.thunar xfce.thunar
pass pass
dhist
# media # media
yt-dlp yt-dlp
ffmpeg ffmpeg