feat(gs/system): Init yeren
My new work laptop, a dell XPS 13. Change-Id: Ieab06622c9b280182025edfa63adf649e5fc70d8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2205 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
parent
904cd3e6c0
commit
d4fb573cf7
8 changed files with 79 additions and 26 deletions
|
@ -11,4 +11,5 @@
|
|||
|
||||
(with depot.users.glittershark.system.system; [
|
||||
chupacabra
|
||||
yeren
|
||||
])
|
||||
|
|
|
@ -25,5 +25,12 @@ rec {
|
|||
|
||||
dobharchuHome = dobharchu.activation-script;
|
||||
|
||||
meta.targets = [ "chupacabraHome" ];
|
||||
yeren = home ./machines/yeren.nix;
|
||||
|
||||
yerenHome = yeren.activation-script;
|
||||
|
||||
meta.targets = [
|
||||
"chupacabraHome"
|
||||
"yerenHome"
|
||||
];
|
||||
}
|
||||
|
|
17
users/glittershark/system/home/machines/yeren.nix
Normal file
17
users/glittershark/system/home/machines/yeren.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../platforms/linux.nix
|
||||
../modules/common.nix
|
||||
];
|
||||
|
||||
# for when hacking
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "20.03";
|
||||
|
||||
system.machine = {
|
||||
wirelessInterface = "wlp0s20f3";
|
||||
i3FontSize = 9;
|
||||
};
|
||||
}
|
|
@ -13,12 +13,19 @@ rec {
|
|||
configuration = mugwump;
|
||||
}).system;
|
||||
|
||||
yeren = import ./machines/yeren.nix;
|
||||
|
||||
yerenSystem = (pkgs.nixos {
|
||||
configuration = yeren;
|
||||
}).system;
|
||||
|
||||
iso = import ./iso.nix args;
|
||||
|
||||
# Build chupacabra in CI
|
||||
meta.targets = [
|
||||
"chupacabraSystem"
|
||||
"mugwumpSystem"
|
||||
"yerenSystem"
|
||||
|
||||
"iso"
|
||||
];
|
||||
|
|
46
users/glittershark/system/system/machines/yeren.nix
Normal file
46
users/glittershark/system/system/machines/yeren.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ modulesPath, config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
../modules/common.nix
|
||||
../modules/reusable/battery.nix
|
||||
../modules/xserver.nix
|
||||
../modules/fonts.nix
|
||||
../modules/sound.nix
|
||||
];
|
||||
|
||||
networking.hostName = "yeren";
|
||||
|
||||
system.stateVersion = "21.03";
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
kernelModules = [ ];
|
||||
|
||||
luks.devices = {
|
||||
"cryptroot".device = "/dev/disk/by-uuid/dcfbc22d-e0d2-411b-8dd3-96704d3aae2e";
|
||||
"cryptswap".device = "/dev/disk/by-uuid/48b8a8fd-559c-4759-a617-56f221cfaaec";
|
||||
};
|
||||
};
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/mapper/cryptroot";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/53A9-248B";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [{ device = "/dev/mapper/cryptswap"; }];
|
||||
}
|
|
@ -56,14 +56,6 @@ with lib;
|
|||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "20.03"; # Did you read the comment?
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nix = {
|
||||
|
|
|
@ -16,10 +16,4 @@
|
|||
];
|
||||
|
||||
services.geoclue2.enable = true;
|
||||
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
powertop.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,19 +9,8 @@
|
|||
|
||||
displayManager = {
|
||||
defaultSession = "none+i3";
|
||||
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "grfn";
|
||||
};
|
||||
};
|
||||
|
||||
windowManager.i3.enable = true;
|
||||
# enable = true;
|
||||
# extraPackages = with pkgs; [
|
||||
# i3status
|
||||
# i3lock
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue