❄️ Nix configurations
0
fork

Configure Feed

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

add fw config and fp

+32 -2
+16
flake.lock
··· 101 101 "type": "github" 102 102 } 103 103 }, 104 + "nixos-hardware": { 105 + "locked": { 106 + "lastModified": 1724575805, 107 + "narHash": "sha256-OB/kEL3GAhUZmUfkbPfsPhKs0pRqJKs0EEBiLfyKZw8=", 108 + "owner": "NixOS", 109 + "repo": "nixos-hardware", 110 + "rev": "9fc19be21f0807d6be092d70bf0b1de0c00ac895", 111 + "type": "github" 112 + }, 113 + "original": { 114 + "owner": "NixOS", 115 + "repo": "nixos-hardware", 116 + "type": "github" 117 + } 118 + }, 104 119 "nixpkgs": { 105 120 "locked": { 106 121 "lastModified": 1723637854, ··· 122 137 "agenix": "agenix", 123 138 "catppuccin": "catppuccin", 124 139 "home-manager": "home-manager_2", 140 + "nixos-hardware": "nixos-hardware", 125 141 "nixpkgs": "nixpkgs" 126 142 } 127 143 },
+2 -1
flake.nix
··· 5 5 # Specify the source of Home Manager and Nixpkgs. 6 6 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 7 7 catppuccin.url = "github:catppuccin/nix"; 8 + nixos-hardware.url = "github:NixOS/nixos-hardware"; 8 9 home-manager = { 9 10 url = "github:nix-community/home-manager"; 10 11 inputs.nixpkgs.follows = "nixpkgs"; ··· 15 16 }; 16 17 }; 17 18 18 - outputs = inputs @ { nixpkgs, catppuccin, home-manager, agenix, ... }: 19 + outputs = inputs @ { nixpkgs, catppuccin, home-manager, agenix, nixos-hardware, ... }: 19 20 let 20 21 system = "x86_64-linux"; 21 22 pkgs = nixpkgs.legacyPackages.${system};
+14 -1
nixos/otter/configuration.nix
··· 2 2 # your system. Help is available in the configuration.nix(5) man page 3 3 # and in the NixOS manual (accessible by running ‘nixos-help’). 4 4 5 - { config, pkgs, ... }: 5 + { config, pkgs, inputs, ... }: 6 6 7 7 { 8 8 imports = 9 9 [ # Include the results of the hardware scan. 10 10 ./hardware-configuration.nix 11 + 12 + inputs.nixos-hardware.nixosModules.framework-13-7040-amd 11 13 ]; 12 14 13 15 # Bootloader. ··· 17 19 boot.initrd.luks.devices."luks-cd4e7e78-243a-4091-90dd-9ee091fbb27d".device = "/dev/disk/by-uuid/cd4e7e78-243a-4091-90dd-9ee091fbb27d"; 18 20 networking.hostName = "nixos"; # Define your hostname. 19 21 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 22 + 23 + # Framework quirks 24 + hardware.framework.amd-7040.preventWakeOnAC = true; 25 + services.fwupd.enable = true; 26 + # we need fwupd 1.9.7 to downgrade the fingerprint sensor firmware 27 + services.fwupd.package = (import (builtins.fetchTarball { 28 + url = "https://github.com/NixOS/nixpkgs/archive/bb2009ca185d97813e75736c2b8d1d8bb81bde05.tar.gz"; 29 + sha256 = "sha256:003qcrsq5g5lggfrpq31gcvj82lb065xvr7bpfa8ddsw8x4dnysk"; 30 + }) { 31 + inherit (pkgs) system; 32 + }).fwupd; 20 33 21 34 # Configure network proxy if necessary 22 35 # networking.proxy.default = "http://user:password@proxy:port/";