Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nixos-config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
We are moving to Forgejo!
You are on a read-only GitLab instance.
Show more breadcrumbs
Jeffrey Phillips Freeman
nixos-config
Commits
2f326e3a
Commit
2f326e3a
authored
1 year ago
by
Jeffrey Phillips Freeman
Browse files
Options
Downloads
Patches
Plain Diff
Added neoteric computer
parent
f87eb30a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/neoteric/config.nix
+43
-0
43 additions, 0 deletions
config/neoteric/config.nix
config/neoteric/default.nix
+86
-0
86 additions, 0 deletions
config/neoteric/default.nix
flake.nix
+2
-34
2 additions, 34 deletions
flake.nix
with
131 additions
and
34 deletions
config/neoteric/config.nix
0 → 100644
+
43
−
0
View file @
2f326e3a
{
config
,
pkgs
,
lib
,
inputs
,
modulesPath
,
flake
,
...
}:
{
config
.
desktop
.
enable
=
true
;
config
.
desktop
.
default_session
=
"sway"
;
config
.
desktop
.
dm_use_wayland
=
true
;
config
.
laptop
.
enable
=
true
;
config
.
screens
.
primary
=
"eDP-1"
;
config
.
screens
.
primary_orientation
=
"normal"
;
config
.
screens
.
primary_pos
=
"0 0 res 1920x1080"
;
config
.
screens
.
secondary
=
"DP-3"
;
config
.
screens
.
secondary_orientation
=
"normal"
;
config
.
screens
.
secondary_pos
=
"0 1080 res 1920x515"
;
config
.
screens
.
has_secondary
=
true
;
config
.
swaybar
.
font_size
=
11
.
0
;
config
.
sway
.
inner_gap
=
10
;
config
.
sway
.
outer_gap
=
10
;
imports
=
[
../common.nix
../../users/myself/freemo
../../pkgs/desktop
../../pkgs/lib
../../pkgs/security
../../pkgs/dev
../../pkgs/editor
../../pkgs/web_browser
../../pkgs/terminal
../../pkgs/shell
../../pkgs/util
../../pkgs/communication
../../pkgs/multimedia
../../pkgs/gaming
../../pkgs/disk
../../pkgs/database
../../pkgs/social_media
../../pkgs/virtualisation
../../pkgs/productivity
../../pkgs/multimedia/stylix
];
}
This diff is collapsed.
Click to expand it.
config/neoteric/default.nix
0 → 100644
+
86
−
0
View file @
2f326e3a
{
config
,
pkgs
,
lib
,
inputs
,
modulesPath
,
flake
,
...
}:
{
imports
=
[
./config.nix
../../pkgs/hardware/location/philadelphia
../../pkgs/hardware/locale/en_us
../../pkgs/hardware/common
#../../pkgs/hardware/common/asus-zenbook-duo
../../pkgs/hardware/common/laptop
../../pkgs/hardware/common/touchpad-disable-tap
#../../pkgs/hardware/common/nvidia_proprietary
];
networking
.
hostName
=
"neoteric"
;
boot
.
initrd
.
availableKernelModules
=
[
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"uas"
"sd_mod"
"rtsx_usb_sdmmc"
"usbhid"
"usb_storage"
];
boot
.
initrd
.
kernelModules
=
[
"dm-snapshot"
"vfat"
"nls_cp437"
"nls_iso8859-1"
"usbhid"
];
boot
.
kernelModules
=
[
"kvm-amd"
"v4l2loopback"
];
boot
.
extraModulePackages
=
with
pkgs
;
[
config
.
boot
.
kernelPackages
.
v4l2loopback
.
out
];
boot
.
kernelParams
=
[
"nomodeset"
]
# Setup keyfile
boot
.
initrd
.
secrets
=
{
"/crypto_keyfile.bin"
=
null
;
};
fileSystems
.
"/"
=
{
device
=
"/dev/mapper/vg_main-root"
;
fsType
=
"btrfs"
;
options
=
[
"subvol=root"
];
};
fileSystems
.
"/home"
=
{
device
=
"/dev/mapper/vg_main-root"
;
fsType
=
"btrfs"
;
options
=
[
"subvol=home"
];
};
fileSystems
.
"/boot/efi"
=
{
device
=
"/dev/disk/by-uuid/509A-6D78"
;
fsType
=
"vfat"
;
};
swapDevices
=
[
{
device
=
"/dev/mapper/vg_main-swap"
;
}
];
nixpkgs
.
hostPlatform
=
lib
.
mkDefault
"x86_64-linux"
;
hardware
.
cpu
.
amd
.
updateMicrocode
=
lib
.
mkDefault
config
.
hardware
.
enableRedistributableFirmware
;
system
.
stateVersion
=
"23.11"
;
boot
.
initrd
.
luks
=
{
# Support for Yubikey PBA
yubikeySupport
=
true
;
devices
.
"pv_main"
=
{
device
=
"/dev/disk/by-uuid/d4100943-c355-4e4a-9d7a-bea1ef7afee8"
;
# nvme0n1p2
preLVM
=
true
;
# You may want to set this to false if you need to start a network service first
yubikey
=
{
slot
=
2
;
twoFactor
=
true
;
# Set to false for 1FA
#gracePeriod = 30; # Time in seconds to wait for Yubikey to be inserted
keyLength
=
64
;
# Set to $KEY_LENGTH/8
saltLength
=
16
;
# Set to $SALT_LENGTH
storage
=
{
device
=
"/dev/disk/by-uuid/509A-6D78"
;
#nvme0n1p1
fsType
=
"vfat"
;
path
=
"/crypt-storage/default"
;
};
};
};
};
#fixes secondary screen turning off when lid shut
services
.
logind
.
extraConfig
=
''
LidSwitchIgnoreInhibited=yes
''
;
services
.
upower
.
ignoreLid
=
true
;
}
This diff is collapsed.
Click to expand it.
flake.nix
+
2
−
34
View file @
2f326e3a
...
...
@@ -76,30 +76,6 @@
./config/envy
];
};
hyperion
=
self
.
lib
.
mkLinuxSystem
{
imports
=
[
#stylix.nixosModules.stylix
self
.
nixosModules
.
home-manager
inputs
.
agenix
.
nixosModules
.
default
./config/hyperion
];
};
macaria
=
self
.
lib
.
mkLinuxSystem
{
imports
=
[
#stylix.nixosModules.stylix
self
.
nixosModules
.
home-manager
inputs
.
agenix
.
nixosModules
.
default
./config/macaria
];
};
ramos
=
self
.
lib
.
mkLinuxSystem
{
imports
=
[
#stylix.nixosModules.stylix
self
.
nixosModules
.
home-manager
inputs
.
agenix
.
nixosModules
.
default
./config/ramos
];
};
hermes
=
self
.
lib
.
mkLinuxSystem
{
imports
=
[
#stylix.nixosModules.stylix
...
...
@@ -108,20 +84,12 @@
./config/hermes
];
};
dolly
=
self
.
lib
.
mkLinuxSystem
{
imports
=
[
#stylix.nixosModules.stylix
self
.
nixosModules
.
home-manager
inputs
.
agenix
.
nixosModules
.
default
./config/dolly
];
};
kinnara
=
self
.
lib
.
mkLinuxSystem
{
neoteric
=
self
.
lib
.
mkLinuxSystem
{
imports
=
[
#stylix.nixosModules.stylix
self
.
nixosModules
.
home-manager
inputs
.
agenix
.
nixosModules
.
default
./config/
kinnara
./config/
neoteric
];
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment