Add froidmpa-laptop
This commit is contained in:
parent
132a47d5c4
commit
b1bc3c019e
4 changed files with 137 additions and 8 deletions
|
|
@ -106,11 +106,11 @@
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/ranger/plugins" = {
|
# home.file.".config/ranger/plugins" = {
|
||||||
source = builtins.fetchGit {
|
# source = builtins.fetchGit {
|
||||||
url = "git://github.com/alexanderjeurissen/ranger_devicons.git";
|
# url = "git://github.com/alexanderjeurissen/ranger_devicons.git";
|
||||||
rev = "68ffbffd086b0e9bb98c74705abe891b756b9e11";
|
# rev = "68ffbffd086b0e9bb98c74705abe891b756b9e11";
|
||||||
};
|
# };
|
||||||
recursive = true;
|
# recursive = true;
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
./xmonad.nix
|
./xmonad.nix
|
||||||
./gui.nix
|
./gui.nix
|
||||||
./dev.nix
|
./dev.nix
|
||||||
./email.nix
|
# ./email.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
||||||
97
hosts/froidmpa-laptop/configuration.nix
Normal file
97
hosts/froidmpa-laptop/configuration.nix
Normal file
|
|
@ -0,0 +1,97 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
<home-manager/nixos>
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../../configs/system.nix
|
||||||
|
../../configs/network.nix
|
||||||
|
../../configs/virtualisation.nix
|
||||||
|
../../configs/games.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Required, otherwise the kernel freezes on boot
|
||||||
|
boot.kernelParams = [ "nomodeset" ];
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = "froidmpa-laptop";
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.interfaces.enp2s0.useDHCP = true;
|
||||||
|
networking.interfaces.wlo1.useDHCP = true;
|
||||||
|
|
||||||
|
console = {
|
||||||
|
font = "Lat2-Terminus16";
|
||||||
|
keyMap = "fr";
|
||||||
|
};
|
||||||
|
|
||||||
|
i18n = {
|
||||||
|
defaultLocale = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
# Enable A2DP Sink
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
Enable = "Source,Sink,Media,Socket";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
hardware.pulseaudio = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Use full build to have Bluetooth support
|
||||||
|
package = pkgs.pulseaudioFull;
|
||||||
|
};
|
||||||
|
services.blueman.enable = true;
|
||||||
|
|
||||||
|
home-manager.users.froidmpa = {pkgs, config, ...}: {
|
||||||
|
imports = [
|
||||||
|
../../configs/home/full.nix
|
||||||
|
];
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "Paul-Henri Froidmont";
|
||||||
|
userEmail = "git.contact-57n2p@froidmont.org";
|
||||||
|
};
|
||||||
|
services.network-manager-applet.enable = true;
|
||||||
|
services.blueman-applet.enable = true;
|
||||||
|
services.grobi = {
|
||||||
|
enable = true;
|
||||||
|
executeAfter = ["${pkgs.systemd}/bin/systemctl --user restart stalonetray" "${pkgs.feh}/bin/feh --bg-fill ~/.wallpaper.png"];
|
||||||
|
rules = [
|
||||||
|
{
|
||||||
|
name = "Work HDMI";
|
||||||
|
outputs_connected = [ "HDMI-1" ];
|
||||||
|
configure_single = "HDMI-1";
|
||||||
|
primary = true;
|
||||||
|
atomic = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Work USBC";
|
||||||
|
outputs_connected = [ "DP-1" ];
|
||||||
|
configure_single = "DP-1";
|
||||||
|
primary = true;
|
||||||
|
atomic = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Fallback";
|
||||||
|
configure_single = "eDP-1";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# Enable touchpad support.
|
||||||
|
services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
|
system.stateVersion = "21.05"; # Did you read the comment?
|
||||||
|
}
|
||||||
32
hosts/froidmpa-laptop/hardware-configuration.nix
Normal file
32
hosts/froidmpa-laptop/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/a8abad9b-5615-4887-8431-3d80b78d073e";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/1e900b2e-daea-4558-b18f-3d3a5843de61";
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/077C-758A";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/bb8fa9ef-9b8f-413d-913a-6c891649a954"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue