Improved odin configuration

This commit is contained in:
Filippo Berto 2022-11-11 14:34:31 +01:00
parent 38d1b8f3b9
commit ba84bc21ce
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
7 changed files with 28 additions and 24 deletions

36
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1659877975, "lastModified": 1667395993,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -22,11 +22,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1665996265, "lastModified": 1667907331,
"narHash": "sha256-/k9og6LDBQwT+f/tJ5ClcWiUl8kCX5m6ognhsAxOiCY=", "narHash": "sha256-bHkAwkYlBjkupPUFcQjimNS8gxWSWjOTevEuwdnp5m0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b81e128fc053ab3159d7b464d9b7dedc9d6a6891", "rev": "6639e3a837fc5deb6f99554072789724997bc8e5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -62,11 +62,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1666873549, "lastModified": 1668084757,
"narHash": "sha256-a6Eu1Qv/EndjepSMja5SvcG+4vM5Rl2gzJD7xscRHss=", "narHash": "sha256-/RRIVnNrg1EZkYMaPdQFuxCQ72LPWkVjvWEClR8FqvI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "419dcc0ec767803182ed01a326f134230578bf60", "rev": "11a42a580de22355934ffd9235b81b64004a2e98",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -77,11 +77,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1666961615, "lastModified": 1668108235,
"narHash": "sha256-+Sqz6zQA85Q14U/KwsJO386oxd47zDte8dqBGOtRJGg=", "narHash": "sha256-/Di1OkjDhSrkDi1i/V1T+9NnmWBm8VBAg9xRoX4Xy8E=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "040c6d8374d090f46ab0e99f1f7c27a4529ecffd", "rev": "58f933e321d5076cab0e0a98b994d84a9f175d40",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -93,11 +93,11 @@
}, },
"nixpkgs-u": { "nixpkgs-u": {
"locked": { "locked": {
"lastModified": 1666959691, "lastModified": 1667991831,
"narHash": "sha256-TRpWA3t8ata79HOGtFd5dDCl1kJQmIE16PDF53/Hcxo=", "narHash": "sha256-DHgEsLZI044B9T4AjA3K6+yB9/DqLr4dyA7OIx0FG7o=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "448a599c49978c2794401bfc3a2e1fba1a8663be", "rev": "872fceeed60ae6b7766cc0a4cd5bf5901b9098ec",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -142,11 +142,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1666604592, "lastModified": 1667992213,
"narHash": "sha256-Bxy7xeVAwC0yxFaeYZM7N9Us/ebxpMC9TCceKEFeay4=", "narHash": "sha256-8Ens8ozllvlaFMCZBxg6S7oUyynYx2v7yleC5M0jJsE=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "1b436f36e2812c589e6d830e3223059ea9661100", "rev": "ebcbfe09d2bd6d15f68de3a0ebb1e4dcb5cd324b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -9,6 +9,7 @@
neofetch neofetch
nixos-option nixos-option
nix-tree nix-tree
pv
unrar unrar
unzip unzip
wget wget

View file

@ -1,7 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ imports = [
# ./nautilus.nix ./nautilus.nix
./thunar.nix # ./thunar.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
bc bc
@ -20,7 +20,7 @@
let let
primaryTerminal = "kitty"; primaryTerminal = "kitty";
secondaryTerminal = "terminator"; secondaryTerminal = "terminator";
fileManager = "thunar"; fileManager = "nautilus";
emojiChooser = "rofimoji --skin-tone light -a copy"; emojiChooser = "rofimoji --skin-tone light -a copy";
yad = "${pkgs.yad}/bin/yad"; yad = "${pkgs.yad}/bin/yad";
in in

View file

@ -19,7 +19,7 @@ with lib; {
networking = { networking = {
hostName = "odin"; hostName = "odin";
networkmanager.enable = true; networkmanager.enable = true;
networkmanager.wifi.backend = "iwd"; # networkmanager.wifi.backend = "iwd";
# The global useDHCP flag is deprecated, therefore explicitly set to false here. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config # Per-interface useDHCP will be mandatory in the future, so this generated config
@ -217,8 +217,9 @@ with lib; {
services.blueman.enable = true; services.blueman.enable = true;
services.gvfs = { services.gvfs = {
enable = true; enable = true;
package = lib.mkForce pkgs.gnome3.gvfs; # package = lib.mkForce pkgs.gnome3.gvfs;
}; };
services.tumbler.enable = true;
# services.tlp.enable = false; # services.tlp.enable = false;
services.avahi = { services.avahi = {
enable = true; enable = true;

View file

@ -8,6 +8,7 @@
boot.initrd.kernelModules = [ "i915" ]; boot.initrd.kernelModules = [ "i915" ];
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
hardware.opengl.extraPackages = with pkgs; [ hardware.opengl.extraPackages = with pkgs; [
intel-media-driver intel-media-driver
vaapiIntel vaapiIntel

View file

@ -3,6 +3,7 @@
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ {
boot.initrd.kernelModules = [ "i915" ]; boot.initrd.kernelModules = [ "i915" ];
# boot.kernelPackages = pkgs.linuxPackages;
services.xserver = { services.xserver = {
videoDrivers = [ "nvidia" ]; videoDrivers = [ "nvidia" ];

View file

@ -147,7 +147,7 @@
../hm_modules/mangohud.nix ../hm_modules/mangohud.nix
../hm_modules/megasync.nix ../hm_modules/megasync.nix
../hm_modules/mpv.nix ../hm_modules/mpv.nix
../hm_modules/nautilus.nix # ../hm_modules/nautilus.nix
../hm_modules/nix-index.nix ../hm_modules/nix-index.nix
../hm_modules/noti.nix ../hm_modules/noti.nix
../hm_modules/nushell.nix ../hm_modules/nushell.nix